From bdd4c6e1c0674a8f05cf1b7ec8dc2751fa0fa040 Mon Sep 17 00:00:00 2001 From: Simar Date: Mon, 24 Apr 2023 20:03:04 -0700 Subject: [PATCH] fix tests Signed-off-by: Simar --- pkg/fanal/artifact/local/fs_test.go | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkg/fanal/artifact/local/fs_test.go b/pkg/fanal/artifact/local/fs_test.go index 811062be8729..8e7e59f04d53 100644 --- a/pkg/fanal/artifact/local/fs_test.go +++ b/pkg/fanal/artifact/local/fs_test.go @@ -629,9 +629,11 @@ func TestTerraformMisconfigurationScan(t *testing.T) { }, artifactOpt: artifact.Option{ MisconfScannerOption: misconf.ScannerOption{ - RegoOnly: true, - Namespaces: []string{"user"}, - PolicyPaths: []string{"./testdata/misconfig/terraform/busted-relative-paths/rego"}, + RegoOnly: true, + Namespaces: []string{"user"}, + PolicyPaths: []string{"./testdata/misconfig/terraform/busted-relative-paths/rego"}, + DisableEmbeddedPolicies: true, + DisableEmbeddedLibraries: true, }, }, putBlobExpectation: cache.ArtifactCachePutBlobExpectation{ @@ -1765,9 +1767,11 @@ func TestMixedConfigurationScan(t *testing.T) { }, artifactOpt: artifact.Option{ MisconfScannerOption: misconf.ScannerOption{ - RegoOnly: true, - Namespaces: []string{"user"}, - PolicyPaths: []string{"./testdata/misconfig/mixed/rego"}, + RegoOnly: true, + Namespaces: []string{"user"}, + PolicyPaths: []string{"./testdata/misconfig/mixed/rego"}, + DisableEmbeddedPolicies: true, + DisableEmbeddedLibraries: true, }, }, putBlobExpectation: cache.ArtifactCachePutBlobExpectation{