2022-03-01 08:17:23 +03:00
|
|
|
package terraform_module_test_helper
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/gruntwork-io/terratest/modules/terraform"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestE2EExampleTest(t *testing.T) {
|
2022-04-07 10:59:38 +03:00
|
|
|
RunE2ETest(t, "./", "example/basic", terraform.Options{
|
2022-03-01 08:17:23 +03:00
|
|
|
Upgrade: true,
|
2022-04-07 10:59:38 +03:00
|
|
|
}, func(t *testing.T, output TerraformOutput) {
|
|
|
|
resId, ok := output["resource_id"].(string)
|
|
|
|
assert.True(t, ok)
|
|
|
|
assert.NotEqual(t, "", resId, "expected output `resource_id`")
|
2022-03-01 08:17:23 +03:00
|
|
|
})
|
|
|
|
}
|