Closed
Description
While running terratest on GCP environment, it seems the test code is hardcoding the project_id
. CMIIW @commjoen
https://github.com/OWASP/wrongsecrets/blob/master/gcp/wrongsecrets_gcp_test.go#L29
func TestTerraformWrongSecretsGCP(t *testing.T) {
t.Parallel()
// Construct the terraform options with default retryable errors to handle the most common
// retryable errors in terraform testing.
terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
// The path to where our Terraform code is located
TerraformDir: "../gcp",
Vars: map[string]interface{}{
"region": "europe-west4",
"project_id": "owasp-wrongsecrets",
},
})
This will be an issue if the project_id
is not exactly as owasp-wrongsecrets
. Need to verify/triage this bug first before proceeding into fix.