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 Mar 6, 2024
1 parent c88b350 commit 3105c9e
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 @@ -42,10 +42,8 @@ var _ = SIGDescribe("SelfSubjectReview", 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 authentication.k8s.io/v1 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 exist in the /apis/authentication.k8s.io/v1 discovery document.
The selfsubjectreviews resource MUST support create.
Expand Down Expand Up @@ -107,7 +105,8 @@ var _ = SIGDescribe("SelfSubjectReview", 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.Entry("authentication/v1", "v1", authenticationv1.SchemeGroupVersion.String()),
)
Expand All @@ -116,6 +115,9 @@ var _ = SIGDescribe("SelfSubjectReview", func() {
// 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 3105c9e

Please sign in to comment.