Skip to content

Commit

Permalink
chore: add test for disabled ingress upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeyheath committed Nov 8, 2024
1 parent 0b79f18 commit 84aaf8e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions stack/tests/oidc_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,15 @@ tests:
paths:
- path: /
pathType: Prefix
service5:
service:
port: 4123
ingress:
enabled: false
oidcProtected: true
paths:
- path: /test5
pathType: Prefix
asserts:
- documentIndex: 0
equal:
Expand All @@ -240,6 +249,10 @@ tests:
contains:
path: spec.template.spec.containers[0].args
content: --upstream=http://release-name-stack-service1.NAMESPACE.svc.cluster.local:4123/test1/
- documentIndex: 0
notContains:
path: spec.template.spec.containers[0].args
content: --upstream=http://release-name-stack-service5.NAMESPACE.svc.cluster.local:4123/test5/
- documentIndex: 0
contains:
path: spec.template.spec.containers[0].args
Expand Down

0 comments on commit 84aaf8e

Please sign in to comment.