Skip to content

Commit 67eac02

Browse files
committed
added back the missing teardown
Signed-off-by: Gergely Brautigam <[email protected]>
1 parent b214c6b commit 67eac02

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

e2e/main_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,13 @@ func TestSignedComponentUploadToLocalOCIRegistry(t *testing.T) {
139139
Assess("Validate Component "+podinfoComponentName, checkRepositoryExistsInRegistry(componentNamePrefix+componentNameIdentifier+podinfoComponentName)).
140140
Assess("Validate Component "+podinfoBackendComponentName, checkRepositoryExistsInRegistry(componentNamePrefix+componentNameIdentifier+podinfoBackendComponentName)).
141141
Assess("Validate Component "+podinfoFrontendComponentName, checkRepositoryExistsInRegistry(componentNamePrefix+componentNameIdentifier+podinfoFrontendComponentName)).
142-
Assess("Validate Component "+redisComponentName, checkRepositoryExistsInRegistry(componentNamePrefix+componentNameIdentifier+redisComponentName))
142+
Assess("Validate Component "+redisComponentName, checkRepositoryExistsInRegistry(componentNamePrefix+componentNameIdentifier+redisComponentName)).
143+
Teardown(shared.DeleteSecret(keyName))
143144

144145
signatureVerification := features.New("Validate if signed Component Versions of OCM Components exist").
145146
WithStep("create valid rsa key secret", 1, shared.CreateSecret(keyName, map[string][]byte{keyName: publicKey}, nil, "")).
146-
Assess("Check that component version "+cvName+" is ready and signature was verified", checkIsComponentVersionReady(cvName, ocmNamespace))
147+
Assess("Check that component version "+cvName+" is ready and signature was verified", checkIsComponentVersionReady(cvName, ocmNamespace)).
148+
Teardown(shared.DeleteSecret(keyName))
147149

148150
testEnv.Test(t,
149151
setupComponent.Feature(),

0 commit comments

Comments
 (0)