From 80389375b59a790a94a79dc04abe27d860ff0dcb Mon Sep 17 00:00:00 2001 From: James Bardin Date: Fri, 24 Feb 2017 18:37:06 -0500 Subject: [PATCH] Fix the Push test outputs Change the expected outputs in the Push tests to match the quotes map keys. --- command/push_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/command/push_test.go b/command/push_test.go index 0f84611a8..94573765f 100644 --- a/command/push_test.go +++ b/command/push_test.go @@ -761,11 +761,12 @@ func testArchiveStr(t *testing.T, path string) []string { return result } +// we always quote map keys to be safe func pushTFVars() []atlas.TFVar { return []atlas.TFVar{ {Key: "bar", Value: "foo", IsHCL: false}, {Key: "baz", Value: `{ - A = "a" + "A" = "a" }`, IsHCL: true}, {Key: "fob", Value: `["a", "quotes \"in\" quotes"]`, IsHCL: true}, {Key: "foo", Value: "bar", IsHCL: false},