Skip to content

Commit 1a9f237

Browse files
committed
fix terratest
1 parent f3d744f commit 1a9f237

File tree

4 files changed

+2
-46
lines changed

4 files changed

+2
-46
lines changed

_test/memcached/elasticache_test.go

Lines changed: 0 additions & 32 deletions
This file was deleted.

_test/memcached/go.mod

Lines changed: 0 additions & 8 deletions
This file was deleted.

_test/redis-cluster/elasticache_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ func Test(t *testing.T) {
2626
defer terraform.Destroy(t, terraformOptions)
2727

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

3231
// Verify we're getting back the outputs we expect
33-
assert.Equal(t, "test-clouddrove-cluster", Id)
34-
assert.Equal(t, "test-clouddrove-cluster", Tags["Name"])
32+
assert.Equal(t, "cluster-test", Tags["Name"])
3533
}

_test/redis/elasticache_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ func Test(t *testing.T) {
2626
defer terraform.Destroy(t, terraformOptions)
2727

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

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

0 commit comments

Comments
 (0)