mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 16:37:04 +02:00
24 lines
803 B
YAML
24 lines
803 B
YAML
---
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/helm-unittest/helm-unittest/main/schema/helm-testsuite.json
|
|
suite: Chart validations
|
|
templates:
|
|
- common.yaml
|
|
values:
|
|
- ../_values/controllers_main_default_container.yaml
|
|
tests:
|
|
- it: advancedMounts invalid controller reference should fail
|
|
set:
|
|
persistence:
|
|
data:
|
|
type: configMap
|
|
name: myConfigMap
|
|
advancedMounts:
|
|
test:
|
|
main:
|
|
- path: /data/config.yaml
|
|
readOnly: false
|
|
mountPropagation: HostToContainer
|
|
subPath: config.yaml
|
|
asserts:
|
|
- failedTemplate:
|
|
errorMessage: "No enabled controller found with this identifier. (persistence item: 'data', controller: 'test')"
|