Skip to content

Commit

Permalink
cleanup commented code and run terraformcliarg tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
sarkis committed Feb 24, 2018
1 parent bc219d3 commit 1f8e8b9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,9 @@ func TestPriorityOrderOfArgument(t *testing.T) {
assert.Contains(t, out.String(), fmt.Sprintf("test = %s", injectedValue))
}

// This tests terragrunt properly passes through terraform commands and any number of specified args
func TestTerraformCommandCliArgs(t *testing.T) {
//t.Parallel()
t.Parallel()

testCases := []struct {
command []string
Expand All @@ -489,7 +490,7 @@ func TestTerraformCommandCliArgs(t *testing.T) {
"Terraform",
},
{
[]string{"version", "foo", "bar", "baz", "foo"},
[]string{"version", "foo", "bar", "baz", "foobar"},
"Terraform",
},
}
Expand All @@ -501,10 +502,6 @@ func TestTerraformCommandCliArgs(t *testing.T) {
stdout bytes.Buffer
stderr bytes.Buffer
)
// Call runTerragruntCommand directly because this command contains failures (which causes runTerragruntRedirectOutput to abort) but we don't care.
//if err := runTerragruntCommand(t, cmd, &stdout, &stderr); err == nil {
// t.Fatalf("Failed to properly fail command: %v.", cmd)
// }

runTerragruntRedirectOutput(t, cmd, &stdout, &stderr)
output := stdout.String()
Expand All @@ -513,8 +510,10 @@ func TestTerraformCommandCliArgs(t *testing.T) {
}
}

// This tests terragrunt properly passes through terraform commands with sub commands
// and any number of specified args
func TestTerraformSubcommandCliArgs(t *testing.T) {
//t.Parallel()
t.Parallel()

testCases := []struct {
command []string
Expand Down

0 comments on commit 1f8e8b9

Please sign in to comment.