diff --git a/src/cloud-api-adaptor/test/e2e/common_suite.go b/src/cloud-api-adaptor/test/e2e/common_suite.go index ad463caf3a..cfad95a885 100644 --- a/src/cloud-api-adaptor/test/e2e/common_suite.go +++ b/src/cloud-api-adaptor/test/e2e/common_suite.go @@ -572,7 +572,7 @@ func DoTestPodsMTLSCommunication(t *testing.T, e env.Environment, assert CloudAs } -// DoTestKbsKeyRelease and DoTestKbsKeyReleaseForFailure should be run in a single test case if you're chaning opa in kbs +// DoTestKbsKeyRelease and DoTestKbsKeyReleaseForFailure should be run in a single test case if you're chaining opa in kbs // as test cases might be run in parallel func DoTestKbsKeyRelease(t *testing.T, e env.Environment, assert CloudAssert) { t.Log("Do test kbs key release") @@ -596,7 +596,7 @@ func DoTestKbsKeyRelease(t *testing.T, e env.Environment, assert CloudAssert) { NewTestCase(t, e, "KbsKeyReleasePod", assert, "Kbs key release is successful").WithPod(pod).WithTestCommands(testCommands).Run() } -// DoTestKbsKeyRelease and DoTestKbsKeyReleaseForFailure should be run in a single test case if you're chaning opa in kbs +// DoTestKbsKeyRelease and DoTestKbsKeyReleaseForFailure should be run in a single test case if you're chaining opa in kbs // as test cases might be run in parallel func DoTestKbsKeyReleaseForFailure(t *testing.T, e env.Environment, assert CloudAssert) { t.Log("Do test kbs key release failure case") diff --git a/src/cloud-api-adaptor/test/e2e/docker_test.go b/src/cloud-api-adaptor/test/e2e/docker_test.go index 13423d9e8b..0438b451d4 100644 --- a/src/cloud-api-adaptor/test/e2e/docker_test.go +++ b/src/cloud-api-adaptor/test/e2e/docker_test.go @@ -101,10 +101,11 @@ func TestDockerKbsKeyRelease(t *testing.T) { if !isTestWithKbs() { t.Skip("Skipping kbs related test as kbs is not deployed") } - _ = keyBrokerService.EnableKbsCustomizedPolicy("deny_all.rego") + keyBrokerService.SetSampleSecretKey() + keyBrokerService.EnableKbsCustomizedResourcePolicy("deny_all.rego") assert := DockerAssert{} t.Parallel() DoTestKbsKeyReleaseForFailure(t, testEnv, assert) - _ = keyBrokerService.EnableKbsCustomizedPolicy("allow_all.rego") + keyBrokerService.EnableKbsCustomizedResourcePolicy("allow_all.rego") DoTestKbsKeyRelease(t, testEnv, assert) }