Unverified Commit 9aac5ced authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #74702 from globervinodhn/secret_empty_promote

Promote empty secret key e2e test to conformance test
parents e6888838 a5f3e24a
...@@ -153,6 +153,7 @@ test/e2e/common/runtime.go: "should run with the expected status" ...@@ -153,6 +153,7 @@ test/e2e/common/runtime.go: "should run with the expected status"
test/e2e/common/runtime.go: "should report termination message if TerminationMessagePath is set as non-root user and at a non-default path" test/e2e/common/runtime.go: "should report termination message if TerminationMessagePath is set as non-root user and at a non-default path"
test/e2e/common/secrets.go: "should be consumable from pods in env vars" 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 be consumable via the environment"
test/e2e/common/secrets.go: "should fail to create secret due to empty secret key"
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"
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 with defaultMode set"
test/e2e/common/secrets_volume.go: "should be consumable from pods in volume as non-root with defaultMode and fsGroup set" test/e2e/common/secrets_volume.go: "should be consumable from pods in volume as non-root with defaultMode and fsGroup set"
......
...@@ -126,7 +126,12 @@ var _ = Describe("[sig-api-machinery] Secrets", func() { ...@@ -126,7 +126,12 @@ var _ = Describe("[sig-api-machinery] Secrets", func() {
}) })
}) })
It("should fail to create secret in volume due to empty secret key", func() { /*
Release : v1.15
Testname: Secrets, with empty-key
Description: Attempt to create a Secret with an empty key. The creation MUST fail.
*/
framework.ConformanceIt("should fail to create secret due to empty secret key", func() {
secret, err := createEmptyKeySecretForTest(f) secret, err := createEmptyKeySecretForTest(f)
Expect(err).To(HaveOccurred(), "created secret %q with empty key in namespace %q", secret.Name, f.Namespace.Name) Expect(err).To(HaveOccurred(), "created secret %q with empty key in namespace %q", secret.Name, f.Namespace.Name)
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment