Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure the sweeper to clean up firewall rules that are leftover #5202

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ func skipIfEnvNotSet(t *testing.T, envs ...string) {

for _, k := range envs {
if os.Getenv(k) == "" {
log.Printf("[DEBUG] Warning - environment variable %s is not set - skipping test %s", k, t.Name())
t.Skipf("Environment variable %s is not set", k)
}
}
Expand Down
1 change: 1 addition & 0 deletions mmv1/third_party/terraform/utils/gcp_sweeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ var testResourcePrefixes = []string{
"df-", // https://github.com/hashicorp/terraform-provider-google/issues/8909
"resourcegroup-", // https://github.com/hashicorp/terraform-provider-google/issues/8924
"cluster-", // https://github.com/hashicorp/terraform-provider-google/issues/8924
"k8s-fw-",
ScottSuarez marked this conversation as resolved.
Show resolved Hide resolved
}

func TestMain(m *testing.M) {
Expand Down