test(misconf): skip downloading of policies for tests #4126

This commit is contained in:
DmitriyLewen
2023-04-27 17:25:31 +06:00
committed by GitHub
parent 845ae31e5d
commit 27fb1bfdee

View File

@@ -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: `