diff --git a/charts/alfresco-sync-service/tests/ingress_test.yaml b/charts/alfresco-sync-service/tests/ingress_test.yaml new file mode 100644 index 000000000..9b779620b --- /dev/null +++ b/charts/alfresco-sync-service/tests/ingress_test.yaml @@ -0,0 +1,41 @@ +suite: test sync ingress +templates: +- ingress.yaml +tests: +- it: should render default rules + asserts: + - equal: + path: spec.rules + value: + - host: + http: + paths: + - backend: + service: + name: RELEASE-NAME-alfresco-sync-service + port: + number: 80 + path: /syncservice(/|$)(.*) + pathType: Prefix +- it: should render rules with host + set: + ingress: + hosts: + - host: testhost + paths: + - path: /syncservice(/|$)(.*) + pathType: Prefix + asserts: + - equal: + path: spec.rules + value: + - host: testhost + http: + paths: + - backend: + service: + name: RELEASE-NAME-alfresco-sync-service + port: + number: 80 + path: /syncservice(/|$)(.*) + pathType: Prefix