Merge pull request #87262 from ii/promote-secret-patching-test

Promote: Secret patching test
This commit is contained in:
Kubernetes Prow Robot 2020-01-29 07:32:28 -08:00 committed by GitHub
commit 7883d93877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -208,6 +208,7 @@ test/e2e/common/runtime.go: "should report termination message from file when p
test/e2e/common/secrets.go: "should be consumable from pods in env vars"
test/e2e/common/secrets.go: "should be consumable via the environment"
test/e2e/common/secrets.go: "should fail to create secret due to empty secret key"
test/e2e/common/secrets.go: "should patch a secret"
test/e2e/common/secrets_volume.go: "should be consumable from pods in volume"
test/e2e/common/secrets_volume.go: "should be consumable from pods in volume with defaultMode set"
test/e2e/common/secrets_volume.go: "should be consumable from pods in volume as non-root with defaultMode and fsGroup set"

View File

@ -138,7 +138,16 @@ var _ = ginkgo.Describe("[sig-api-machinery] Secrets", func() {
framework.ExpectError(err, "created secret %q with empty key in namespace %q", secret.Name, f.Namespace.Name)
})
ginkgo.It("should patch a secret", func() {
/*
Release : v1.18
Testname: Secret patching
Description: A Secret is created.
Listing all Secrets MUST return an empty list.
Given the patching and fetching of the Secret, the fields MUST equal the new values.
The Secret is deleted by it's static Label.
Secrets are listed finally, the list MUST NOT include the originally created Secret.
*/
framework.ConformanceIt("should patch a secret", func() {
ginkgo.By("creating a secret")
secretTestName := "test-secret-" + string(uuid.NewUUID())