Skip to content

Test code on GCP it seems hardcoding the project_id #2070

Closed
@za

Description

@za

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions