mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
Promote SubjectAccessReview e2e test to Conformance
This commit is contained in:
parent
3aff1f97be
commit
befb7d4a6a
12
test/conformance/testdata/conformance.yaml
vendored
12
test/conformance/testdata/conformance.yaml
vendored
@ -1119,6 +1119,18 @@
|
|||||||
it MUST succeed and the field MUST equal the new value.
|
it MUST succeed and the field MUST equal the new value.
|
||||||
release: v1.26
|
release: v1.26
|
||||||
file: test/e2e/auth/service_accounts.go
|
file: test/e2e/auth/service_accounts.go
|
||||||
|
- testname: SubjectReview, API Operations
|
||||||
|
codename: '[sig-auth] SubjectReview should support SubjectReview API operations
|
||||||
|
[Conformance]'
|
||||||
|
description: A ServiceAccount is created which MUST succeed. A clientset is created
|
||||||
|
to impersonate the ServiceAccount. A SubjectAccessReview is created for the ServiceAccount
|
||||||
|
which MUST succeed. The allowed status for the SubjectAccessReview MUST match
|
||||||
|
the expected allowed for the impersonated client call. A LocalSubjectAccessReviews
|
||||||
|
is created for the ServiceAccount which MUST succeed. The allowed status for the
|
||||||
|
LocalSubjectAccessReview MUST match the expected allowed for the impersonated
|
||||||
|
client call.
|
||||||
|
release: v1.27
|
||||||
|
file: test/e2e/auth/subjectreviews.go
|
||||||
- testname: Kubectl, guestbook application
|
- testname: Kubectl, guestbook application
|
||||||
codename: '[sig-cli] Kubectl client Guestbook application should create and stop
|
codename: '[sig-cli] Kubectl client Guestbook application should create and stop
|
||||||
a working application [Conformance]'
|
a working application [Conformance]'
|
||||||
|
@ -35,7 +35,19 @@ import (
|
|||||||
var _ = SIGDescribe("SubjectReview", func() {
|
var _ = SIGDescribe("SubjectReview", func() {
|
||||||
f := framework.NewDefaultFramework("subjectreview")
|
f := framework.NewDefaultFramework("subjectreview")
|
||||||
|
|
||||||
ginkgo.It("should support SubjectReview API operations", func() {
|
/*
|
||||||
|
Release: v1.27
|
||||||
|
Testname: SubjectReview, API Operations
|
||||||
|
Description: A ServiceAccount is created which MUST succeed.
|
||||||
|
A clientset is created to impersonate the ServiceAccount.
|
||||||
|
A SubjectAccessReview is created for the ServiceAccount which
|
||||||
|
MUST succeed. The allowed status for the SubjectAccessReview
|
||||||
|
MUST match the expected allowed for the impersonated client
|
||||||
|
call. A LocalSubjectAccessReviews is created for the ServiceAccount
|
||||||
|
which MUST succeed. The allowed status for the LocalSubjectAccessReview
|
||||||
|
MUST match the expected allowed for the impersonated client call.
|
||||||
|
*/
|
||||||
|
framework.ConformanceIt("should support SubjectReview API operations", func() {
|
||||||
|
|
||||||
AuthClient := f.ClientSet.AuthorizationV1()
|
AuthClient := f.ClientSet.AuthorizationV1()
|
||||||
ns := f.Namespace.Name
|
ns := f.Namespace.Name
|
||||||
|
Loading…
Reference in New Issue
Block a user