From e11d5751e3b48ffe0479d0b78d643227362f8124 Mon Sep 17 00:00:00 2001 From: Pankaj Patil Date: Wed, 5 May 2021 22:14:42 +0530 Subject: [PATCH 1/2] fix failing test --- pkg/iac-providers/terraform/v14/load-dir_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/iac-providers/terraform/v14/load-dir_test.go b/pkg/iac-providers/terraform/v14/load-dir_test.go index a6a3e18d9..8d123ee72 100644 --- a/pkg/iac-providers/terraform/v14/load-dir_test.go +++ b/pkg/iac-providers/terraform/v14/load-dir_test.go @@ -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", From 221379983d64ec00da727885ca5bc5e516464f21 Mon Sep 17 00:00:00 2001 From: Pankaj Patil Date: Wed, 5 May 2021 22:40:18 +0530 Subject: [PATCH 2/2] fix failing e2e-test --- test/e2e/scan/scan_rules_filtering_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/scan/scan_rules_filtering_test.go b/test/e2e/scan/scan_rules_filtering_test.go index 2e93b176f..eb7377dce 100644 --- a/test/e2e/scan/scan_rules_filtering_test.go +++ b/test/e2e/scan/scan_rules_filtering_test.go @@ -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...) }) })