From 8f01dd6d8abd6b0a3cf933433e655478ffd1619d Mon Sep 17 00:00:00 2001 From: Federico Mengozzi <19249682+fedemengo@users.noreply.github.com> Date: Tue, 19 Dec 2023 11:36:08 +0100 Subject: [PATCH] add tests --- charts/registry-scanner/Chart.yaml | 4 ++-- charts/registry-scanner/tests/configmap_test.yaml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/charts/registry-scanner/Chart.yaml b/charts/registry-scanner/Chart.yaml index 0da670392..97892ccf9 100644 --- a/charts/registry-scanner/Chart.yaml +++ b/charts/registry-scanner/Chart.yaml @@ -4,7 +4,7 @@ description: Sysdig Registry Scanner type: application home: https://www.sysdig.com/ icon: https://avatars.githubusercontent.com/u/5068817?s=200&v=4 -version: 1.1.25 -appVersion: 0.2.60 +version: 1.1.26 +appVersion: 0.2.61 maintainers: - name: sysdiglabs diff --git a/charts/registry-scanner/tests/configmap_test.yaml b/charts/registry-scanner/tests/configmap_test.yaml index b66a4062a..14b24d8a6 100644 --- a/charts/registry-scanner/tests/configmap_test.yaml +++ b/charts/registry-scanner/tests/configmap_test.yaml @@ -139,3 +139,17 @@ tests: - matchRegex: path: data['config.yaml'] pattern: allowListMemberAccountIDs:\n\s*- 123456789 + - it: platform scanning is not disable by default + asserts: + - matchRegex: + path: data['config.yaml'] + pattern: scan:((.|\n)*)disablePlatformScanning:\s*false + - it: force scanning on the client component regardless of backend config + set: + config: + scan: + disablePlatformScanning: "true" + asserts: + - matchRegex: + path: data['config.yaml'] + pattern: scan:((.|\n)*)disablePlatformScanning:\s*true