Skip to content

Commit 04a4edb

Browse files
committed
Promote ServiceAccount e2e test to Conformance
1 parent 9cf4f91 commit 04a4edb

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

test/conformance/testdata/conformance.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,6 +1314,14 @@
13141314
and 3c the ServiceTokenVolume MUST not be auto mounted.
13151315
release: v1.9
13161316
file: test/e2e/auth/service_accounts.go
1317+
- testname: ServiceAccount, create and review token
1318+
codename: '[sig-auth] ServiceAccounts should create a serviceAccountToken and ensure
1319+
a successful TokenReview [Conformance]'
1320+
description: Creating a ServiceAccount MUST succeed. Creating a ServiceAccountToken
1321+
MUST succeed. The token MUST not be empty. Creating a TokenReview MUST succeed.
1322+
The TokenReview MUST be authenticated without any errors.
1323+
release: v1.32
1324+
file: test/e2e/auth/service_accounts.go
13171325
- testname: RootCA ConfigMap test
13181326
codename: '[sig-auth] ServiceAccounts should guarantee kube-root-ca.crt exist in
13191327
any namespace [Conformance]'

test/e2e/auth/service_accounts.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,14 @@ var _ = SIGDescribe("ServiceAccounts", func() {
839839
framework.Logf("AutomountServiceAccountToken: %v", *updatedServiceAccount.AutomountServiceAccountToken)
840840
})
841841

842-
ginkgo.It("should create a serviceAccountToken and ensure a successful TokenReview", func(ctx context.Context) {
842+
/*
843+
Release: v1.32
844+
Testname: ServiceAccount, create and review token
845+
Description: Creating a ServiceAccount MUST succeed. Creating a ServiceAccountToken
846+
MUST succeed. The token MUST not be empty. Creating a TokenReview MUST succeed.
847+
The TokenReview MUST be authenticated without any errors.
848+
*/
849+
framework.ConformanceIt("should create a serviceAccountToken and ensure a successful TokenReview", func(ctx context.Context) {
843850
ns := f.Namespace.Name
844851
saClient := f.ClientSet.CoreV1().ServiceAccounts(ns)
845852
saName := "e2e-sa-" + utilrand.String(5)

0 commit comments

Comments
 (0)