Modify security policy e2e test to create unique GCP resources.
@@ -72,7 +72,7 @@ func TestSecurityPolicyEnable(t *testing.T) {
Framework.RunWithSandbox("Security Policy Enable", t, func(t *testing.T, s *e2e.Sandbox) {
policies := []*computebeta.SecurityPolicy{
- buildPolicyAllowAll("enable-test-allow-all"),
+ buildPolicyAllowAll(fmt.Sprintf("enable-test-allow-all-%s", s.Namespace)),
}
defer func() {
if err := cleanupSecurityPolicies(t, ctx, Framework.Cloud, policies); err != nil {
@@ -143,8 +143,8 @@ func TestSecurityPolicyTransition(t *testing.T) {
Framework.RunWithSandbox("Security Policy Transition", t, func(t *testing.T, s *e2e.Sandbox) {
policies := []*computebeta.SecurityPolicy{
- buildPolicyAllowAll("transition-test-allow-all"),
- buildPolicyDisallowAll("transition-test-disallow-all"),
+ buildPolicyAllowAll(fmt.Sprintf("transition-test-allow-all-%s", s.Namespace))
+ buildPolicyDisallowAll(fmt.Sprintf("transition-test-disallow-all-%s", s.Namespace))
}
defer func() {
if err := cleanupSecurityPolicies(t, ctx, Framework.Cloud, policies); err != nil {
