zuul-operator/playbooks/zuul-operator-functional/tasks/test_preview.yaml
James E. Blair 6e0fb7fe1b Support zuul-preview
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: Ia0d1cbac94b6b638b6f410d9647ee1822751a767
2021-07-23 10:27:05 -07:00

11 lines
308 B
YAML

- name: Get preview service 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://{{ cluster_ip}}:{{ _preview_port.stdout_lines[0] }}"
method: POST
status_code: 403
timeout: 60