Skip to content

Commit

Permalink
UPSTREAM: <carry>: APISelfSubjectReview: only test v1beta1 API
Browse files Browse the repository at this point in the history
  • Loading branch information
bertinatto committed Apr 11, 2023
1 parent 22ada08 commit 2549c2d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/e2e/auth/selfsubjectreviews.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ var _ = SIGDescribe("SelfSubjectReview [Feature:APISelfSubjectReview]", func() {
Testname: SelfSubjectReview API
Description:
The authentication.k8s.io API group MUST exist in the /apis discovery document.
The authentication.k8s.io/v1alpha1 API group/version MUST exist in the /apis/mode.k8s.io discovery document.
The authentication.k8s.io/v1beta1 API group/version MUST exist in the /apis/mode.k8s.io discovery document.
The selfsubjectreviews resource MUST exist in the /apis/authentication.k8s.io/v1alpha1 discovery document.
The selfsubjectreviews resource MUST exist in the /apis/authentication.k8s.io/v1beta1 discovery document.
The selfsubjectreviews resource MUST support create.
*/
Expand Down Expand Up @@ -103,14 +101,18 @@ var _ = SIGDescribe("SelfSubjectReview [Feature:APISelfSubjectReview]", func() {
}
}
},
ginkgo.Entry("authentication/v1alpha1", "v1alpha1", authenticationv1alpha1.SchemeGroupVersion.String()),
// OpenShift: Skip v1alpha check
// ginkgo.Entry("authentication/v1alpha1", "v1alpha1", authenticationv1alpha1.SchemeGroupVersion.String()),
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")
{
// OpenShift: Skip v1alpha check
ginkgo.Skip("No authentication/v1alpha1 available")

// Use impersonate to make user attributes predictable
config := restConfig(f)

Expand Down

0 comments on commit 2549c2d

Please sign in to comment.