mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #127943 from ii/promote-serviceaccounttoken-test
Promote ServiceAccount e2e test to Conformance
This commit is contained in:
commit
2e0cc1befe
8
test/conformance/testdata/conformance.yaml
vendored
8
test/conformance/testdata/conformance.yaml
vendored
@ -1339,6 +1339,14 @@
|
||||
and 3c the ServiceTokenVolume MUST not be auto mounted.
|
||||
release: v1.9
|
||||
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
|
||||
codename: '[sig-auth] ServiceAccounts should guarantee kube-root-ca.crt exist in
|
||||
any namespace [Conformance]'
|
||||
|
@ -868,7 +868,14 @@ var _ = SIGDescribe("ServiceAccounts", func() {
|
||||
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
|
||||
saClient := f.ClientSet.CoreV1().ServiceAccounts(ns)
|
||||
saName := "e2e-sa-" + utilrand.String(5)
|
||||
|
Loading…
Reference in New Issue
Block a user