Merge pull request #127943 from ii/promote-serviceaccounttoken-test

Promote ServiceAccount e2e test to Conformance
This commit is contained in:
Kubernetes Prow Robot 2024-11-11 18:12:45 +00:00 committed by GitHub
commit 2e0cc1befe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 1 deletions

View File

@ -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]'

View File

@ -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)