Skip to content

Commit 6f950c0

Browse files
committed
[common] Update task names for XML reporting
1 parent 5236d74 commit 6f950c0

File tree

10 files changed

+37
-24
lines changed

10 files changed

+37
-24
lines changed

roles/common/tasks/container_test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
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"

roles/common/tasks/cr_tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
- name: Verify that a CR exists {{ common_cr_test_id }}
1+
---
2+
- name: |
3+
TEST Verify that the {{ item.kind }} {{ item.name }} CR exists
4+
{{ common_cr_test_id }}
25
ansible.builtin.command:
36
cmd: |
47
oc get {{ item.kind }} {{ item.name }}
@@ -7,7 +10,9 @@
710
failed_when:
811
- result.rc != 0
912

10-
- name: Verify that a CR is ready {{ common_cr_ready_test_id }}
13+
- name: |
14+
TEST Verify that the {{ item.kind }} {{ item.name }} CR is ready
15+
{{ common_cr_ready_test_id }}
1116
ansible.builtin.command:
1217
cmd: |
1318
oc get {{ item.kind }} {{ item.name }} -o jsonpath='{.status.conditions[?(@.type=="{{ item.condition_type }}")].status}{"\n"}'

roles/common/tasks/crd_tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
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"
1315
success_msg: "CRD {{ item }} is found."
14-
fail_msg: "CRD {{ item }} not found. Error: {{ output.stderr }}"
16+
fail_msg: "CRD {{ item }} not found. Error: {{ output.stderr }}"

roles/common/tasks/endpoint_tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
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 != ""
1315
success_msg: "The endpoint {{ item[0] }} is found."
14-
fail_msg: "The endpoint for service {{ item[0] }} "
16+
fail_msg: "The endpoint for service {{ item[0] }} "

roles/common/tasks/manifest_tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
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

roles/common/tasks/pod_tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
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 }}"

roles/common/tasks/project_tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
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"
1315
success_msg: "project {{ item }} is found."
14-
fail_msg: "project {{ item }} not found. Error: {{ output.stderr }}"
16+
fail_msg: "project {{ item }} not found. Error: {{ output.stderr }}"

roles/common/tasks/subscription_tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
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"
1315
success_msg: "subscription {{ item }} is found."
14-
fail_msg: "subscription {{ item }} not found. Error: {{ output.stderr }}"
16+
fail_msg: "subscription {{ item }} not found. Error: {{ output.stderr }}"

roles/telemetry_graphing/tasks/cypress_test.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@
6060
chdir: "{{ cypress_tests_dir }}"
6161
changed_when: false
6262

63-
- name: |
64-
TEST Cypress tests to validate dashboards exist
65-
RHOSO-13627
63+
- name: "UI-2 Run Cypress tests to validate dashboards exist"
6664
ansible.builtin.shell: |
6765
Xvfb :99 -ac &
6866
export DISPLAY=:99
@@ -82,9 +80,7 @@
8280
ansible.builtin.debug:
8381
var: cypress_run.stdout_lines
8482

85-
- name: |
86-
TEST Check if all Cypress tests passed
87-
RHOSO-13628
83+
- name: "UI-3 Check if all Cypress tests passed"
8884
ansible.builtin.fail:
8985
msg: "Some Cypress tests failed."
90-
when: cypress_run.rc != 0
86+
when: cypress_run.rc != 0

roles/telemetry_graphing/tasks/verify_url.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
ansible.builtin.set_fact:
1111
openshift_console_url: "https://{{ console_url.stdout }}"
1212

13-
- name: |
14-
TEST Check OpenShift Console URL is accessible
15-
RHOSO-13626
13+
- name: "UI-1 Check OpenShift Console URL is accessible"
1614
ansible.builtin.shell:
1715
cmd: |
1816
curl -o /dev/null -s -w "%{http_code}" -k {{ openshift_console_url }}

0 commit comments

Comments
 (0)