Fix the Push test outputs

Change the expected outputs in the Push tests to match the quotes map
keys.
This commit is contained in:
James Bardin 2017-02-24 18:37:06 -05:00
parent 71c541c65c
commit 80389375b5
1 changed files with 2 additions and 1 deletions

View File

@ -761,11 +761,12 @@ func testArchiveStr(t *testing.T, path string) []string {
return result return result
} }
// we always quote map keys to be safe
func pushTFVars() []atlas.TFVar { func pushTFVars() []atlas.TFVar {
return []atlas.TFVar{ return []atlas.TFVar{
{Key: "bar", Value: "foo", IsHCL: false}, {Key: "bar", Value: "foo", IsHCL: false},
{Key: "baz", Value: `{ {Key: "baz", Value: `{
A = "a" "A" = "a"
}`, IsHCL: true}, }`, IsHCL: true},
{Key: "fob", Value: `["a", "quotes \"in\" quotes"]`, IsHCL: true}, {Key: "fob", Value: `["a", "quotes \"in\" quotes"]`, IsHCL: true},
{Key: "foo", Value: "bar", IsHCL: false}, {Key: "foo", Value: "bar", IsHCL: false},