Gareth Healy
2020-03-10 e51fcf10eb547bcf56d6ff761d3798ea238e9e2c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
- name: Check Kafka producer is running
  command: >
    oc rollout status DeploymentConfig/fraud-detection-pam-kafka-producer --watch=true -n "{{ _namespace }}"
 
- name: Check Kafka aggregator is running
  command: >
    oc rollout status DeploymentConfig/fraud-detection-pam-kafka-aggregator --watch=true -n "{{ _namespace }}"
 
- name: Get Kafka aggregator route host
  command: >
    oc get route/fraud-detection-pam-kafka-aggregator -o jsonpath='{.spec.host}' -n "{{ _namespace }}"
  register: aggregator_host
  retries: "{{ _retry }}"
  delay: "{{ _delay }}"
  until: aggregator_host.stdout != ""
 
- name: Check Kafka aggregator responds with 200
  uri:
    url: "http://{{ aggregator_host.stdout }}/transactions/data/0000-0000-0000-0001"
    method: GET
    validate_certs: false
    follow_redirects: yes
    status_code: 200
  register: aggregatorresult
  retries: "{{ _retry }}"
  delay: "{{ _delay }}"
  until: aggregatorresult.status == 200