From 2f8baa45805b6eb952c27576ea8ded6b051aeddf Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 25 Aug 2016 14:09:34 -0700 Subject: [PATCH] command/push: fix tests to be vcs=false GH-8478 --- command/push_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/command/push_test.go b/command/push_test.go index 2fdbf2f268..0a26712f2b 100644 --- a/command/push_test.go +++ b/command/push_test.go @@ -107,6 +107,7 @@ func TestPush_noUploadModules(t *testing.T) { defer os.Remove(testStateFileRemote(t, s)) args := []string{ + "-vcs=false", "-name=mitchellh/tf-test", "-upload-modules=false", path, @@ -115,9 +116,14 @@ func TestPush_noUploadModules(t *testing.T) { t.Fatalf("bad: %d\n\n%s", code, ui.ErrorWriter.String()) } + // NOTE: The duplicates below are not ideal but are how things work + // currently due to how we manually add the files to the archive. This + // is definitely a "bug" we can fix in the future. actual := testArchiveStr(t, archivePath) expected := []string{ ".terraform/", + ".terraform/", + ".terraform/terraform.tfstate", ".terraform/terraform.tfstate", "child/", "child/main.tf",