mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Merge pull request #85128 from kevtaylor/kep/VolumeSubpathExpansion-Conformance
Promote VolumeSubpathEnvExpansion e2e tests to Conformance
This commit is contained in:
commit
1da4f75e24
44
test/conformance/testdata/conformance.yaml
vendored
44
test/conformance/testdata/conformance.yaml
vendored
@ -407,6 +407,50 @@
|
|||||||
proper values.
|
proper values.
|
||||||
release: v1.9
|
release: v1.9
|
||||||
file: test/e2e/common/expansion.go
|
file: test/e2e/common/expansion.go
|
||||||
|
- testname: VolumeSubpathEnvExpansion, subpath expansion
|
||||||
|
codename: '[k8s.io] Variable Expansion should allow substituting values in a volume
|
||||||
|
subpath [sig-storage] [Conformance]'
|
||||||
|
description: Make sure a container's subpath can be set using an expansion of environment
|
||||||
|
variables.
|
||||||
|
release: v1.19
|
||||||
|
file: test/e2e/common/expansion.go
|
||||||
|
- testname: VolumeSubpathEnvExpansion, subpath with absolute path
|
||||||
|
codename: '[k8s.io] Variable Expansion should fail substituting values in a volume
|
||||||
|
subpath with absolute path [sig-storage][Slow] [Conformance]'
|
||||||
|
description: Make sure a container's subpath can not be set using an expansion of
|
||||||
|
environment variables when absolute path is supplied.
|
||||||
|
release: v1.19
|
||||||
|
file: test/e2e/common/expansion.go
|
||||||
|
- testname: VolumeSubpathEnvExpansion, subpath with backticks
|
||||||
|
codename: '[k8s.io] Variable Expansion should fail substituting values in a volume
|
||||||
|
subpath with backticks [sig-storage][Slow] [Conformance]'
|
||||||
|
description: Make sure a container's subpath can not be set using an expansion of
|
||||||
|
environment variables when backticks are supplied.
|
||||||
|
release: v1.19
|
||||||
|
file: test/e2e/common/expansion.go
|
||||||
|
- testname: VolumeSubpathEnvExpansion, subpath lifecycle
|
||||||
|
codename: '[k8s.io] Variable Expansion should not change the subpath mount on a
|
||||||
|
container restart if the environment variable changes [sig-storage][Slow] [Conformance]'
|
||||||
|
description: "Verify should not change the subpath mount on a container restart
|
||||||
|
if the environment variable changes 1.\tvalid subpathexpr starts a container running
|
||||||
|
2.\ttest for valid subpath writes 3.\tcontainer restarts 4.\tdelete cleanly"
|
||||||
|
release: v1.19
|
||||||
|
file: test/e2e/common/expansion.go
|
||||||
|
- testname: VolumeSubpathEnvExpansion, subpath test writes
|
||||||
|
codename: '[k8s.io] Variable Expansion should succeed in writing subpaths in container
|
||||||
|
[sig-storage][Slow] [Conformance]'
|
||||||
|
description: "Verify that a subpath expansion can be used to write files into subpaths.
|
||||||
|
1.\tvalid subpathexpr starts a container running 2.\ttest for valid subpath writes
|
||||||
|
3.\tsuccessful expansion of the subpathexpr isn't required for volume cleanup"
|
||||||
|
release: v1.19
|
||||||
|
file: test/e2e/common/expansion.go
|
||||||
|
- testname: VolumeSubpathEnvExpansion, subpath ready from failed state
|
||||||
|
codename: '[k8s.io] Variable Expansion should verify that a failing subpath expansion
|
||||||
|
can be modified during the lifecycle of a container [sig-storage][Slow] [Conformance]'
|
||||||
|
description: Verify that a failing subpath expansion can be modified during the
|
||||||
|
lifecycle of a container.
|
||||||
|
release: v1.19
|
||||||
|
file: test/e2e/common/expansion.go
|
||||||
- testname: Pod events, verify event from Scheduler and Kubelet
|
- testname: Pod events, verify event from Scheduler and Kubelet
|
||||||
codename: '[k8s.io] [sig-node] Events should be sent by kubelets and the scheduler
|
codename: '[k8s.io] [sig-node] Events should be sent by kubelets and the scheduler
|
||||||
about pods scheduling and running [Conformance]'
|
about pods scheduling and running [Conformance]'
|
||||||
|
@ -155,11 +155,11 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Testname: var-expansion-subpath
|
Release : v1.19
|
||||||
Description: Make sure a container's subpath can be set using an
|
Testname: VolumeSubpathEnvExpansion, subpath expansion
|
||||||
expansion of environment variables.
|
Description: Make sure a container's subpath can be set using an expansion of environment variables.
|
||||||
*/
|
*/
|
||||||
ginkgo.It("should allow substituting values in a volume subpath [sig-storage]", func() {
|
framework.ConformanceIt("should allow substituting values in a volume subpath [sig-storage]", func() {
|
||||||
podName := "var-expansion-" + string(uuid.NewUUID())
|
podName := "var-expansion-" + string(uuid.NewUUID())
|
||||||
pod := &v1.Pod{
|
pod := &v1.Pod{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
@ -209,11 +209,11 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Testname: var-expansion-subpath-with-backticks
|
Release : v1.19
|
||||||
Description: Make sure a container's subpath can not be set using an
|
Testname: VolumeSubpathEnvExpansion, subpath with backticks
|
||||||
expansion of environment variables when backticks are supplied.
|
Description: Make sure a container's subpath can not be set using an expansion of environment variables when backticks are supplied.
|
||||||
*/
|
*/
|
||||||
ginkgo.It("should fail substituting values in a volume subpath with backticks [sig-storage][Slow]", func() {
|
framework.ConformanceIt("should fail substituting values in a volume subpath with backticks [sig-storage][Slow]", func() {
|
||||||
|
|
||||||
podName := "var-expansion-" + string(uuid.NewUUID())
|
podName := "var-expansion-" + string(uuid.NewUUID())
|
||||||
pod := &v1.Pod{
|
pod := &v1.Pod{
|
||||||
@ -258,11 +258,11 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Testname: var-expansion-subpath-with-absolute-path
|
Release : v1.19
|
||||||
Description: Make sure a container's subpath can not be set using an
|
Testname: VolumeSubpathEnvExpansion, subpath with absolute path
|
||||||
expansion of environment variables when absolute path is supplied.
|
Description: Make sure a container's subpath can not be set using an expansion of environment variables when absolute path is supplied.
|
||||||
*/
|
*/
|
||||||
ginkgo.It("should fail substituting values in a volume subpath with absolute path [sig-storage][Slow]", func() {
|
framework.ConformanceIt("should fail substituting values in a volume subpath with absolute path [sig-storage][Slow]", func() {
|
||||||
|
|
||||||
podName := "var-expansion-" + string(uuid.NewUUID())
|
podName := "var-expansion-" + string(uuid.NewUUID())
|
||||||
pod := &v1.Pod{
|
pod := &v1.Pod{
|
||||||
@ -307,10 +307,11 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Testname: var-expansion-subpath-ready-from-failed-state
|
Release : v1.19
|
||||||
|
Testname: VolumeSubpathEnvExpansion, subpath ready from failed state
|
||||||
Description: Verify that a failing subpath expansion can be modified during the lifecycle of a container.
|
Description: Verify that a failing subpath expansion can be modified during the lifecycle of a container.
|
||||||
*/
|
*/
|
||||||
ginkgo.It("should verify that a failing subpath expansion can be modified during the lifecycle of a container [sig-storage][Slow]", func() {
|
framework.ConformanceIt("should verify that a failing subpath expansion can be modified during the lifecycle of a container [sig-storage][Slow]", func() {
|
||||||
|
|
||||||
podName := "var-expansion-" + string(uuid.NewUUID())
|
podName := "var-expansion-" + string(uuid.NewUUID())
|
||||||
containerName := "dapi-container"
|
containerName := "dapi-container"
|
||||||
@ -387,14 +388,15 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Testname: var-expansion-subpath-test-writes
|
Release : v1.19
|
||||||
|
Testname: VolumeSubpathEnvExpansion, subpath test writes
|
||||||
Description: Verify that a subpath expansion can be used to write files into subpaths.
|
Description: Verify that a subpath expansion can be used to write files into subpaths.
|
||||||
1. valid subpathexpr starts a container running
|
1. valid subpathexpr starts a container running
|
||||||
2. test for valid subpath writes
|
2. test for valid subpath writes
|
||||||
3. successful expansion of the subpathexpr isn't required for volume cleanup
|
3. successful expansion of the subpathexpr isn't required for volume cleanup
|
||||||
|
|
||||||
*/
|
*/
|
||||||
ginkgo.It("should succeed in writing subpaths in container [sig-storage][Slow]", func() {
|
framework.ConformanceIt("should succeed in writing subpaths in container [sig-storage][Slow]", func() {
|
||||||
|
|
||||||
podName := "var-expansion-" + string(uuid.NewUUID())
|
podName := "var-expansion-" + string(uuid.NewUUID())
|
||||||
containerName := "dapi-container"
|
containerName := "dapi-container"
|
||||||
@ -487,16 +489,16 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Testname: var-expansion-subpath-lifecycle
|
Release : v1.19
|
||||||
|
Testname: VolumeSubpathEnvExpansion, subpath lifecycle
|
||||||
Description: Verify should not change the subpath mount on a container restart if the environment variable changes
|
Description: Verify should not change the subpath mount on a container restart if the environment variable changes
|
||||||
1. valid subpathexpr starts a container running
|
1. valid subpathexpr starts a container running
|
||||||
2. test for valid subpath writes
|
2. test for valid subpath writes
|
||||||
3. container restarts
|
3. container restarts
|
||||||
4. delete cleanly
|
4. delete cleanly
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ginkgo.It("should not change the subpath mount on a container restart if the environment variable changes [sig-storage][Slow]", func() {
|
framework.ConformanceIt("should not change the subpath mount on a container restart if the environment variable changes [sig-storage][Slow]", func() {
|
||||||
|
|
||||||
suffix := string(uuid.NewUUID())
|
suffix := string(uuid.NewUUID())
|
||||||
podName := fmt.Sprintf("var-expansion-%s", suffix)
|
podName := fmt.Sprintf("var-expansion-%s", suffix)
|
||||||
|
Loading…
Reference in New Issue
Block a user