Skip to content

Commit 1da4f75

Browse files
authored
Merge pull request kubernetes#85128 from kevtaylor/kep/VolumeSubpathExpansion-Conformance
Promote VolumeSubpathEnvExpansion e2e tests to Conformance
2 parents d20b6cd + 468b3b4 commit 1da4f75

File tree

2 files changed

+75
-29
lines changed

2 files changed

+75
-29
lines changed

test/conformance/testdata/conformance.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,50 @@
407407
proper values.
408408
release: v1.9
409409
file: test/e2e/common/expansion.go
410+
- testname: VolumeSubpathEnvExpansion, subpath expansion
411+
codename: '[k8s.io] Variable Expansion should allow substituting values in a volume
412+
subpath [sig-storage] [Conformance]'
413+
description: Make sure a container's subpath can be set using an expansion of environment
414+
variables.
415+
release: v1.19
416+
file: test/e2e/common/expansion.go
417+
- testname: VolumeSubpathEnvExpansion, subpath with absolute path
418+
codename: '[k8s.io] Variable Expansion should fail substituting values in a volume
419+
subpath with absolute path [sig-storage][Slow] [Conformance]'
420+
description: Make sure a container's subpath can not be set using an expansion of
421+
environment variables when absolute path is supplied.
422+
release: v1.19
423+
file: test/e2e/common/expansion.go
424+
- testname: VolumeSubpathEnvExpansion, subpath with backticks
425+
codename: '[k8s.io] Variable Expansion should fail substituting values in a volume
426+
subpath with backticks [sig-storage][Slow] [Conformance]'
427+
description: Make sure a container's subpath can not be set using an expansion of
428+
environment variables when backticks are supplied.
429+
release: v1.19
430+
file: test/e2e/common/expansion.go
431+
- testname: VolumeSubpathEnvExpansion, subpath lifecycle
432+
codename: '[k8s.io] Variable Expansion should not change the subpath mount on a
433+
container restart if the environment variable changes [sig-storage][Slow] [Conformance]'
434+
description: "Verify should not change the subpath mount on a container restart
435+
if the environment variable changes 1.\tvalid subpathexpr starts a container running
436+
2.\ttest for valid subpath writes 3.\tcontainer restarts 4.\tdelete cleanly"
437+
release: v1.19
438+
file: test/e2e/common/expansion.go
439+
- testname: VolumeSubpathEnvExpansion, subpath test writes
440+
codename: '[k8s.io] Variable Expansion should succeed in writing subpaths in container
441+
[sig-storage][Slow] [Conformance]'
442+
description: "Verify that a subpath expansion can be used to write files into subpaths.
443+
1.\tvalid subpathexpr starts a container running 2.\ttest for valid subpath writes
444+
3.\tsuccessful expansion of the subpathexpr isn't required for volume cleanup"
445+
release: v1.19
446+
file: test/e2e/common/expansion.go
447+
- testname: VolumeSubpathEnvExpansion, subpath ready from failed state
448+
codename: '[k8s.io] Variable Expansion should verify that a failing subpath expansion
449+
can be modified during the lifecycle of a container [sig-storage][Slow] [Conformance]'
450+
description: Verify that a failing subpath expansion can be modified during the
451+
lifecycle of a container.
452+
release: v1.19
453+
file: test/e2e/common/expansion.go
410454
- testname: Pod events, verify event from Scheduler and Kubelet
411455
codename: '[k8s.io] [sig-node] Events should be sent by kubelets and the scheduler
412456
about pods scheduling and running [Conformance]'

test/e2e/common/expansion.go

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
155155
})
156156

