Repository navigation
Expand file tree
/
Copy pathmain.yml
More file actions
66 lines (59 loc) · 2.5 KB
/
Copy pathmain.yml
File metadata and controls
66 lines (59 loc) · 2.5 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
# tasks file for openstack_test
- name: Prepare openshift-test
ansible.builtin.include_role:
name: tools_openshift_tests
tasks_from: prepare_openshift_tests.yml
vars:
repo_name: "{{ openstack_test_name }}"
results_dir: "{{ openstack_test_results_dir }}"
go_version_target: "{{ openstack_tests_go_version }}"
reset_result_dir: "{{ openstack_reset_result_dir | default(True) }}"
- name: Run openstack-test
block:
- name: Include vars from registered resources
ansible.builtin.include_vars:
file: "{{ resources_file }}"
name: resources
# DNS resolution management needed for RHOSO pods to be able to resolve
# shift-on-stack cluster Apps endpoints (for telemetry tests the RHOSO
# pods need to scrape metrics from shift-on-stack cluster prometheus
# federation route - https://issues.redhat.com/browse/SOSQE-2170)
- name: Add APPS DNS entry in hypervisor cifmw-dnsmasq
ansible.builtin.import_role:
name: tools_cifmw_dnsmasq
vars:
tools_cifmw_dnsmasq_domains:
- "apps.{{ ocp_cluster_name }}.{{ ocp_base_domain }}"
tools_cifmw_dnsmasq_ips:
- "{{ resources.apps_accessible_ip }}"
delegate_to: "{{ hypervisor }}"
remote_user: root
- name: Best-effort purge leftover bogus Machines before openstack-test
ansible.builtin.include_tasks: cleanup_bogus_machines.yml
- name: Include Openstack-Test tasks
ansible.builtin.include_tasks: run_openstack_test.yml
always:
# Always publish batch results when junit exists, even if run_openstack_test
# (or serial coda) failed after the suite wrote artifacts.
- name: Stat main openstack-test junit before post
ansible.builtin.stat:
path: "{{ openstack_test_results_dir }}/junit_e2e_openstack.xml"
register: openstack_test_main_junit_stat
failed_when: false
- name: Post openshift-test
ansible.builtin.include_role:
name: tools_openshift_tests
tasks_from: post_openshift_tests.yml
vars:
testsuite_name: "{{ openstack_testsuite_name }}"
key_for_filtering_results: "openstack"
test_name: "{{ openstack_test_name }}"
results_dir: "{{ openstack_test_results_dir }}"
when: openstack_test_main_junit_stat.stat.exists | default(false)
- name: Restore hypervisor's cifmw-dnsmasq service
ansible.builtin.import_role:
name: tools_cifmw_dnsmasq
tasks_from: restore.yml
delegate_to: "{{ hypervisor }}"
remote_user: root