Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fedemengo committed Dec 19, 2023
1 parent e5bc34e commit 7aba83a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
6 changes: 2 additions & 4 deletions charts/registry-scanner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ description: Sysdig Registry Scanner
type: application
home: https://sysdiglabs.github.io/registry-scanner/
icon: https://478h5m1yrfsa3bbe262u7muv-wpengine.netdna-ssl.com/wp-content/uploads/2019/02/Shovel_600px.png
version: 1.1.21
appVersion: 0.2.58
version: 1.1.22
appVersion: 0.2.59
maintainers:
- name: giuse-sysdig
email: [email protected]
- name: hayk
email: [email protected]
14 changes: 14 additions & 0 deletions charts/registry-scanner/tests/configmap_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7aba83a

Please sign in to comment.