diff --git a/terratag_test.go b/terratag_test.go index 00732b1..1edc751 100644 --- a/terratag_test.go +++ b/terratag_test.go @@ -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) { @@ -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) }) } } @@ -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")