mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Promote ServiceAccount e2e test to Conformance
This commit is contained in:
parent
9cf4f91245
commit
04a4edb083
8
test/conformance/testdata/conformance.yaml
vendored
8
test/conformance/testdata/conformance.yaml
vendored
@ -1314,6 +1314,14 @@
|
|||||||
and 3c the ServiceTokenVolume MUST not be auto mounted.
|
and 3c the ServiceTokenVolume MUST not be auto mounted.
|
||||||
release: v1.9
|
release: v1.9
|
||||||
file: test/e2e/auth/service_accounts.go
|
file: test/e2e/auth/service_accounts.go
|
||||||
|
- testname: ServiceAccount, create and review token
|
||||||
|
codename: '[sig-auth] ServiceAccounts should create a serviceAccountToken and ensure
|
||||||
|
a successful TokenReview [Conformance]'
|
||||||
|
description: Creating a ServiceAccount MUST succeed. Creating a ServiceAccountToken
|
||||||
|
MUST succeed. The token MUST not be empty. Creating a TokenReview MUST succeed.
|
||||||
|
The TokenReview MUST be authenticated without any errors.
|
||||||
|
release: v1.32
|
||||||
|
file: test/e2e/auth/service_accounts.go
|
||||||
- testname: RootCA ConfigMap test
|
- testname: RootCA ConfigMap test
|
||||||
codename: '[sig-auth] ServiceAccounts should guarantee kube-root-ca.crt exist in
|
codename: '[sig-auth] ServiceAccounts should guarantee kube-root-ca.crt exist in
|
||||||
any namespace [Conformance]'
|
any namespace [Conformance]'
|
||||||
|
@ -839,7 +839,14 @@ var _ = SIGDescribe("ServiceAccounts", func() {
|
|||||||
framework.Logf("AutomountServiceAccountToken: %v", *updatedServiceAccount.AutomountServiceAccountToken)
|
framework.Logf("AutomountServiceAccountToken: %v", *updatedServiceAccount.AutomountServiceAccountToken)
|
||||||
})
|
})
|
||||||
|
|
||||||
ginkgo.It("should create a serviceAccountToken and ensure a successful TokenReview", func(ctx context.Context) {
|
/*
|
||||||
|
Release: v1.32
|
||||||
|
Testname: ServiceAccount, create and review token
|
||||||
|
Description: Creating a ServiceAccount MUST succeed. Creating a ServiceAccountToken
|
||||||
|
MUST succeed. The token MUST not be empty. Creating a TokenReview MUST succeed.
|
||||||
|
The TokenReview MUST be authenticated without any errors.
|
||||||
|
*/
|
||||||
|
framework.ConformanceIt("should create a serviceAccountToken and ensure a successful TokenReview", func(ctx context.Context) {
|
||||||
ns := f.Namespace.Name
|
ns := f.Namespace.Name
|
||||||
saClient := f.ClientSet.CoreV1().ServiceAccounts(ns)
|
saClient := f.ClientSet.CoreV1().ServiceAccounts(ns)
|
||||||
saName := "e2e-sa-" + utilrand.String(5)
|
saName := "e2e-sa-" + utilrand.String(5)
|
||||||
|
Loading…
Reference in New Issue
Block a user