Skip to content

Commit fa19404

Browse files
authored
Ensure to keep track of created resources in end-to-end tests to properly clean them (#468)
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. Signed-off-by: Burak Varlı <burakvar@amazon.co.uk>
1 parent 917098f commit fa19404

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/e2e-kubernetes/testsuites/mountoptions.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ func (t *s3CSIMountOptionsTestSuite) DefineTests(driver storageframework.TestDri
8787
resource := createVolumeResource(ctx, l.config, pattern, v1.ReadWriteMany, []string{
8888
"allow-other",
8989
})
90+
l.resources = append(l.resources, resource)
9091
expectedMountOptions := []string{
9192
"--allow-other",
9293
"--debug",
@@ -99,6 +100,7 @@ func (t *s3CSIMountOptionsTestSuite) DefineTests(driver storageframework.TestDri
99100
"--debug",
100101
"--debug-crt",
101102
})
103+
l.resources = append(l.resources, resource)
102104
expectedMountOptions = []string{
103105
"--allow-other",
104106
"--debug",
@@ -111,6 +113,7 @@ func (t *s3CSIMountOptionsTestSuite) DefineTests(driver storageframework.TestDri
111113
"debug",
112114
"debug-crt",
113115
})
116+
l.resources = append(l.resources, resource)
114117
expectedMountOptions = []string{
115118
"--allow-other",
116119
"--debug",

0 commit comments

Comments
 (0)