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

Commit

Permalink
chore(test): add new examples to terratest
Browse files Browse the repository at this point in the history
  • Loading branch information
clementsol committed Dec 6, 2024
1 parent 253fd5c commit 1d6bbe3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
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)
}

0 comments on commit 1d6bbe3

Please sign in to comment.