Skip to content

Commit

Permalink
Merge pull request #387 from rramkumar1/patch-13
Browse files Browse the repository at this point in the history
Modify security policy e2e test to create unique GCP resources.
  • Loading branch information
MrHohn committed Jul 3, 2018
2 parents f02c8ac + 5d89ff7 commit 6f8bdc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/e2e-test/security_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 6f8bdc9

Please sign in to comment.