The test is moved from run.yaml to test.yaml to benefit from the cluster_ip variable that is set at the start of test.yaml. Change-Id: Ia0d1cbac94b6b638b6f410d9647ee1822751a767changes/60/785760/7
parent
a32c31bc3c
commit
6e0fb7fe1b
@ -1,9 +1,10 @@
|
||||
- name: Get preview service ip
|
||||
command: kubectl get svc preview -o "jsonpath={.spec.clusterIP}"
|
||||
register: _preview_ip
|
||||
command: kubectl get svc zuul-preview -o jsonpath='{.spec.ports[0].nodePort}'
|
||||
register: _preview_port
|
||||
|
||||
- name: Connect to the preview service
|
||||
uri:
|
||||
url: "http://{{ _preview_ip.stdout_lines[0] }}"
|
||||
url: "http://{{ cluster_ip}}:{{ _preview_port.stdout_lines[0] }}"
|
||||
method: POST
|
||||
status_code: 403
|
||||
timeout: 60
|
||||
|
Loading…
Reference in new issue