promote RootCAConfigMap e2e test to Conformance

This commit is contained in:
Shihang Zhang 2021-02-22 10:37:33 -08:00
parent d88d9ac3b4
commit 5d1774e9db
2 changed files with 16 additions and 1 deletions

View File

@ -2232,6 +2232,13 @@
and 3c the ServiceTokenVolume MUST not be auto mounted.
release: v1.9
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]'
description: Ensure every namespace exist a ConfigMap for root ca cert. 1. Created
automatically 2. Recreated if deleted 3. Reconciled if modified
release: v1.21
file: test/e2e/auth/service_accounts.go
- testname: Service Account Tokens Must AutoMount
codename: '[sig-auth] ServiceAccounts should mount an API token into pods [Conformance]'
description: Ensure that Service Account keys are mounted into the Container. Pod

View File

@ -875,7 +875,15 @@ var _ = SIGDescribe("ServiceAccounts", func() {
framework.ExpectEqual(eventFound, true, "failed to find %v event", watch.Deleted)
})
ginkgo.It("should guarantee kube-root-ca.crt exist in any namespace", func() {
/*
Release: v1.21
Testname: RootCA ConfigMap test
Description: Ensure every namespace exist a ConfigMap for root ca cert.
1. Created automatically
2. Recreated if deleted
3. Reconciled if modified
*/
framework.ConformanceIt("should guarantee kube-root-ca.crt exist in any namespace", func() {
const rootCAConfigMapName = "kube-root-ca.crt"
framework.ExpectNoError(wait.PollImmediate(500*time.Millisecond, wait.ForeverTestTimeout, func() (bool, error) {