Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
simar7 committed Jul 16, 2023
1 parent 0eefda3 commit ff06ba2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pkg/fanal/artifact/local/fs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,10 @@ func TestTerraformMisconfigurationScan(t *testing.T) {
},
artifactOpt: artifact.Option{
MisconfScannerOption: misconf.ScannerOption{
RegoOnly: true,
Namespaces: []string{"user"},
PolicyPaths: []string{"./testdata/misconfig/terraform/rego"},
RegoOnly: true,
Namespaces: []string{"user"},
PolicyPaths: []string{"./testdata/misconfig/terraform/rego"},
DisableEmbeddedPolicies: true,
},
},
putBlobExpectation: cache.ArtifactCachePutBlobExpectation{
Expand Down
6 changes: 5 additions & 1 deletion pkg/misconf/scanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ func TestScanner_Scan(t *testing.T) {
{
name: "happy path. terraform plan file",
scannerFunc: NewTerraformPlanScanner,
fields: fields{},
fields: fields{
opt: ScannerOption{
DisableEmbeddedPolicies: true,
},
},
files: []file{
{
path: "main.tfplan.json",
Expand Down

0 comments on commit ff06ba2

Please sign in to comment.