This commit is contained in:
Marc Barlo
2020-05-07 22:29:29 -07:00
parent bebfdcaeef
commit 0e22d2baab

View File

@@ -75,9 +75,9 @@ func TestGitHubWorkflow(t *testing.T) {
"atlantis apply",
},
ExpReplies: [][]string{
[]string{"exp-output-autoplan.txt"},
[]string{"exp-output-apply.txt"},
[]string{"exp-output-merge.txt"},
{"exp-output-autoplan.txt"},
{"exp-output-apply.txt"},
{"exp-output-merge.txt"},
},
ExpAutoplan: true,
},
@@ -91,10 +91,10 @@ func TestGitHubWorkflow(t *testing.T) {
"atlantis apply",
},
ExpReplies: [][]string{
[]string{"exp-output-autoplan.txt"},
[]string{"exp-output-autoplan.txt"},
[]string{"exp-output-apply.txt"},
[]string{"exp-output-merge.txt"},
{"exp-output-autoplan.txt"},
{"exp-output-autoplan.txt"},
{"exp-output-apply.txt"},
{"exp-output-merge.txt"},
},
},
{
@@ -107,10 +107,10 @@ func TestGitHubWorkflow(t *testing.T) {
"atlantis apply",
},
ExpReplies: [][]string{
[]string{"exp-output-autoplan.txt"},
[]string{"exp-output-atlantis-plan-var-overridden.txt"},
[]string{"exp-output-apply-var.txt"},
[]string{"exp-output-merge.txt"},
{"exp-output-autoplan.txt"},
{"exp-output-atlantis-plan-var-overridden.txt"},
{"exp-output-apply-var.txt"},
{"exp-output-merge.txt"},
},
},
{
@@ -125,12 +125,12 @@ func TestGitHubWorkflow(t *testing.T) {
"atlantis apply -w new_workspace",
},
ExpReplies: [][]string{
[]string{"exp-output-autoplan.txt"},
[]string{"exp-output-atlantis-plan.txt"},
[]string{"exp-output-atlantis-plan-new-workspace.txt"},
[]string{"exp-output-apply-var-default-workspace.txt"},
[]string{"exp-output-apply-var-new-workspace.txt"},
[]string{"exp-output-merge-workspaces.txt"},
{"exp-output-autoplan.txt"},
{"exp-output-atlantis-plan.txt"},
{"exp-output-atlantis-plan-new-workspace.txt"},
{"exp-output-apply-var-default-workspace.txt"},
{"exp-output-apply-var-new-workspace.txt"},
{"exp-output-merge-workspaces.txt"},
},
},
{
@@ -144,11 +144,11 @@ func TestGitHubWorkflow(t *testing.T) {
"atlantis apply",
},
ExpReplies: [][]string{
[]string{"exp-output-autoplan.txt"},
[]string{"exp-output-atlantis-plan.txt"},
[]string{"exp-output-atlantis-plan-new-workspace.txt"},
[]string{"exp-output-apply-var-all.txt"},
[]string{"exp-output-merge-workspaces.txt"},
{"exp-output-autoplan.txt"},
{"exp-output-atlantis-plan.txt"},
{"exp-output-atlantis-plan-new-workspace.txt"},
{"exp-output-apply-var-all.txt"},
{"exp-output-merge-workspaces.txt"},
},
},
{
@@ -161,10 +161,10 @@ func TestGitHubWorkflow(t *testing.T) {
"atlantis apply -w default",
},
ExpReplies: [][]string{
[]string{"exp-output-autoplan.txt"},
[]string{"exp-output-apply-staging.txt"},
[]string{"exp-output-apply-default.txt"},
[]string{"exp-output-merge.txt"},
{"exp-output-autoplan.txt"},
{"exp-output-apply-staging.txt"},
{"exp-output-apply-default.txt"},
{"exp-output-merge.txt"},
},
},
{
@@ -176,9 +176,9 @@ func TestGitHubWorkflow(t *testing.T) {
"atlantis apply",
},
ExpReplies: [][]string{
[]string{"exp-output-autoplan.txt"},
[]string{"exp-output-apply-all.txt"},
[]string{"exp-output-merge.txt"},
{"exp-output-autoplan.txt"},
{"exp-output-apply-all.txt"},
{"exp-output-merge.txt"},
},
},
{
@@ -191,10 +191,10 @@ func TestGitHubWorkflow(t *testing.T) {
"atlantis apply",
},
ExpReplies: [][]string{
[]string{"exp-output-autoplan.txt"},
[]string{"exp-output-autoplan.txt"},
[]string{"exp-output-apply-all.txt"},
[]string{"exp-output-merge.txt"},
{"exp-output-autoplan.txt"},
{"exp-output-autoplan.txt"},
{"exp-output-apply-all.txt"},
{"exp-output-merge.txt"},
},
},
{
@@ -206,9 +206,9 @@ func TestGitHubWorkflow(t *testing.T) {
"atlantis apply -d staging",
},
ExpReplies: [][]string{
[]string{"exp-output-autoplan-only-staging.txt"},
[]string{"exp-output-apply-staging.txt"},
[]string{"exp-output-merge-only-staging.txt"},
{"exp-output-autoplan-only-staging.txt"},
{"exp-output-apply-staging.txt"},
{"exp-output-merge-only-staging.txt"},
},
},
{
@@ -223,11 +223,11 @@ func TestGitHubWorkflow(t *testing.T) {
"atlantis apply -d production",
},
ExpReplies: [][]string{
[]string{"exp-output-plan-staging.txt"},
[]string{"exp-output-plan-production.txt"},
[]string{"exp-output-apply-staging.txt"},
[]string{"exp-output-apply-production.txt"},
[]string{"exp-output-merge-all-dirs.txt"},
{"exp-output-plan-staging.txt"},
{"exp-output-plan-production.txt"},
{"exp-output-apply-staging.txt"},
{"exp-output-apply-production.txt"},
{"exp-output-merge-all-dirs.txt"},
},
},
{
@@ -240,10 +240,10 @@ func TestGitHubWorkflow(t *testing.T) {
"atlantis apply -d production",
},
ExpReplies: [][]string{
[]string{"exp-output-autoplan.txt"},
[]string{"exp-output-apply-staging.txt"},
[]string{"exp-output-apply-production.txt"},
[]string{"exp-output-merge.txt"},
{"exp-output-autoplan.txt"},
{"exp-output-apply-staging.txt"},
{"exp-output-apply-production.txt"},
{"exp-output-merge.txt"},
},
},
{
@@ -256,10 +256,10 @@ func TestGitHubWorkflow(t *testing.T) {
"atlantis apply -p default",
},
ExpReplies: [][]string{
[]string{"exp-output-autoplan.txt"},
[]string{"exp-output-apply-staging.txt"},
[]string{"exp-output-apply-default.txt"},
[]string{"exp-output-merge.txt"},
{"exp-output-autoplan.txt"},
{"exp-output-apply-staging.txt"},
{"exp-output-apply-default.txt"},
{"exp-output-merge.txt"},
},
},
{
@@ -274,11 +274,11 @@ func TestGitHubWorkflow(t *testing.T) {
"atlantis apply -p default",
},
ExpReplies: [][]string{
[]string{"exp-output-plan-staging.txt"},
[]string{"exp-output-plan-default.txt"},
[]string{"exp-output-apply-staging.txt"},
[]string{"exp-output-apply-default.txt"},
[]string{"exp-output-merge.txt"},
{"exp-output-plan-staging.txt"},
{"exp-output-plan-default.txt"},
{"exp-output-apply-staging.txt"},
{"exp-output-apply-default.txt"},
{"exp-output-merge.txt"},
},
},
{
@@ -292,11 +292,11 @@ func TestGitHubWorkflow(t *testing.T) {
"atlantis apply -d dir2",
},
ExpReplies: [][]string{
[]string{"exp-output-autoplan.txt"},
[]string{"exp-output-apply-dir1.txt"},
[]string{"exp-output-apply-dir2.txt"},
[]string{"exp-output-automerge.txt"},
[]string{"exp-output-merge.txt"},
{"exp-output-autoplan.txt"},
{"exp-output-apply-dir1.txt"},
{"exp-output-apply-dir2.txt"},
{"exp-output-automerge.txt"},
{"exp-output-merge.txt"},
},
},
{
@@ -310,10 +310,10 @@ func TestGitHubWorkflow(t *testing.T) {
"atlantis apply -w default",
},
ExpReplies: [][]string{
[]string{"exp-output-autoplan.txt"},
[]string{"exp-output-apply-staging-workspace.txt"},
[]string{"exp-output-apply-default-workspace.txt"},
[]string{"exp-output-merge.txt"},
{"exp-output-autoplan.txt"},
{"exp-output-apply-staging-workspace.txt"},
{"exp-output-apply-default-workspace.txt"},
{"exp-output-merge.txt"},
},
},
{
@@ -326,9 +326,9 @@ func TestGitHubWorkflow(t *testing.T) {
"atlantis apply",
},
ExpReplies: [][]string{
[]string{"exp-output-autoplan-staging.txt", "exp-output-autoplan-production.txt"},
[]string{"exp-output-apply-all-staging.txt", "exp-output-apply-all-production.txt"},
[]string{"exp-output-merge.txt"},
{"exp-output-autoplan-staging.txt", "exp-output-autoplan-production.txt"},
{"exp-output-apply-all-staging.txt", "exp-output-apply-all-production.txt"},
{"exp-output-merge.txt"},
},
},
}