generated from Azure/terraform-verified-module
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
second commit of keyvault module - add a functional end-to-end test
- Loading branch information
jingwei-MS
committed
Aug 10, 2023
1 parent
e2b5fd9
commit a7aef4b
Showing
2 changed files
with
2 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
package e2e | ||
|
||
import ( | ||
"regexp" | ||
"testing" | ||
|
||
test_helper "github.com/Azure/terraform-module-test-helper" | ||
"github.com/gruntwork-io/terratest/modules/terraform" | ||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestExamplesBasic(t *testing.T) { | ||
test_helper.RunE2ETest(t, "../../", "examples/basic", terraform.Options{ | ||
Upgrade: true, | ||
}, func(t *testing.T, output test_helper.TerraformOutput) { | ||
gotEchoText, ok := output["echo_text"].(string) | ||
assert.True(t, ok) | ||
assert.Regexp(t, regexp.MustCompile("Hello, world!"), gotEchoText) | ||
}) | ||
}, nil) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters