Merge pull request #116545 from flant/table-ssr-e2e

Fix DescribeTable for selfsubjectreview e2e
This commit is contained in:
Kubernetes Prow Robot 2023-03-13 16:49:21 -07:00 committed by GitHub
commit b740a34302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,10 +46,9 @@ var _ = SIGDescribe("SelfSubjectReview [Feature:APISelfSubjectReview]", func() {
The selfsubjectreviews resource MUST exist in the /apis/authentication.k8s.io/v1beta1 discovery document.
The selfsubjectreviews resource MUST support create.
*/
ginkgo.It("should support SelfSubjectReview API operations", func(ctx context.Context) {
ginkgo.DescribeTable(
"testing SSR in different API groups",
func(apiVersion, gv string) {
func(ctx context.Context, apiVersion, gv string) {
// Discovery
ginkgo.By("getting /apis")
{
@ -108,6 +107,7 @@ var _ = SIGDescribe("SelfSubjectReview [Feature:APISelfSubjectReview]", func() {
ginkgo.Entry("authentication/v1beta1", "v1beta1", authenticationv1beta1.SchemeGroupVersion.String()),
)
ginkgo.It("should support SelfSubjectReview API operations", func(ctx context.Context) {
// Check creating
ginkgo.By("creating SSR authentication/v1alpha1")
{