41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
|
suite: Resources verification
|
||
|
templates:
|
||
|
- statefulset.yaml
|
||
|
- configs.yaml
|
||
|
tests:
|
||
|
- it: YBA container
|
||
|
template: statefulset.yaml
|
||
|
asserts:
|
||
|
- isNotEmpty:
|
||
|
path: spec.template.spec.containers[?(@.name == "yugaware")].resources.requests
|
||
|
|
||
|
- it: Postgres container
|
||
|
template: statefulset.yaml
|
||
|
asserts:
|
||
|
- isNotEmpty:
|
||
|
path: spec.template.spec.containers[?(@.name == "postgres")].resources.requests
|
||
|
|
||
|
- it: Prometheus container
|
||
|
template: statefulset.yaml
|
||
|
asserts:
|
||
|
- isNotEmpty:
|
||
|
path: spec.template.spec.containers[?(@.name == "prometheus")].resources.requests
|
||
|
|
||
|
- it: Postgres-init initContainer
|
||
|
template: statefulset.yaml
|
||
|
asserts:
|
||
|
- isNotEmpty:
|
||
|
path: spec.template.spec.initContainers[?(@.name == "postgres-init")].resources.requests
|
||
|
|
||
|
- it: Prometheus-configuration initContainer
|
||
|
template: statefulset.yaml
|
||
|
asserts:
|
||
|
- isNotEmpty:
|
||
|
path: spec.template.spec.initContainers[?(@.name == "prometheus-configuration")].resources.requests
|
||
|
|
||
|
- it: Postgres-upgrade initContainer
|
||
|
template: statefulset.yaml
|
||
|
asserts:
|
||
|
- isNotEmpty:
|
||
|
path: spec.template.spec.initContainers[?(@.name == "postgres-upgrade")].resources.requests
|