Skip to content

Instantly share code, notes, and snippets.

@jolexa
Created October 1, 2018 16:56
Show Gist options
  • Save jolexa/d9ac5dcfb6b46c6787d949d68ec9924e to your computer and use it in GitHub Desktop.
Save jolexa/d9ac5dcfb6b46c6787d949d68ec9924e to your computer and use it in GitHub Desktop.
make test error output
mbp:~/sandbox/atlantis [master u= 1af6c77e]
$ docker run --rm -v $(pwd):/go/src/github.com/runatlantis/atlantis -w /go/src/github.com/runatlantis/atlantis runatlantis/testing-env make test
? github.com/runatlantis/atlantis [no test files]
ok github.com/runatlantis/atlantis/cmd 0.031s
# github.com/runatlantis/atlantis/server/events_test [github.com/runatlantis/atlantis/server/events.test]
server/events/markdown_renderer_test.go:57:18: too many arguments in call to r.Render
have (events.CommandResult, events.CommandName, string, bool, models.VCSHostType)
want (events.CommandResult, events.CommandName, string, bool)
server/events/markdown_renderer_test.go:97:18: too many arguments in call to r.Render
have (events.CommandResult, events.CommandName, string, bool, models.VCSHostType)
want (events.CommandResult, events.CommandName, string, bool)
server/events/markdown_renderer_test.go:115:15: too many arguments in call to r.Render
have (events.CommandResult, events.CommandName, string, bool, models.VCSHostType)
want (events.CommandResult, events.CommandName, string, bool)
server/events/markdown_renderer_test.go:476:19: too many arguments in call to r.Render
have (events.CommandResult, events.CommandName, string, bool, models.VCSHostType)
want (events.CommandResult, events.CommandName, string, bool)
server/events/markdown_renderer_test.go:493:20: too many arguments in call to r.Render
have (events.CommandResult, events.CommandName, string, bool, models.VCSHostType)
want (events.CommandResult, events.CommandName, string, bool)
server/events/markdown_renderer_test.go:641:26: too many arguments in call to mr.Render
have (events.CommandResult, events.CommandName, string, bool, models.VCSHostType)
want (events.CommandResult, events.CommandName, string, bool)
server/events/markdown_renderer_test.go:755:27: too many arguments in call to mr.Render
have (events.CommandResult, events.CommandName, string, bool, models.VCSHostType)
want (events.CommandResult, events.CommandName, string, bool)
server/events/markdown_renderer_test.go:834:23: too many arguments in call to mr.Render
have (events.CommandResult, events.CommandName, string, bool, models.VCSHostType)
want (events.CommandResult, events.CommandName, string, bool)
server/events/markdown_renderer_test.go:879:23: too many arguments in call to mr.Render
have (events.CommandResult, events.CommandName, string, bool, models.VCSHostType)
want (events.CommandResult, events.CommandName, string, bool)
ok github.com/runatlantis/atlantis/server 0.487s
FAIL github.com/runatlantis/atlantis/server/events [build failed]
ok github.com/runatlantis/atlantis/server/events/locking 0.013s
ok github.com/runatlantis/atlantis/server/events/locking/boltdb 0.180s
ok github.com/runatlantis/atlantis/server/events/models 0.011s
? github.com/runatlantis/atlantis/server/events/models/fixtures [no test files]
--- FAIL: TestRun_Success (0.00s)
testing_t_support.go:41:
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/testing_t_support.go:40 +0x59
github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock.(*GenericMock).Verify(0xc000258270, 0x0, 0x91fa40, 0xc000256c40, 0x8ac2f5, 0x15, 0xc0002b82d0, 0x5, 0x5, 0x0, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/dsl.go:115 +0x4d1
github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks.(*VerifierClient).RunCommandWithVersion(0xc000083d08, 0x0, 0xc0002544e0, 0xe, 0xc00026a880, 0x8, 0x8, 0x0, 0x8a74c9, 0x9, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks/mock_terraform_client.go:103 +0x2e4
github.com/runatlantis/atlantis/server/events/runtime_test.TestRun_Success(0xc00025b700)
/go/src/github.com/runatlantis/atlantis/server/events/runtime/apply_step_runner_test.go:66 +0x796
testing.tRunner(0xc00025b700, 0x8c1ac8)
/usr/local/go/src/testing/testing.go:827 +0xbf
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:878 +0x353
Mock invocation count for RunCommandWithVersion((*logging.SimpleLogger)(nil), "/tmp/644890851", []string{"apply", "-input=false", "-no-color", "extra", "args", "comment", "args", "/tmp/644890851/workspace.tfplan"}, (*version.Version)(nil), "workspace") does not match expectation.
Expected: 1; but got: 0
But other interactions with this mock were:
RunCommandWithVersion((*logging.SimpleLogger)(nil), "/tmp/644890851", []string{"apply", "-no-color", "extra", "args", "comment", "args", "/tmp/644890851/workspace.tfplan"}, (*version.Version)(nil), "workspace")
--- FAIL: TestRun_AppliesCorrectProjectPlan (0.00s)
testing_t_support.go:41:
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/testing_t_support.go:40 +0x59
github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock.(*GenericMock).Verify(0xc0002582a8, 0x0, 0x91fa40, 0xc000256fe0, 0x8ac2f5, 0x15, 0xc0002b8500, 0x5, 0x5, 0x0, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/dsl.go:115 +0x4d1
github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks.(*VerifierClient).RunCommandWithVersion(0xc000083d08, 0x0, 0xc000254660, 0xe, 0xc00026aa80, 0x8, 0x8, 0x0, 0x8a6424, 0x7, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks/mock_terraform_client.go:103 +0x2e4
github.com/runatlantis/atlantis/server/events/runtime_test.TestRun_AppliesCorrectProjectPlan(0xc00025ba00)
/go/src/github.com/runatlantis/atlantis/server/events/runtime/apply_step_runner_test.go:98 +0x808
testing.tRunner(0xc00025ba00, 0x8c1a88)
/usr/local/go/src/testing/testing.go:827 +0xbf
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:878 +0x353
Mock invocation count for RunCommandWithVersion((*logging.SimpleLogger)(nil), "/tmp/284877542", []string{"apply", "-input=false", "-no-color", "extra", "args", "comment", "args", "/tmp/284877542/projectname-default.tfplan"}, (*version.Version)(nil), "default") does not match expectation.
Expected: 1; but got: 0
But other interactions with this mock were:
RunCommandWithVersion((*logging.SimpleLogger)(nil), "/tmp/284877542", []string{"apply", "-no-color", "extra", "args", "comment", "args", "/tmp/284877542/projectname-default.tfplan"}, (*version.Version)(nil), "default")
--- FAIL: TestRun_UsesConfiguredTFVersion (0.00s)
testing_t_support.go:41:
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/testing_t_support.go:40 +0x59
github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock.(*GenericMock).Verify(0xc0002582e8, 0x0, 0x91fa40, 0xc000257380, 0x8ac2f5, 0x15, 0xc0002b8730, 0x5, 0x5, 0x0, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/dsl.go:115 +0x4d1
github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks.(*VerifierClient).RunCommandWithVersion(0xc000083d08, 0x0, 0xc0002547d0, 0xe, 0xc00026ac80, 0x8, 0x8, 0xc000253880, 0x8a74c9, 0x9, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks/mock_terraform_client.go:103 +0x2e4
github.com/runatlantis/atlantis/server/events/runtime_test.TestRun_UsesConfiguredTFVersion(0xc00025bd00)
/go/src/github.com/runatlantis/atlantis/server/events/runtime/apply_step_runner_test.go:129 +0x7f6
testing.tRunner(0xc00025bd00, 0x8c1ad8)
/usr/local/go/src/testing/testing.go:827 +0xbf
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:878 +0x353
Mock invocation count for RunCommandWithVersion((*logging.SimpleLogger)(nil), "/tmp/314220813", []string{"apply", "-input=false", "-no-color", "extra", "args", "comment", "args", "/tmp/314220813/workspace.tfplan"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 11, 0}, si:3}, "workspace") does not match expectation.
Expected: 1; but got: 0
But other interactions with this mock were:
RunCommandWithVersion((*logging.SimpleLogger)(nil), "/tmp/314220813", []string{"apply", "-no-color", "extra", "args", "comment", "args", "/tmp/314220813/workspace.tfplan"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 11, 0}, si:3}, "workspace")
--- FAIL: TestRun_UsesGetOrInitForRightVersion (0.00s)
testing_t_support.go:41:
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/testing_t_support.go:40 +0x59
github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock.(*GenericMock).Verify(0xc000258348, 0x0, 0x91fa40, 0xc000257a40, 0x8ac2f5, 0x15, 0xc0002b8be0, 0x5, 0x5, 0x0, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/dsl.go:115 +0x4d1
github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks.(*VerifierClient).RunCommandWithVersion(0xc000083f38, 0x0, 0x8a5860, 0x5, 0xc0002b8b90, 0x5, 0x5, 0xc000253cc0, 0x8a74c9, 0x9, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks/mock_terraform_client.go:103 +0x2e4
github.com/runatlantis/atlantis/server/events/runtime_test.TestRun_UsesGetOrInitForRightVersion.func1(0xc000326200)
/go/src/github.com/runatlantis/atlantis/server/events/runtime/init_step_runner_test.go:66 +0x645
testing.tRunner(0xc000326200, 0xc0002516f0)
/usr/local/go/src/testing/testing.go:827 +0xbf
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:878 +0x353
Mock invocation count for RunCommandWithVersion((*logging.SimpleLogger)(nil), "/path", []string{"init", "-input=false", "-no-color", "extra", "args"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 9, 0}, si:3}, "workspace") does not match expectation.
Expected: 1; but got: 0
But other interactions with this mock were:
RunCommandWithVersion((*logging.SimpleLogger)(nil), "/path", []string{"init", "-no-color", "extra", "args"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 9, 0}, si:3}, "workspace")
testing_t_support.go:41:
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/testing_t_support.go:40 +0x59
github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock.(*GenericMock).Verify(0xc000258380, 0x0, 0x91fa40, 0xc000257e00, 0x8ac2f5, 0x15, 0xc0002b8e60, 0x5, 0x5, 0x0, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/dsl.go:115 +0x4d1
github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks.(*VerifierClient).RunCommandWithVersion(0xc000083f38, 0x0, 0x8a5860, 0x5, 0xc0002b8e10, 0x5, 0x5, 0xc000253f80, 0x8a74c9, 0x9, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks/mock_terraform_client.go:103 +0x2e4
github.com/runatlantis/atlantis/server/events/runtime_test.TestRun_UsesGetOrInitForRightVersion.func1(0xc000326500)
/go/src/github.com/runatlantis/atlantis/server/events/runtime/init_step_runner_test.go:66 +0x645
testing.tRunner(0xc000326500, 0xc000251910)
/usr/local/go/src/testing/testing.go:827 +0xbf
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:878 +0x353
Mock invocation count for RunCommandWithVersion((*logging.SimpleLogger)(nil), "/path", []string{"init", "-input=false", "-no-color", "extra", "args"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 9, 1}, si:3}, "workspace") does not match expectation.
Expected: 1; but got: 0
But other interactions with this mock were:
RunCommandWithVersion((*logging.SimpleLogger)(nil), "/path", []string{"init", "-no-color", "extra", "args"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 9, 1}, si:3}, "workspace")
testing_t_support.go:41:
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/testing_t_support.go:40 +0x59
github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock.(*GenericMock).Verify(0xc0002583b8, 0x0, 0x91fa40, 0xc0003521c0, 0x8ac2f5, 0x15, 0xc0002b90e0, 0x5, 0x5, 0x0, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/dsl.go:115 +0x4d1
github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks.(*VerifierClient).RunCommandWithVersion(0xc000083f38, 0x0, 0x8a5860, 0x5, 0xc0002b9090, 0x5, 0x5, 0xc000344200, 0x8a74c9, 0x9, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks/mock_terraform_client.go:103 +0x2e4
github.com/runatlantis/atlantis/server/events/runtime_test.TestRun_UsesGetOrInitForRightVersion.func1(0xc000326800)
/go/src/github.com/runatlantis/atlantis/server/events/runtime/init_step_runner_test.go:66 +0x645
testing.tRunner(0xc000326800, 0xc000251b30)
/usr/local/go/src/testing/testing.go:827 +0xbf
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:878 +0x353
Mock invocation count for RunCommandWithVersion((*logging.SimpleLogger)(nil), "/path", []string{"init", "-input=false", "-no-color", "extra", "args"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 10, 0}, si:3}, "workspace") does not match expectation.
Expected: 1; but got: 0
But other interactions with this mock were:
RunCommandWithVersion((*logging.SimpleLogger)(nil), "/path", []string{"init", "-no-color", "extra", "args"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 10, 0}, si:3}, "workspace")
--- FAIL: TestRun_NoWorkspaceIn08 (0.00s)
testing_t_support.go:41:
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/testing_t_support.go:40 +0x59
github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock.(*GenericMock).Verify(0xc000258418, 0x0, 0x91fa40, 0xc000352820, 0x8ac2f5, 0x15, 0xc0002b94f0, 0x5, 0x5, 0x0, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/dsl.go:115 +0x4d1
github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks.(*VerifierClient).RunCommandWithVersion(0xc000083d28, 0xc0002d1d40, 0x8a5860, 0x5, 0xc000326d00, 0x10, 0x10, 0xc0003445c0, 0x8a6424, 0x7, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks/mock_terraform_client.go:103 +0x2e4
github.com/runatlantis/atlantis/server/events/runtime_test.TestRun_NoWorkspaceIn08(0xc000326c00)
/go/src/github.com/runatlantis/atlantis/server/events/runtime/plan_step_runner_test.go:54 +0x6a3
testing.tRunner(0xc000326c00, 0x8c1ab0)
/usr/local/go/src/testing/testing.go:827 +0xbf
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:878 +0x353
Mock invocation count for RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc0002b9310), KeepHistory:false, Level:1}, "/path", []string{"plan", "-input=false", "-refresh", "-no-color", "-out", "\"/path/default.tfplan\"", "-var", "atlantis_user=username", "-var", "atlantis_repo=owner/repo", "-var", "atlantis_pull_num=2", "extra", "args", "comment", "args"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 8, 0}, si:2}, "default") does not match expectation.
Expected: 1; but got: 0
But other interactions with this mock were:
RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc0002b9310), KeepHistory:false, Level:1}, "/path", []string{"plan", "-refresh", "-no-color", "-out", "/path/default.tfplan", "-var", "atlantis_user=username", "extra", "args", "comment", "args"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 8, 0}, si:2}, "default")
--- FAIL: TestRun_SwitchesWorkspace (0.00s)
testing_t_support.go:41:
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/testing_t_support.go:40 +0x59
github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock.(*GenericMock).Verify(0xc000258478, 0x0, 0x91fa40, 0xc000353160, 0x8ac2f5, 0x15, 0xc0002b9a40, 0x5, 0x5, 0x0, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/dsl.go:115 +0x4d1
github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks.(*VerifierClient).RunCommandWithVersion(0xc000083d08, 0xc00036c6c0, 0x8a5860, 0x5, 0xc000327300, 0x10, 0x10, 0xc0003449c0, 0x8a74c9, 0x9, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks/mock_terraform_client.go:103 +0x2e4
github.com/runatlantis/atlantis/server/events/runtime_test.TestRun_SwitchesWorkspace.func1(0xc000327200)
/go/src/github.com/runatlantis/atlantis/server/events/runtime/plan_step_runner_test.go:184 +0x806
testing.tRunner(0xc000327200, 0xc000380200)
/usr/local/go/src/testing/testing.go:827 +0xbf
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:878 +0x353
Mock invocation count for RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc0002b9770), KeepHistory:false, Level:1}, "/path", []string{"plan", "-input=false", "-refresh", "-no-color", "-out", "\"/path/workspace.tfplan\"", "-var", "atlantis_user=username", "-var", "atlantis_repo=owner/repo", "-var", "atlantis_pull_num=2", "extra", "args", "comment", "args"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 9, 0}, si:3}, "workspace") does not match expectation.
Expected: 1; but got: 0
But other interactions with this mock were:
RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc0002b9770), KeepHistory:false, Level:1}, "/path", []string{"env", "select", "-no-color", "workspace"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 9, 0}, si:3}, "workspace")
RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc0002b9770), KeepHistory:false, Level:1}, "/path", []string{"plan", "-refresh", "-no-color", "-out", "/path/workspace.tfplan", "-var", "atlantis_user=username", "extra", "args", "comment", "args"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 9, 0}, si:3}, "workspace")
testing_t_support.go:41:
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/testing_t_support.go:40 +0x59
github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock.(*GenericMock).Verify(0xc0002584b0, 0x0, 0x91fa40, 0xc0003537e0, 0x8ac2f5, 0x15, 0xc0002b9db0, 0x5, 0x5, 0x0, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/dsl.go:115 +0x4d1
github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks.(*VerifierClient).RunCommandWithVersion(0xc000083d08, 0xc00036cd80, 0x8a5860, 0x5, 0xc000327700, 0x10, 0x10, 0xc000344dc0, 0x8a74c9, 0x9, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks/mock_terraform_client.go:103 +0x2e4
github.com/runatlantis/atlantis/server/events/runtime_test.TestRun_SwitchesWorkspace.func1(0xc000327600)
/go/src/github.com/runatlantis/atlantis/server/events/runtime/plan_step_runner_test.go:184 +0x806
testing.tRunner(0xc000327600, 0xc0003806b0)
/usr/local/go/src/testing/testing.go:827 +0xbf
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:878 +0x353
Mock invocation count for RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc0002b9ae0), KeepHistory:false, Level:1}, "/path", []string{"plan", "-input=false", "-refresh", "-no-color", "-out", "\"/path/workspace.tfplan\"", "-var", "atlantis_user=username", "-var", "atlantis_repo=owner/repo", "-var", "atlantis_pull_num=2", "extra", "args", "comment", "args"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 9, 11}, si:3}, "workspace") does not match expectation.
Expected: 1; but got: 0
But other interactions with this mock were:
RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc0002b9ae0), KeepHistory:false, Level:1}, "/path", []string{"env", "select", "-no-color", "workspace"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 9, 11}, si:3}, "workspace")
RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc0002b9ae0), KeepHistory:false, Level:1}, "/path", []string{"plan", "-refresh", "-no-color", "-out", "/path/workspace.tfplan", "-var", "atlantis_user=username", "extra", "args", "comment", "args"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 9, 11}, si:3}, "workspace")
testing_t_support.go:41:
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/testing_t_support.go:40 +0x59
github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock.(*GenericMock).Verify(0xc0002584e8, 0x0, 0x91fa40, 0xc000353ec0, 0x8ac2f5, 0x15, 0xc0003d61e0, 0x5, 0x5, 0x0, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/dsl.go:115 +0x4d1
github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks.(*VerifierClient).RunCommandWithVersion(0xc000083d08, 0xc00036d440, 0x8a5860, 0x5, 0xc000327b00, 0x10, 0x10, 0xc0003451c0, 0x8a74c9, 0x9, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks/mock_terraform_client.go:103 +0x2e4
github.com/runatlantis/atlantis/server/events/runtime_test.TestRun_SwitchesWorkspace.func1(0xc000327a00)
/go/src/github.com/runatlantis/atlantis/server/events/runtime/plan_step_runner_test.go:184 +0x806
testing.tRunner(0xc000327a00, 0xc000380b60)
/usr/local/go/src/testing/testing.go:827 +0xbf
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:878 +0x353
Mock invocation count for RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc0002b9e50), KeepHistory:false, Level:1}, "/path", []string{"plan", "-input=false", "-refresh", "-no-color", "-out", "\"/path/workspace.tfplan\"", "-var", "atlantis_user=username", "-var", "atlantis_repo=owner/repo", "-var", "atlantis_pull_num=2", "extra", "args", "comment", "args"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 10, 0}, si:3}, "workspace") does not match expectation.
Expected: 1; but got: 0
But other interactions with this mock were:
RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc0002b9e50), KeepHistory:false, Level:1}, "/path", []string{"workspace", "show"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 10, 0}, si:3}, "workspace")
RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc0002b9e50), KeepHistory:false, Level:1}, "/path", []string{"workspace", "select", "-no-color", "workspace"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 10, 0}, si:3}, "workspace")
RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc0002b9e50), KeepHistory:false, Level:1}, "/path", []string{"plan", "-refresh", "-no-color", "-out", "/path/workspace.tfplan", "-var", "atlantis_user=username", "extra", "args", "comment", "args"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 10, 0}, si:3}, "workspace")
testing_t_support.go:41:
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/testing_t_support.go:40 +0x59
github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock.(*GenericMock).Verify(0xc000258520, 0x0, 0x91fa40, 0xc0003e2620, 0x8ac2f5, 0x15, 0xc0003d65f0, 0x5, 0x5, 0x0, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/dsl.go:115 +0x4d1
github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks.(*VerifierClient).RunCommandWithVersion(0xc000083d08, 0xc00036db90, 0x8a5860, 0x5, 0xc000327f00, 0x10, 0x10, 0xc000345600, 0x8a74c9, 0x9, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks/mock_terraform_client.go:103 +0x2e4
github.com/runatlantis/atlantis/server/events/runtime_test.TestRun_SwitchesWorkspace.func1(0xc000327e00)
/go/src/github.com/runatlantis/atlantis/server/events/runtime/plan_step_runner_test.go:184 +0x806
testing.tRunner(0xc000327e00, 0xc000381060)
/usr/local/go/src/testing/testing.go:827 +0xbf
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:878 +0x353
Mock invocation count for RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc0003d6280), KeepHistory:false, Level:1}, "/path", []string{"plan", "-input=false", "-refresh", "-no-color", "-out", "\"/path/workspace.tfplan\"", "-var", "atlantis_user=username", "-var", "atlantis_repo=owner/repo", "-var", "atlantis_pull_num=2", "extra", "args", "comment", "args"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 11, 0}, si:3}, "workspace") does not match expectation.
Expected: 1; but got: 0
But other interactions with this mock were:
RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc0003d6280), KeepHistory:false, Level:1}, "/path", []string{"workspace", "show"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 11, 0}, si:3}, "workspace")
RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc0003d6280), KeepHistory:false, Level:1}, "/path", []string{"workspace", "select", "-no-color", "workspace"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 11, 0}, si:3}, "workspace")
RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc0003d6280), KeepHistory:false, Level:1}, "/path", []string{"plan", "-refresh", "-no-color", "-out", "/path/workspace.tfplan", "-var", "atlantis_user=username", "extra", "args", "comment", "args"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 11, 0}, si:3}, "workspace")
--- FAIL: TestRun_CreatesWorkspace (0.00s)
--- FAIL: TestRun_CreatesWorkspace/0.9.0 (0.00s)
plan_step_runner_test.go:284: plan_step_runner_test.go:284: [output != ]
exp: (string) (len=6) "output"
******
got: (string) ""
--- FAIL: TestRun_CreatesWorkspace/0.9.11 (0.00s)
plan_step_runner_test.go:284: plan_step_runner_test.go:284: [output != ]
exp: (string) (len=6) "output"
******
got: (string) ""
--- FAIL: TestRun_CreatesWorkspace/0.10.0 (0.00s)
plan_step_runner_test.go:284: plan_step_runner_test.go:284: [output != ]
exp: (string) (len=6) "output"
******
got: (string) ""
--- FAIL: TestRun_CreatesWorkspace/0.11.0 (0.00s)
plan_step_runner_test.go:284: plan_step_runner_test.go:284: [output != ]
exp: (string) (len=6) "output"
******
got: (string) ""
--- FAIL: TestRun_NoWorkspaceSwitchIfNotNecessary (0.00s)
plan_step_runner_test.go:338: plan_step_runner_test.go:338: [output != ]
exp: (string) (len=6) "output"
******
got: (string) ""
--- FAIL: TestRun_AddsEnvVarFile (0.00s)
testing_t_support.go:41:
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/testing_t_support.go:40 +0x59
github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock.(*GenericMock).Verify(0xc000258680, 0x0, 0x91fa40, 0xc00043cf60, 0x8ac2f5, 0x15, 0xc000440910, 0x5, 0x5, 0x0, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/petergtz/pegomock/dsl.go:115 +0x4d1
github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks.(*VerifierClient).RunCommandWithVersion(0xc000083ca8, 0xc000401d40, 0xc000402b50, 0xe, 0xc000293b00, 0x12, 0x12, 0xc000432880, 0x8a74c9, 0x9, ...)
/go/src/github.com/runatlantis/atlantis/vendor/github.com/runatlantis/atlantis/server/events/terraform/mocks/mock_terraform_client.go:103 +0x2e4
github.com/runatlantis/atlantis/server/events/runtime_test.TestRun_AddsEnvVarFile(0xc00040cd00)
/go/src/github.com/runatlantis/atlantis/server/events/runtime/plan_step_runner_test.go:405 +0x9fe
testing.tRunner(0xc00040cd00, 0x8c1a80)
/usr/local/go/src/testing/testing.go:827 +0xbf
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:878 +0x353
Mock invocation count for RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc000440550), KeepHistory:false, Level:1}, "/tmp/180258056", []string{"plan", "-input=false", "-refresh", "-no-color", "-out", "\"/tmp/180258056/workspace.tfplan\"", "-var", "atlantis_user=username", "-var", "atlantis_repo=owner/repo", "-var", "atlantis_pull_num=2", "extra", "args", "comment", "args", "-var-file", "/tmp/180258056/env/workspace.tfvars"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 10, 0}, si:3}, "workspace") does not match expectation.
Expected: 1; but got: 0
But other interactions with this mock were:
RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc000440550), KeepHistory:false, Level:1}, "/tmp/180258056", []string{"workspace", "show"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 10, 0}, si:3}, "workspace")
RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc000440550), KeepHistory:false, Level:1}, "/tmp/180258056", []string{"workspace", "select", "-no-color", "workspace"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 10, 0}, si:3}, "workspace")
RunCommandWithVersion(&logging.SimpleLogger{Source:"", History:bytes.Buffer{buf:[]uint8(nil), off:0, bootstrap:[64]uint8{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, lastRead:0}, Logger:(*log.Logger)(0xc000440550), KeepHistory:false, Level:1}, "/tmp/180258056", []string{"plan", "-refresh", "-no-color", "-out", "/tmp/180258056/workspace.tfplan", "-var", "atlantis_user=username", "extra", "args", "comment", "args", "-var-file", "/tmp/180258056/env/workspace.tfvars"}, &version.Version{metadata:"", pre:"", segments:[]int64{0, 10, 0}, si:3}, "workspace")
plan_step_runner_test.go:406: plan_step_runner_test.go:406: [output != ]
exp: (string) (len=6) "output"
******
got: (string) ""
--- FAIL: TestRun_UsesDiffPathForProject (0.00s)
plan_step_runner_test.go:459: plan_step_runner_test.go:459: [output != ]
exp: (string) (len=6) "output"
******
got: (string) ""
FAIL
FAIL github.com/runatlantis/atlantis/server/events/runtime 0.089s
ok github.com/runatlantis/atlantis/server/events/terraform 0.008s
ok github.com/runatlantis/atlantis/server/events/vcs 0.024s
ok github.com/runatlantis/atlantis/server/events/vcs/bitbucketcloud 0.072s
ok github.com/runatlantis/atlantis/server/events/vcs/bitbucketserver 0.047s
? github.com/runatlantis/atlantis/server/events/vcs/fixtures [no test files]
ok github.com/runatlantis/atlantis/server/events/webhooks 0.028s
ok github.com/runatlantis/atlantis/server/events/yaml 0.033s
ok github.com/runatlantis/atlantis/server/events/yaml/raw 0.011s
? github.com/runatlantis/atlantis/server/events/yaml/valid [no test files]
ok github.com/runatlantis/atlantis/server/logging 0.040s [no tests to run]
ok github.com/runatlantis/atlantis/server/recovery 0.004s [no tests to run]
? github.com/runatlantis/atlantis/testdrive [no test files]
Makefile:40: recipe for target 'test' failed
make: *** [test] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment