Skip to content

Commit 4da98b4

Browse files
author
Sohan Yadav
committed
fixed terratest
1 parent b3550b2 commit 4da98b4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

_test/sftp_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package test
55

66
import (
77
"testing"
8-
"strings"
98
"github.com/stretchr/testify/assert"
109
"github.com/gruntwork-io/terratest/modules/terraform"
1110
)
@@ -26,10 +25,10 @@ func Test(t *testing.T) {
2625
defer terraform.Destroy(t, terraformOptions)
2726

2827
// To get the value of an output variable, run 'terraform output'
29-
Id := strings.Join(terraform.OutputList(t, terraformOptions, "id")," ")
28+
Id := terraform.Output(t, terraformOptions, "id")
3029
Tags := terraform.OutputMap(t, terraformOptions, "tags")
3130

3231
// Verify we're getting back the outputs we expect
3332
assert.Contains(t, Id, "s-")
34-
assert.Equal(t, "test-redis-cd", Tags["Name"])
33+
assert.Equal(t, "test-sftp-clouddrove", Tags["Name"])
3534
}

0 commit comments

Comments
 (0)