helm-charts/charts/library/common-test/tests/container/validations_test.yaml
2024-03-15 08:33:07 +00:00

33 lines
923 B
YAML

---
# yaml-language-server: $schema=https://raw.githubusercontent.com/helm-unittest/helm-unittest/main/schema/helm-testsuite.json
suite: Container validations
templates:
- common.yaml
values:
- ../_values/controllers_main_default_container.yaml
tests:
- it: image repository is required
set:
controllers:
main:
containers:
test:
image:
repository: ""
tag: "test"
asserts:
- failedTemplate:
errorMessage: "No image repository specified for container. (controller main, container test)"
- it: image tag is required
set:
controllers:
main:
containers:
test:
image:
repository: test
tag: ""
asserts:
- failedTemplate:
errorMessage: "No image tag specified for container. (controller main, container test)"