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 5837dad commit 8f01dd6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/registry-scanner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 8f01dd6

Please sign in to comment.