Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Sep 15, 2024
1 parent 325e440 commit b77cfba
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion library/common-test/tests/ingress/rules_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ tests:
enabled: true
primary: true
port: 80
my-custom-service:
enabled: true
expandObjectName: false
ports:
main:
enabled: true
primary: true
port: 8080
someHost: test-host
somePath: /test-path
someType: Exact
Expand Down Expand Up @@ -82,13 +90,20 @@ tests:
# must be just the fullname
name: my-service
port: 8080
- host: "host-target-override-no-expand"
paths:
- path: /subpath2
overrideService:
name: my-custom-service
expandObjectName: false
port: 8080
- host: "host-without-explicit-paths"
- host: "host-without-explicit-path"
paths:
- pathType: Exact
integrations: *integrations
asserts:
- documentIndex: &ingressDoc 1
- documentIndex: &ingressDoc 2
isKind:
of: Ingress
- documentIndex: *ingressDoc
Expand Down Expand Up @@ -156,6 +171,16 @@ tests:
name: test-release-name-common-test
port:
number: 80
- host: "host-target-override-no-expand"
http:
paths:
- path: /subpath2
pathType: Prefix
backend:
service:
name: my-custom-service
port:
number: 8080

- it: should pass with ingress created with rules with targetSelector
set:
Expand Down

0 comments on commit b77cfba

Please sign in to comment.