From 9251cab6074743212efab465c12349968932896d Mon Sep 17 00:00:00 2001 From: pmacius Date: Tue, 10 Dec 2024 16:15:57 +0100 Subject: [PATCH] add tests --- .../tests/ingress_test.yaml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 charts/alfresco-sync-service/tests/ingress_test.yaml 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