helm-charts/charts/library/common/test-chart/unittests/container/validations_test.yaml
Bernd Schorgers a01a89cb13
feat(common): Release common 4.0.0 (#398)
Co-authored-by: lab-assistant[bot] <180935599+lab-assistant[bot]@users.noreply.github.com>
2025-05-16 08:55:14 +02:00

33 lines
925 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)"