Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacius committed Dec 10, 2024
1 parent c5657d8 commit 9251cab
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions charts/alfresco-sync-service/tests/ingress_test.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9251cab

Please sign in to comment.