Browse Source

Improve surface checks

pull/25/head
Nicolas Massé 8 years ago
parent
commit
88f149d6ce
  1. 7
      tasks/read_openapi_file.yml

7
tasks/read_openapi_file.yml

@ -156,13 +156,12 @@
- name: Compute the private base url from the OpenAPI file - name: Compute the private base url from the OpenAPI file
set_fact: set_fact:
threescale_cicd_private_base_url: '{{ threescale_cicd_api_backend_scheme ~ ''://'' ~ threescale_cicd_api_backend_hostname }}' threescale_cicd_private_base_url: '{{ threescale_cicd_api_backend_scheme ~ ''://'' ~ threescale_cicd_api_backend_hostname }}'
when: 'threescale_cicd_private_base_url is not defined' when: threescale_cicd_api_backend_hostname is defined and threescale_cicd_private_base_url is not defined
- assert: - assert:
that: that:
- 'threescale_cicd_api_backend_scheme is defined' - 'threescale_cicd_private_base_url is defined'
- 'threescale_cicd_api_backend_hostname is defined' msg: 'Either the private base url or the tuple backend hostname/scheme must be declared as extra variables (either threescale_cicd_private_base_url or threescale_cicd_api_backend_scheme / threescale_cicd_api_backend_hostname)'
msg: 'The backend hostname and scheme must either be in the swagger or declared as extra variables (threescale_cicd_api_backend_scheme / threescale_cicd_api_backend_hostname)'
- name: Find the smoke-test flagged operation - name: Find the smoke-test flagged operation
set_fact: set_fact:

Loading…
Cancel
Save