Skip to content

Commit

Permalink
fixed terratest
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohan Yadav committed Sep 11, 2019
1 parent b3550b2 commit 4da98b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions _test/sftp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package test

import (
"testing"
"strings"
"github.com/stretchr/testify/assert"
"github.com/gruntwork-io/terratest/modules/terraform"
)
Expand All @@ -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"])
}

0 comments on commit 4da98b4

Please sign in to comment.