Files
truecharts/charts/library/common-test/tests/priorityClass/names_test.yaml
T

36 lines
963 B
YAML

suite: priorityClass name test
templates:
- common.yaml
release:
name: test-release-name
namespace: test-release-namespace
tests:
- it: should generate correct name
set:
priorityClass:
example1:
enabled: true
example2:
enabled: true
asserts:
- documentIndex: &storageClassDoc 0
isKind:
of: PriorityClass
- documentIndex: *storageClassDoc
isAPIVersion:
of: scheduling.k8s.io/v1
- documentIndex: *storageClassDoc
equal:
path: metadata.name
value: test-release-name-common-test-example1
- documentIndex: &otherStorageClassDoc 1
isKind:
of: PriorityClass
- documentIndex: *otherStorageClassDoc
isAPIVersion:
of: scheduling.k8s.io/v1
- documentIndex: *otherStorageClassDoc
equal:
path: metadata.name
value: test-release-name-common-test-example2