40 lines
987 B
YAML
40 lines
987 B
YAML
suite: configmap name test
|
|
templates:
|
|
- common.yaml
|
|
release:
|
|
name: test-release-name
|
|
namespace: test-release-namespace
|
|
tests:
|
|
- it: should generate correct name
|
|
set:
|
|
configmap:
|
|
my-configmap1:
|
|
enabled: true
|
|
data:
|
|
foo: bar
|
|
my-configmap2:
|
|
enabled: true
|
|
data:
|
|
foo: bar
|
|
asserts:
|
|
- documentIndex: &configmapDoc 0
|
|
isKind:
|
|
of: ConfigMap
|
|
- documentIndex: *configmapDoc
|
|
isAPIVersion:
|
|
of: v1
|
|
- documentIndex: *configmapDoc
|
|
equal:
|
|
path: metadata.name
|
|
value: test-release-name-common-test-my-configmap1
|
|
- documentIndex: &otherConfigmapDoc 1
|
|
isKind:
|
|
of: ConfigMap
|
|
- documentIndex: *otherConfigmapDoc
|
|
isAPIVersion:
|
|
of: v1
|
|
- documentIndex: *otherConfigmapDoc
|
|
equal:
|
|
path: metadata.name
|
|
value: test-release-name-common-test-my-configmap2
|