Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHeber committed Nov 18, 2023
1 parent ec3ce66 commit 7b83548
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions terratag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func TestTerragruntWithCache(t *testing.T) {
itShouldRunTerratagTerragruntMode(out, g)
itShouldRunTerragruntValidate(out, g)
itShouldGenerateExpectedTerragruntTerratagFiles(entryDir, g)
itShouldRunTerratagTerragruntModeDryRun(out, g)
}

func testTerraform(t *testing.T, version string) {
Expand Down Expand Up @@ -135,6 +136,7 @@ func testTerraformWithFilter(t *testing.T, version string, filter string, skip s
itShouldRunTerratag(tt.entryDir, filter, skip, g)
itShouldRunTerraformValidate(tt.entryDir, g)
itShouldGenerateExpectedTerratagFiles(tt.suiteDir, g)
itShouldRunTerratagDryRun(tt.entryDir, filter, skip, g)
})
}
}
Expand Down Expand Up @@ -218,6 +220,11 @@ func itShouldRunTerratagTerragruntMode(entryDir string, g *GomegaWithT) {
g.Expect(err).To(BeNil(), "terratag terragrunt mode failed")
}

func itShouldRunTerratagTerragruntModeDryRun(entryDir string, g *GomegaWithT) {
err := run_terratag(entryDir, "", "", true, true)
g.Expect(err).To(BeNil(), "terratag terragrunt mode dry run failed")
}

func itShouldTerraformInit(entryDir string, g *GomegaWithT) {
err := run_terraform(entryDir, "init")
g.Expect(err).To(BeNil(), "terraform init failed")
Expand Down

0 comments on commit 7b83548

Please sign in to comment.