mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 16:37:04 +02:00
39 lines
999 B
YAML
39 lines
999 B
YAML
suite: ingress service reference
|
|
templates:
|
|
- common.yaml
|
|
tests:
|
|
- it: default should pass
|
|
set:
|
|
ingress.main.enabled: true
|
|
asserts:
|
|
- documentIndex: &IngressDocument 2
|
|
isKind:
|
|
of: Ingress
|
|
- documentIndex: *IngressDocument
|
|
equal:
|
|
path: spec.rules[0].http.paths[0].backend
|
|
value:
|
|
serviceName: RELEASE-NAME-app-template
|
|
servicePort: null
|
|
|
|
- it: custom service reference should pass
|
|
set:
|
|
ingress.main:
|
|
enabled: true
|
|
hosts:
|
|
- host: chart-test.local
|
|
paths:
|
|
- path: /
|
|
service:
|
|
name: pathService
|
|
port: 1234
|
|
asserts:
|
|
- documentIndex: &IngressDocument 2
|
|
isKind:
|
|
of: Ingress
|
|
- documentIndex: *IngressDocument
|
|
equal:
|
|
path: spec.rules[0].http.paths[0].backend
|
|
value:
|
|
serviceName: pathService
|
|
servicePort: 1234
|