add a test asserting both ssh and http services exist
I'm not sure how to better test this, feel free to fix it or let me know of better ways
This commit is contained in:
parent
c22319a3e5
commit
1707c56fd1
@ -104,3 +104,15 @@ tests:
|
|||||||
- equal:
|
- equal:
|
||||||
path: spec.loadBalancerIP
|
path: spec.loadBalancerIP
|
||||||
value: "1.2.3.4"
|
value: "1.2.3.4"
|
||||||
|
|
||||||
|
- it: both ssh and http services exist
|
||||||
|
templates:
|
||||||
|
- templates/gitea/ssh-svc.yaml
|
||||||
|
- templates/gitea/http-svc.yaml
|
||||||
|
asserts:
|
||||||
|
- matchRegex:
|
||||||
|
path: metadata.name
|
||||||
|
pattern: "^gitea-unittests-(?:ssh|http)$"
|
||||||
|
- matchRegex:
|
||||||
|
path: spec.ports[0].name
|
||||||
|
pattern: "^(?:ssh|http)$"
|
||||||
|
Loading…
Reference in New Issue
Block a user