From 4da98b40a7aac370d27e8dc928192df70eb4f4d8 Mon Sep 17 00:00:00 2001 From: Sohan Yadav Date: Wed, 11 Sep 2019 19:24:36 +0530 Subject: [PATCH] fixed terratest --- _test/sftp_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/_test/sftp_test.go b/_test/sftp_test.go index 2b9bd37..23846b8 100644 --- a/_test/sftp_test.go +++ b/_test/sftp_test.go @@ -5,7 +5,6 @@ package test import ( "testing" - "strings" "github.com/stretchr/testify/assert" "github.com/gruntwork-io/terratest/modules/terraform" ) @@ -26,10 +25,10 @@ func Test(t *testing.T) { defer terraform.Destroy(t, terraformOptions) // To get the value of an output variable, run 'terraform output' - Id := strings.Join(terraform.OutputList(t, terraformOptions, "id")," ") + Id := terraform.Output(t, terraformOptions, "id") Tags := terraform.OutputMap(t, terraformOptions, "tags") // Verify we're getting back the outputs we expect assert.Contains(t, Id, "s-") - assert.Equal(t, "test-redis-cd", Tags["Name"]) + assert.Equal(t, "test-sftp-clouddrove", Tags["Name"]) } \ No newline at end of file