diff --git a/.github/workflows/terratest.yml b/.github/workflows/terratest.yml index cc7227a..e177427 100644 --- a/.github/workflows/terratest.yml +++ b/.github/workflows/terratest.yml @@ -33,4 +33,4 @@ jobs: rm install.sh tfswitch -b ~/.local/bin/terraform --latest - name: Test with the Go CLI - run: go test -timeout 60s ./test + run: go test -timeout 300s ./test diff --git a/test/terraform_mysql_custom_sql_script_test.go b/test/terraform_mysql_custom_sql_script_test.go new file mode 100644 index 0000000..c2a12a3 --- /dev/null +++ b/test/terraform_mysql_custom_sql_script_test.go @@ -0,0 +1,18 @@ +package test + +import ( + "testing" + + "github.com/gruntwork-io/terratest/modules/terraform" +) + +func TestTerraformMySQLCustomSQLScriptExample(t *testing.T) { + // retryable errors in terraform testing. + terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ + TerraformDir: "../examples/mysql_custom_sql_script", + }) + + defer terraform.Destroy(t, terraformOptions) + + terraform.InitAndPlan(t, terraformOptions) +} diff --git a/test/terraform_postgresql_custom_sql_script_test.go b/test/terraform_postgresql_custom_sql_script_test.go new file mode 100644 index 0000000..4de4085 --- /dev/null +++ b/test/terraform_postgresql_custom_sql_script_test.go @@ -0,0 +1,18 @@ +package test + +import ( + "testing" + + "github.com/gruntwork-io/terratest/modules/terraform" +) + +func TestTerraformPostgreSQLCustomSQLScriptExample(t *testing.T) { + // retryable errors in terraform testing. + terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{ + TerraformDir: "../examples/postgresql_custom_sql_script", + }) + + defer terraform.Destroy(t, terraformOptions) + + terraform.InitAndPlan(t, terraformOptions) +}