Skip to content

Commit 2ce3e03

Browse files
committed
Update trivy integration test for k8s scan
Refactor the trivy integration test for the k8s scan to include the new `--include-namespaces` flag . Context does not have to explicitly set. Default is used Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
1 parent 4a4adf7 commit 2ce3e03

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scanners/trivy/integration-tests/trivy.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,14 @@ test.concurrent(
9898
},
9999
3 * 60 * 1000
100100
);
101-
102101
test.concurrent(
103102
"trivy k8s scan should not fail",
104103
async () => {
105104
const { categories, severities, count } = await scan(
106105
"trivy-k8s-test",
107106
"trivy-k8s",
108107
// scanners is limited to config, and namespace to default to reduce the time of the test
109-
["cluster", "--debug","--scanners", "config", "--namespace", "default"],
108+
["--debug","--scanners", "config", "--include-namespaces", "securecodebox-system"],
110109
10 * 60 * 1000
111110
);
112111

0 commit comments

Comments
 (0)