File tree Expand file tree Collapse file tree 8 files changed +27
-11
lines changed Expand file tree Collapse file tree 8 files changed +27
-11
lines changed Original file line number Diff line number Diff line change 66 changed_when : false
77 register : container_status
88
9- - name : Verify container status {{ common_container_test_id }}
9+ - name : |
10+ Verify {{ container_name }} container status
11+ {{ common_container_test_id }}
1012 ansible.builtin.assert :
1113 that :
1214 - " 'unhealthy' not in container_status.stdout"
Original file line number Diff line number Diff line change 11---
22- name : |
3- Verify that the {{ item.kind }} {{ item.name }} CR exists
3+ TEST Verify that the {{ item.kind }} {{ item.name }} CR exists
44 {{ common_cr_test_id }}
55 ansible.builtin.command :
66 cmd : |
1212
1313 # This is added so that the task name will be rendered correctly
1414 # If item.condition_type is used and it doesn't exist, then the
15- # literal template text will appear as the task name
15+ # literal template text would appear as the task name
1616 # e.g. "Verify that the {{ item.kind }} {{ item.name }} CR is {{ item.condition_type }}"
17+ # and it would appear in the XML output incorrectly as
18+ # "verify_that_the_item_kind_item_name_cr_is_item_condition_type"
1719- name : Set the condition type
1820 ansible.builtin.set_fact :
1921 condition_type : " {{ item.condition_type if item.condition_type is defined else '' }}"
2022
2123- name : |
22- Verify that the {{ item.kind }} {{ item.name }} CR is {{ condition_type }}
24+ {{ 'TEST' if condition_type | length > 0 }} Verify that the {{ item.kind }} {{ item.name }} CR is {{ condition_type }}
2325 {{ common_cr_ready_test_id if condition_type | length > 0 }}
2426 ansible.builtin.command :
2527 cmd : |
Original file line number Diff line number Diff line change 66 changed_when : false
77 register : output
88
9- - name : Verify CRD is found "{{ common_crd_test_id }}"
9+ - name : |
10+ TEST Verify CRD {{ item }} is found
11+ {{ common_crd_test_id }}
1012 ansible.builtin.assert :
1113 that :
1214 - " 'NotFound' not in output.stderr"
Original file line number Diff line number Diff line change 66 changed_when : false
77 register : output
88
9- - name : Check that endpoint exist {{ common_endpoint_test_id }}
9+ - name : |
10+ TEST Check that {{ item[0] }} endpoint exists
11+ {{ common_endpoint_test_id }}
1012 ansible.builtin.assert :
1113 that :
1214 - output.stdout != ""
Original file line number Diff line number Diff line change 1313 register : pack_name
1414 changed_when : false
1515
16- - name : Get packagemanifest "{{ common_manifest_test_id }}"
16+ - name : |
17+ TEST Get {{ item }} packagemanifest
18+ {{ common_manifest_test_id }}
1719 ansible.builtin.shell :
1820 cmd : |
1921 oc get packagemanifests | grep "{{ pack_name.stdout }}" | wc -l
2022 register : num_found
2123 changed_when : false
22- failed_when : num_expected.stdout != num_found.stdout
24+ failed_when : num_expected.stdout != num_found.stdout
Original file line number Diff line number Diff line change 1111 - podinstance.stdout_lines | length != 1
1212 changed_when : false
1313
14- - name : Check pod {{ common_pod_test_id }}
14+ - name : |
15+ TEST Check {{ item }} pod
16+ {{ common_pod_test_id }}
1517 ansible.builtin.command:
1618 cmd: |
1719 oc get pod -n "{{ common_pod_nspace }}" "{{ podinstance.stdout }}"
Original file line number Diff line number Diff line change 66 changed_when : false
77 register : output
88
9- - name : Verify project is found "{{ common_project_test_id }}"
9+ - name : |
10+ TEST Verify {{ item }} project is found
11+ "{{ common_project_test_id }}"
1012 ansible.builtin.assert :
1113 that :
1214 - " 'NotFound' not in output.stderr"
Original file line number Diff line number Diff line change 66 changed_when : false
77 register : output
88
9- - name : Check that subscription exist {{ common_subscription_test_id }}
9+ - name : |
10+ TEST Check that {{ item }} subscription exists
11+ {{ common_subscription_test_id }}
1012 ansible.builtin.assert :
1113 that :
1214 - " 'NotFound' not in output.stderr"
You can’t perform that action at this time.
0 commit comments