Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

chore(test): add new examples to terratest #79

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .github/workflows/terratest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 18 additions & 0 deletions test/terraform_mysql_custom_sql_script_test.go
Original file line number Diff line number Diff line change
@@ -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)
}
18 changes: 18 additions & 0 deletions test/terraform_postgresql_custom_sql_script_test.go
Original file line number Diff line number Diff line change
@@ -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)
}
Loading