mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 08:37:03 +02:00
Signed-off-by: Gavin Mogan <git@gavinmogan.com> Co-authored-by: Gavin Mogan <git@gavinmogan.com> Co-authored-by: repo-duster[bot] <87358111+repo-duster[bot]@users.noreply.github.com>
35 lines
985 B
YAML
35 lines
985 B
YAML
---
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/helm-unittest/helm-unittest/main/schema/helm-testsuite.json
|
|
suite: configmap Pod metadata
|
|
templates:
|
|
- common.yaml
|
|
values:
|
|
- ../_values/controllers_main_default_container.yaml
|
|
tests:
|
|
- it: default metadata should pass
|
|
set:
|
|
configMaps:
|
|
config:
|
|
enabled: true
|
|
data:
|
|
test: value 1
|
|
test_default_enabled:
|
|
data:
|
|
test: value 1
|
|
test_not_in_checksum:
|
|
includeInChecksum: false
|
|
data:
|
|
test: value 1
|
|
test_disabled:
|
|
enabled: false
|
|
data:
|
|
test: value 1
|
|
asserts:
|
|
- documentIndex: &ControllerDoc 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: *ControllerDoc
|
|
equal:
|
|
path: spec.template.metadata.annotations
|
|
value:
|
|
checksum/configMaps: 66d23d7a53c4e2a523ba85a969696b4ebb78ec5d79ab9c12c210c1569f48511b
|