From a7aef4b5184e66838cd4a8c9b1110b8a0237a1e6 Mon Sep 17 00:00:00 2001 From: jingwei-MS Date: Thu, 10 Aug 2023 17:20:18 +0800 Subject: [PATCH] second commit of keyvault module - add a functional end-to-end test --- test/e2e/terraform_test.go | 8 +------- test/go.mod | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/test/e2e/terraform_test.go b/test/e2e/terraform_test.go index 48492ed..7c303b7 100644 --- a/test/e2e/terraform_test.go +++ b/test/e2e/terraform_test.go @@ -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) } diff --git a/test/go.mod b/test/go.mod index bf3559c..19e1beb 100644 --- a/test/go.mod +++ b/test/go.mod @@ -5,7 +5,6 @@ go 1.19 require ( github.com/Azure/terraform-module-test-helper v0.15.0 github.com/gruntwork-io/terratest v0.43.9 - github.com/stretchr/testify v1.8.4 ) require ( @@ -77,6 +76,7 @@ require ( github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/spf13/afero v1.9.5 // indirect github.com/spf13/pflag v1.0.5 // indirect + github.com/stretchr/testify v1.8.4 // indirect github.com/thanhpk/randstr v1.0.6 // indirect github.com/tmccombs/hcl2json v0.3.3 // indirect github.com/ulikunitz/xz v0.5.10 // indirect