-
Sheogorath authoredSheogorath authored
postfix_test.yaml 3.56 KiB
suite: Postfix
templates:
- postfix-config.yaml
- postfix.yaml
- secret.yaml
tests:
- it: should match snapshot
chart:
version: 1.2.3
set:
postfix:
image:
tag: 4.5.6
tls:
secretName: example-tls
asserts:
- matchSnapshot: {}
- it: has a public service
set:
postfix:
tls:
secretName: example-tls
release:
name: "test-suite"
asserts:
- isKind:
of: Service
documentIndex: 0
template: postfix.yaml
- equal:
path: metadata.name
value: test-suite-mok-postfix
documentIndex: 0
template: postfix.yaml
- it: has smtp port
set:
postfix:
tls:
secretName: example-tls
asserts:
- contains:
path: spec.ports
content:
port: 25
name: smtp
protocol: TCP
documentIndex: 0
template: postfix.yaml
- contains:
path: spec.template.spec.containers[0].ports
content:
containerPort: 25
name: smtp
documentIndex: 1
template: postfix.yaml
- it: has postscreen port if enabled
set:
postfix:
postscreen:
enabled: true
cidr: 127.0.123.123/32
asserts:
- contains:
path: spec.ports
content:
port: 10025
name: postscreen
protocol: TCP
documentIndex: 0
template: postfix.yaml