mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 07:29:00 -08:00
test(misconf): skip downloading of policies for tests #4126
This commit is contained in:
@@ -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: `
|
||||
|
||||
Reference in New Issue
Block a user