Skip to content

Commit

Permalink
update unittest because of dry-run default to true
Browse files Browse the repository at this point in the history
  • Loading branch information
smerle33 committed Dec 2, 2024
1 parent 664c390 commit 315b20e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions charts/geoipupdates/tests/defaults_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,23 @@ tests:
# Env. variables
- equal:
path: spec.jobTemplate.spec.template.spec.containers[0].env[0].name
value: GEOIPUPDATE_EDITION_IDS
value: GEOIPUPDATE_DRYRUN
- equal:
path: spec.jobTemplate.spec.template.spec.containers[0].env[0].value
value: GeoLite2-ASN GeoLite2-City GeoLite2-Country
value: "true"
- equal:
path: spec.jobTemplate.spec.template.spec.containers[0].env[1].name
value: GEOIPUPDATE_FREQUENCY
value: GEOIPUPDATE_EDITION_IDS
- equal:
path: spec.jobTemplate.spec.template.spec.containers[0].env[1].value
value: "24"
- notExists:
value: GeoLite2-ASN GeoLite2-City GeoLite2-Country
- equal:
path: spec.jobTemplate.spec.template.spec.containers[0].env[2].name
value: GEOIPUPDATE_FREQUENCY
- equal:
path: spec.jobTemplate.spec.template.spec.containers[0].env[2].value
value: "24"
- notExists:
path: spec.jobTemplate.spec.template.spec.containers[0].env[3].name
- notExists:
path: spec.jobTemplate.spec.template.spec.containers[0].env[4].name

0 comments on commit 315b20e

Please sign in to comment.