From 04a4edb083ba41d12135ae6cbd6c2c35d2f0dc4f Mon Sep 17 00:00:00 2001 From: Stephen Heywood Date: Wed, 9 Oct 2024 10:49:03 +1300 Subject: [PATCH] Promote ServiceAccount e2e test to Conformance --- test/conformance/testdata/conformance.yaml | 8 ++++++++ test/e2e/auth/service_accounts.go | 9 ++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/test/conformance/testdata/conformance.yaml b/test/conformance/testdata/conformance.yaml index 5a6be27c8c8..1afabcf2529 100755 --- a/test/conformance/testdata/conformance.yaml +++ b/test/conformance/testdata/conformance.yaml @@ -1314,6 +1314,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]' diff --git a/test/e2e/auth/service_accounts.go b/test/e2e/auth/service_accounts.go index 3b7c3f9ba58..f0c92312b10 100644 --- a/test/e2e/auth/service_accounts.go +++ b/test/e2e/auth/service_accounts.go @@ -839,7 +839,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)