mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
38 lines
884 B
YAML
38 lines
884 B
YAML
suite: addon netshoot
|
|
templates:
|
|
- common.yaml
|
|
tests:
|
|
- it: default should pass
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 2
|
|
- documentIndex: &DeploymentDocument 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 1
|
|
isKind:
|
|
of: Service
|
|
- documentIndex: *DeploymentDocument
|
|
not: true
|
|
equal:
|
|
path: spec.template.spec.containers[0].name
|
|
value: netshoot
|
|
|
|
- it: addon enabled should pass
|
|
set:
|
|
addons:
|
|
netshoot:
|
|
enabled: true
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 2
|
|
- documentIndex: &DeploymentDocument 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 1
|
|
isKind:
|
|
of: Service
|
|
- documentIndex: *DeploymentDocument
|
|
equal:
|
|
path: spec.template.spec.containers[1].name
|
|
value: netshoot
|