feat(common)!: Migrate library chart

This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-08-07 11:45:41 +02:00
parent 49ebc2bb2f
commit a1a80f5ff5
No known key found for this signature in database
GPG key ID: BC5E2BD907F9A8EC
59 changed files with 499 additions and 885 deletions

View file

@ -0,0 +1,91 @@
suite: configMap names
templates:
- common.yaml
tests:
- it: default should pass
asserts:
- hasDocuments:
count: 2
- documentIndex: 0
not: true
isKind:
of: ConfigMap
- documentIndex: 1
not: true
isKind:
of: ConfigMap
- it: with disabled configMap should pass
set:
configmap:
config:
enabled: false
asserts:
- hasDocuments:
count: 2
- documentIndex: 0
not: true
isKind:
of: ConfigMap
- documentIndex: 1
not: true
isKind:
of: ConfigMap
- it: with multiple configMap should pass
set:
configmap:
config:
enabled: true
data:
foo: bar
secondary:
enabled: true
asserts:
- hasDocuments:
count: 4
- documentIndex: 0
isKind:
of: ConfigMap
- documentIndex: 0
isNotNull:
path: metadata.name
- documentIndex: 1
isKind:
of: ConfigMap
- documentIndex: 1
isNotNull:
path: metadata.name
- it: default name should pass
set:
configmap:
config:
enabled: true
asserts:
- hasDocuments:
count: 3
- documentIndex: 0
isKind:
of: ConfigMap
- documentIndex: 0
equal:
path: metadata.name
value: RELEASE-NAME-common-chart-config
- it: with nameOverride should pass
set:
configmap:
config:
enabled: true
nameOverride: http
asserts:
- hasDocuments:
count: 3
- documentIndex: 0
isKind:
of: ConfigMap
- documentIndex: 0
equal:
path: metadata.name
value: RELEASE-NAME-common-chart-http