Skip to content

Commit

Permalink
add 2 more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maratsal committed Jan 11, 2024
1 parent 5ac4632 commit 76cf0db
Showing 1 changed file with 117 additions and 0 deletions.
117 changes: 117 additions & 0 deletions charts/agent/tests/secure_light_config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,45 @@ tests:
enabled: false
template: configmap.yaml

- it: Testing if certain settings set to false for agent version = 12.16.3
set:
image:
tag: 12.16.3
sysdig:
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE
settings:
feature:
mode: secure_light
secure:
enabled: true
asserts:
- matchRegex:
path: data['dragent.yaml']
pattern: |-
drift_control:
enabled: false
- matchRegex:
path: data['dragent.yaml']
pattern: |-
drift_killer:
enabled: false
- matchRegex:
path: data['dragent.yaml']
pattern: |-
falcobaseline:
enabled: false
- matchRegex:
path: data['dragent.yaml']
pattern: |-
memdump:
enabled: false
- matchRegex:
path: data['dragent.yaml']
pattern: |-
network_topology:
enabled: false
template: configmap.yaml

- it: Testing if certain settings set to false for agent version > 12.18.x
set:
image:
Expand Down Expand Up @@ -79,3 +118,81 @@ tests:
network_topology:
enabled: false
template: configmap.yaml

- it: Testing if certain settings set to false for agent version 12.20.1
set:
image:
tag: 12.20.1
sysdig:
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE
settings:
feature:
mode: secure_light
secure:
enabled: true
asserts:
- notMatchRegex:
path: data['dragent.yaml']
pattern: |-
drift_control:
enabled: false
- notMatchRegex:
path: data['dragent.yaml']
pattern: |-
drift_killer:
enabled: false
- notMatchRegex:
path: data['dragent.yaml']
pattern: |-
falcobaseline:
enabled: false
- matchRegex:
path: data['dragent.yaml']
pattern: |-
memdump:
enabled: false
- matchRegex:
path: data['dragent.yaml']
pattern: |-
network_topology:
enabled: false
template: configmap.yaml

- it: Testing if certain settings set to false for agent version 12.20.1
set:
image:
tag: 12.20.1
sysdig:
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE
settings:
feature:
mode: secure_light
secure:
enabled: true
asserts:
- notMatchRegex:
path: data['dragent.yaml']
pattern: |-
drift_control:
enabled: false
- notMatchRegex:
path: data['dragent.yaml']
pattern: |-
drift_killer:
enabled: false
- notMatchRegex:
path: data['dragent.yaml']
pattern: |-
falcobaseline:
enabled: false
- matchRegex:
path: data['dragent.yaml']
pattern: |-
memdump:
enabled: false
- matchRegex:
path: data['dragent.yaml']
pattern: |-
network_topology:
enabled: false
template: configmap.yaml

0 comments on commit 76cf0db

Please sign in to comment.