Promote API metadata return value
This commit is contained in:
parent
932487c744
commit
91da6fd565
1
test/conformance/testdata/conformance.txt
vendored
1
test/conformance/testdata/conformance.txt
vendored
@ -14,6 +14,7 @@ test/e2e/apimachinery/watch.go: "should be able to start watching from a specifi
|
||||
test/e2e/apimachinery/watch.go: "should be able to restart watching from the last resource version observed by the previous watch"
|
||||
test/e2e/apimachinery/watch.go: "should observe an object deletion if it stops meeting the requirements of the selector"
|
||||
test/e2e/apimachinery/watch.go: "should receive events on concurrent watches in same order"
|
||||
test/e2e/apimachinery/table_conversion.go: "should return a 406 for a backend which does not implement metadata"
|
||||
test/e2e/apps/daemon_set.go: "should run and stop simple daemon"
|
||||
test/e2e/apps/daemon_set.go: "should run and stop complex daemon"
|
||||
test/e2e/apps/daemon_set.go: "should retry creating failed daemon pods"
|
||||
|
@ -145,7 +145,13 @@ var _ = SIGDescribe("Servers with support for Table transformation", func() {
|
||||
e2elog.Logf("Table:\n%s", out)
|
||||
})
|
||||
|
||||
ginkgo.It("should return a 406 for a backend which does not implement metadata", func() {
|
||||
/*
|
||||
Release : v1.16
|
||||
Testname: API metadata HTTP return
|
||||
Description: Issue a HTTP request to the API.
|
||||
HTTP request MUST return a HTTP status code of 406.
|
||||
*/
|
||||
framework.ConformanceIt("should return a 406 for a backend which does not implement metadata", func() {
|
||||
c := f.ClientSet
|
||||
|
||||
table := &metav1beta1.Table{}
|
||||
@ -157,7 +163,7 @@ var _ = SIGDescribe("Servers with support for Table transformation", func() {
|
||||
},
|
||||
},
|
||||
}
|
||||
err := c.AuthorizationV1().RESTClient().Post().Resource("selfsubjectaccessreviews").SetHeader("Accept", "application/json;as=Table;v=v1beta1;g=meta.k8s.io").Body(sar).Do().Into(table)
|
||||
err := c.AuthorizationV1().RESTClient().Post().Resource("selfsubjectaccessreviews").SetHeader("Accept", "application/json;as=Table;v=v1;g=meta.k8s.io").Body(sar).Do().Into(table)
|
||||
framework.ExpectError(err, "failed to return error when posting self subject access review: %+v, to a backend that does not implement metadata", sar)
|
||||
gomega.Expect(err.(errors.APIStatus).Status().Code).To(gomega.Equal(int32(406)))
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user