Skip to content

Commit 1222a92

Browse files
committed
Remove RHOSO-XXX IDs from the FVTs
1 parent b7626f4 commit 1222a92

File tree

13 files changed

+12
-22
lines changed

13 files changed

+12
-22
lines changed

callback_plugins/custom_junit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self):
1818

1919
# Custom environment variable handling
2020
# Update this to parse these values from the config file, as well as the env.
21-
self._output_dir = os.path.expanduser("~/.ansible.log")
21+
self._output_dir = os.path.expanduser("~/ci-framework-data/tests/feature-verification-tests/")
2222
self._test_case_prefix = os.getenv('JUNIT_TEST_CASE_PREFIX', 'TEST')
2323
self._fail_on_ignore = 'true' # this is needed because we use "ignore_errors" on the playbooks so that all the tests are run
2424
self._include_setup_tasks_in_report = os.getenv('JUNIT_INCLUDE_SETUP_TASKS_IN_REPORT', 'False').lower()

ci/report_result.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- name: "Create the output files"
2+
- name: "Create the output directory"
33
hosts:
44
- controller
55
vars_files:
@@ -22,7 +22,7 @@
2222
- name: "Find the XML file(s)"
2323
ansible.builtin.shell:
2424
cmd: |
25-
find {{ custom_xml_output_dir }} -name *.xml
25+
find {{ logs_dir }} -name *.xml
2626
register: xml_file_list
2727
ignore_errors: true
2828

@@ -31,7 +31,7 @@
3131
var: xml_file_list.stdout_lines
3232
ignore_errors: true
3333

34-
- name: "Collect the XML files, renaming them for the host that they are collected from"
34+
- name: "Copy the XML files"
3535
delegate_to: controller
3636
ansible.builtin.copy:
3737
remote_src: true
@@ -68,7 +68,7 @@
6868
- name: "Get the matching lines in the results files"
6969
ansible.builtin.command:
7070
cmd: |
71-
grep -r "<testsuites .*>$" {{ custom_xml_output_dir }}/
71+
grep -r "<testsuites .*>$" {{ logs_dir }}/
7272
register: verbose_matches
7373
ignore_errors: true
7474

ci/vars/common.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
---
22
fvt_dir: "{{ ansible_env.HOME }}/{{ zuul.projects['github.com/infrawatch/feature-verification-tests'].src_dir }}"
3-
logs_dir: "{{ ansible_env.HOME }}/ci-framework-data/logs/feature-verification-tests"
4-
custom_xml_output_dir: "~/.ansible.log/"
3+
logs_dir: "{{ ansible_env.HOME }}/ci-framework-data/tests/feature-verification-tests"

roles/common/tasks/container_test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
- name: |
2727
TEST Verify {{ container_name }} container status
28-
{{ common_container_test_id }}
2928
ansible.builtin.assert:
3029
that:
3130
- "container_status.stdout | length != 0"

roles/common/tasks/cr_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
- name: |
33
TEST Verify that the {{ item.kind }} {{ item.name }} CR exists
4-
{{ common_cr_test_id }}
54
ansible.builtin.command:
65
cmd: |
76
oc get {{ item.kind }} {{ item.name }}
@@ -10,7 +9,8 @@
109
failed_when:
1110
- result.rc != 0
1211

13-
- name: Verify that a CR is ready {{ common_cr_ready_test_id }}
12+
- name: |
13+
TEST Verify that a CR is ready
1414
ansible.builtin.command:
1515
cmd: |
1616
oc get {{ item.kind }} {{ item.name }} -o jsonpath='{.status.conditions[?(@.type=="{{ item.condition_type }}")].status}{"\n"}'

roles/common/tasks/crd_tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88

99
- name: |
1010
TEST Verify CRD {{ item }} is found
11-
{{ common_crd_test_id }}
1211
ansible.builtin.assert:
1312
that:
1413
- "'NotFound' not in output.stderr"
1514
success_msg: "CRD {{ item }} is found."
16-
fail_msg: "CRD {{ item }} not found. Error: {{ output.stderr }}"
15+
fail_msg: "CRD {{ item }} not found. Error: {{ output.stderr }}"

roles/common/tasks/endpoint_tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
- name: |
1010
TEST Check that {{ item[0] }} {{ item[2] }} endpoint exists
11-
{{ common_endpoint_test_id }}
1211
ansible.builtin.assert:
1312
that:
1413
- output.stdout != ""

roles/common/tasks/file_tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
- name: |
88
TEST Verify the file {{ item }} exists
9-
{{ common_file_test_id }}
109
ansible.builtin.assert:
1110
that:
1211
- fstats.stat.exists

roles/common/tasks/manifest_tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
- name: |
1717
TEST Get {{ item }} packagemanifest
18-
{{ common_manifest_test_id }}
1918
ansible.builtin.shell:
2019
cmd: |
2120
oc get packagemanifests | grep "{{ pack_name.stdout }}" | wc -l

roles/common/tasks/pod_tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
- name: |
1515
TEST Check {{ item }} pod is {{ common_pod_status_str }} in {{ common_pod_nspace }} namespace
16-
{{ common_pod_test_id }}
1716
ansible.builtin.command:
1817
cmd: |
1918
oc get pod -n "{{ common_pod_nspace }}" "{{ podinstance.stdout }}"

0 commit comments

Comments
 (0)