From 27fb1bfdee9d98f7bfde7a03deef7c92d8d8d42a Mon Sep 17 00:00:00 2001 From: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com> Date: Thu, 27 Apr 2023 17:25:31 +0600 Subject: [PATCH] test(misconf): skip downloading of policies for tests #4126 --- pkg/cloud/aws/commands/run_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cloud/aws/commands/run_test.go b/pkg/cloud/aws/commands/run_test.go index 738be63ecd..1d4899c371 100644 --- a/pkg/cloud/aws/commands/run_test.go +++ b/pkg/cloud/aws/commands/run_test.go @@ -345,6 +345,7 @@ func Test_Run(t *testing.T) { PolicyNamespaces: []string{ "user", }, + SkipPolicyUpdate: true, }, }, regoPolicy: `# METADATA @@ -673,6 +674,7 @@ deny[res] { Format: "table", ReportFormat: "summary", }, + RegoOptions: flag.RegoOptions{SkipPolicyUpdate: true}, }, cacheContent: exampleS3Cache, want: `