Fix DescribeTable for selfsubjectreview e2e

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
m.nabokikh 2023-03-13 20:06:10 +01:00
parent 087868a436
commit d5aa8351e3

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")
{