Skip to content

Commit

Permalink
fix failing test (#740)
Browse files Browse the repository at this point in the history
* fix failing e2e and unit test
  • Loading branch information
patilpankaj212 authored May 5, 2021
1 parent 52481bc commit 0af155d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/iac-providers/terraform/v14/load-dir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func TestLoadIacDir(t *testing.T) {
tfConfigDir: filepath.Join(testDataDir, "recursive-loop-variables"),
tfJSONFile: filepath.Join(tfJSONDir, "recursive-loop-variables.json"),
tfv14: TfV14{},
wantErr: nil,
wantErr: nilMultiErr,
},
{
name: "recursive loop while resolving locals",
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/scan/scan_rules_filtering_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ var _ = Describe("Scan command with rule filtering options", func() {
os.Setenv(terrascanConfigEnvName, "")
})
It("should scan and skip the rules as specified with --scan-rules and --skip-rules option", func() {
scanArgs := []string{"-p", policyDir, "-d", iacDir, "-o", "json"}
scanArgs := []string{"-p", policyDir, "-i", "terraform", "-d", iacDir, "-o", "json"}
scanUtils.RunScanAndAssertJSONOutput(terrascanBinaryPath, filepath.Join(ruleFilterGoldenRelPath, "scan_and_skip_rules.txt"), helper.ExitCodeThree, false, true, outWriter, errWriter, scanArgs...)
})
})
Expand Down

0 comments on commit 0af155d

Please sign in to comment.