Browse Source

properly reflect the change status during api calls

pull/24/head
Nicolas Massé 7 years ago
parent
commit
3ca6e26919
  1. 1
      tasks/api-calls/create_application.yml
  2. 1
      tasks/api-calls/create_application_plan.yml
  3. 2
      tasks/api-calls/keycloak/patch_client.yml
  4. 2
      tasks/api-calls/promote_proxy.yml
  5. 1
      tasks/api-calls/update_application_plan.yml

1
tasks/api-calls/create_application.yml

@ -12,6 +12,7 @@
body: '{{ threescale_cicd_create_application_payload }}'
status_code: 201
register: threescale_cicd_tmpresponse
changed_when: 'threescale_cicd_tmpresponse.status == 201'
- set_fact:
threescale_cicd_default_application_details: '{{ threescale_cicd_tmpresponse.json.application }}'

1
tasks/api-calls/create_application_plan.yml

@ -12,6 +12,7 @@
body: '{{ threescale_cicd_create_application_plan_payload }}'
status_code: 201
register: threescale_cicd_tmpresponse
changed_when: 'threescale_cicd_tmpresponse.status == 201'
- set_fact:
threescale_cicd_existing_application_plans: '{{ threescale_cicd_existing_application_plans|union([ threescale_cicd_application_plan.system_name ]) }}'

2
tasks/api-calls/keycloak/patch_client.yml

@ -15,6 +15,8 @@
headers:
Authorization: 'Bearer {{ threescale_cicd_keycloak_access_token }}'
Content-Type: 'application/json'
register: threescale_cicd_tmpresponse
changed_when: 'threescale_cicd_tmpresponse.status == 200'
- name: Wait for a couple seconds
pause:

2
tasks/api-calls/promote_proxy.yml

@ -11,6 +11,8 @@
status_code: 201
validate_certs: no
method: POST
register: threescale_cicd_tmpresponse
changed_when: 'threescale_cicd_tmpresponse.status == 201'
- name: Wait for a couple seconds
pause:

1
tasks/api-calls/update_application_plan.yml

@ -12,6 +12,7 @@
body: '{{ threescale_cicd_update_application_plan_payload }}'
status_code: 200
register: threescale_cicd_tmpresponse
changed_when: 'threescale_cicd_tmpresponse.status == 200'
- name: Wait for a couple seconds
pause:

Loading…
Cancel
Save