Skip to content

Commit

Permalink
fix terratest
Browse files Browse the repository at this point in the history
  • Loading branch information
yadavprakash committed Jul 8, 2021
1 parent 546e48d commit 294bdf0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions _test/public-private-subnet/public_private_subnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,10 @@ func Test(t *testing.T) {
defer terraform.Destroy(t, terraformOptions)

// To get the value of an output variable, run 'terraform output'
publicSubnetCidrs := terraform.OutputList(t, terraformOptions, "public_subnet_cidrs")
privateSubnetCidrs := terraform.OutputList(t, terraformOptions, "private_subnet_cidrs")

publicTags := terraform.OutputMap(t, terraformOptions, "public_tags")
privateTags := terraform.OutputMap(t, terraformOptions, "private_tags")

//Expected Values
expectedPublicSubnetCidrs := []string{"10.0.96.0/19", "10.0.128.0/19", "10.0.160.0/19"}
expectedPrivateSubnetCidrs := []string{"10.0.0.0/19", "10.0.32.0/19", "10.0.64.0/19"}

// Check that we get back the outputs that we expect
assert.Equal(t, expectedPublicSubnetCidrs, publicSubnetCidrs)
assert.Equal(t, expectedPrivateSubnetCidrs, privateSubnetCidrs)
Expand Down

0 comments on commit 294bdf0

Please sign in to comment.