157157
/*
158-
Testname: var-expansion-subpath
159-
Description: Make sure a container's subpath can be set using an
160-
expansion of environment variables.
158+
Release : v1.19
159+
Testname: VolumeSubpathEnvExpansion, subpath expansion
160+
Description: Make sure a container's subpath can be set using an expansion of environment variables.
161161
*/
162-
ginkgo.It("should allow substituting values in a volume subpath [sig-storage]", func() {
162+
framework.ConformanceIt("should allow substituting values in a volume subpath [sig-storage]", func() {
163163
podName := "var-expansion-" + string(uuid.NewUUID())
164164
pod := &v1.Pod{
165165
ObjectMeta: metav1.ObjectMeta{
@@ -209,11 +209,11 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
209209
})
210210

211211
/*
212-
Testname: var-expansion-subpath-with-backticks
213-
Description: Make sure a container's subpath can not be set using an
214-
expansion of environment variables when backticks are supplied.
212+
Release : v1.19
213+
Testname: VolumeSubpathEnvExpansion, subpath with backticks
214+
Description: Make sure a container's subpath can not be set using an expansion of environment variables when backticks are supplied.
215215
*/
216-
ginkgo.It("should fail substituting values in a volume subpath with backticks [sig-storage][Slow]", func() {
216+
framework.ConformanceIt("should fail substituting values in a volume subpath with backticks [sig-storage][Slow]", func() {
217217

218218
podName := "var-expansion-" + string(uuid.NewUUID())
219219
pod := &v1.Pod{
@@ -258,11 +258,11 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
258258
})
259259

260260
/*
261-
Testname: var-expansion-subpath-with-absolute-path
262-
Description: Make sure a container's subpath can not be set using an
263-
expansion of environment variables when absolute path is supplied.
261+
Release : v1.19
262+
Testname: VolumeSubpathEnvExpansion, subpath with absolute path
263+
Description: Make sure a container's subpath can not be set using an expansion of environment variables when absolute path is supplied.
264264
*/
265-
ginkgo.It("should fail substituting values in a volume subpath with absolute path [sig-storage][Slow]", func() {
265+
framework.ConformanceIt("should fail substituting values in a volume subpath with absolute path [sig-storage][Slow]", func() {
266266

267267
podName := "var-expansion-" + string(uuid.NewUUID())
268268
pod := &v1.Pod{
@@ -307,10 +307,11 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
307307
})
308308

309309
/*
310-
Testname: var-expansion-subpath-ready-from-failed-state
311-
Description: Verify that a failing subpath expansion can be modified during the lifecycle of a container.
310+
Release : v1.19
311+
Testname: VolumeSubpathEnvExpansion, subpath ready from failed state
312+
Description: Verify that a failing subpath expansion can be modified during the lifecycle of a container.
312313
*/
313-
ginkgo.It("should verify that a failing subpath expansion can be modified during the lifecycle of a container [sig-storage][Slow]", func() {
314+
framework.ConformanceIt("should verify that a failing subpath expansion can be modified during the lifecycle of a container [sig-storage][Slow]", func() {
314315

315316
podName := "var-expansion-" + string(uuid.NewUUID())
316317
containerName := "dapi-container"
@@ -387,14 +388,15 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
387388
})
388389

389390
/*
390-
Testname: var-expansion-subpath-test-writes
391-
Description: Verify that a subpath expansion can be used to write files into subpaths.
392-
1. valid subpathexpr starts a container running
393-
2. test for valid subpath writes
394-
3. successful expansion of the subpathexpr isn't required for volume cleanup
391+
Release : v1.19
392+
Testname: VolumeSubpathEnvExpansion, subpath test writes
393+
Description: Verify that a subpath expansion can be used to write files into subpaths.
394+
1. valid subpathexpr starts a container running
395+
2. test for valid subpath writes
396+
3. successful expansion of the subpathexpr isn't required for volume cleanup
395397
396398
*/
397-
ginkgo.It("should succeed in writing subpaths in container [sig-storage][Slow]", func() {
399+
framework.ConformanceIt("should succeed in writing subpaths in container [sig-storage][Slow]", func() {
398400

399401
podName := "var-expansion-" + string(uuid.NewUUID())
400402
containerName := "dapi-container"
@@ -487,16 +489,16 @@ var _ = framework.KubeDescribe("Variable Expansion", func() {
487489
})
488490

489491
/*
490-
Testname: var-expansion-subpath-lifecycle
491-
Description: Verify should not change the subpath mount on a container restart if the environment variable changes
492-
1. valid subpathexpr starts a container running
493-
2. test for valid subpath writes
494-
3. container restarts
495-
4. delete cleanly
496-
492+
Release : v1.19
493+
Testname: VolumeSubpathEnvExpansion, subpath lifecycle
494+
Description: Verify should not change the subpath mount on a container restart if the environment variable changes
495+
1. valid subpathexpr starts a container running
496+
2. test for valid subpath writes
497+
3. container restarts
498+
4. delete cleanly
497499
*/
498500

499-
ginkgo.It("should not change the subpath mount on a container restart if the environment variable changes [sig-storage][Slow]", func() {
501+
framework.ConformanceIt("should not change the subpath mount on a container restart if the environment variable changes [sig-storage][Slow]", func() {
500502

501503
suffix := string(uuid.NewUUID())
502504
podName := fmt.Sprintf("var-expansion-%s", suffix)

0 commit comments

Comments
 (0)