|
1 | 1 | ---
|
2 |
| -- name: Run StackHPC OpenStack tests |
| 2 | +- name: Run StackHPC Cloud tests |
3 | 3 | hosts: tempest_runner
|
4 | 4 | tags:
|
5 |
| - - stackhpc-openstack-tests |
| 5 | + - stackhpc-cloud-tests |
6 | 6 | vars:
|
7 |
| - sot_venv: "{{ virtualenv_path }}/sot-venv" |
8 |
| - sot_repo: https://github.com/stackhpc/stackhpc-cloud-tests |
9 |
| - sot_version: main |
10 |
| - sot_timeout: 30 |
11 |
| - results_path_local: "{{ lookup('env', 'HOME') }}/sot-results" |
| 7 | + sct_venv: "{{ virtualenv_path }}/sct-venv" |
| 8 | + sct_repo: https://github.com/stackhpc/stackhpc-cloud-tests |
| 9 | + sct_version: main |
| 10 | + sct_timeout: 30 |
| 11 | + results_path_local: "{{ lookup('env', 'HOME') }}/sct-results" |
12 | 12 | tasks:
|
13 |
| - - name: Stackhpc OpenStack tests |
| 13 | + - name: Stackhpc Cloud tests |
14 | 14 | block:
|
15 | 15 | - name: Create a temporary directory for tests repo
|
16 | 16 | ansible.builtin.tempfile:
|
17 | 17 | state: directory
|
18 |
| - suffix: sot-repo |
| 18 | + suffix: sct-repo |
19 | 19 | register: repo_tmpdir
|
20 | 20 |
|
21 | 21 | - name: Create a temporary directory for results
|
22 | 22 | ansible.builtin.tempfile:
|
23 | 23 | state: directory
|
24 |
| - suffix: sot-results |
| 24 | + suffix: sct-results |
25 | 25 | register: results_tmpdir
|
26 | 26 |
|
27 |
| - - name: Clone the StackHPC OpenStack tests repository |
| 27 | + - name: Clone the StackHPC Cloud tests repository |
28 | 28 | ansible.builtin.git:
|
29 |
| - repo: "{{ sot_repo }}" |
30 |
| - version: "{{ sot_version }}" |
| 29 | + repo: "{{ sct_repo }}" |
| 30 | + version: "{{ sct_version }}" |
31 | 31 | dest: "{{ repo_tmpdir.path }}"
|
32 | 32 | depth: 1
|
33 | 33 | single_branch: true
|
|
36 | 36 | ansible.builtin.pip:
|
37 | 37 | name: "{{ item.name }}"
|
38 | 38 | state: latest
|
39 |
| - virtualenv: "{{ sot_venv }}" |
| 39 | + virtualenv: "{{ sct_venv }}" |
40 | 40 | virtualenv_command: python3 -m venv
|
41 | 41 | with_items:
|
42 | 42 | - { name: pip }
|
|
48 | 48 | - "{{ repo_tmpdir.path }}"
|
49 | 49 | - pytest-html
|
50 | 50 | - pytest-timeout
|
51 |
| - virtualenv: "{{ sot_venv }}" |
| 51 | + virtualenv: "{{ sct_venv }}" |
52 | 52 |
|
53 | 53 | - name: Ensure Python requirements file packages are installed
|
54 | 54 | ansible.builtin.pip:
|
55 | 55 | requirements: "{{ repo_tmpdir.path }}/requirements.txt"
|
56 |
| - virtualenv: "{{ sot_venv }}" |
| 56 | + virtualenv: "{{ sct_venv }}" |
57 | 57 |
|
58 | 58 | - name: Include Kolla Ansible passwords
|
59 | 59 | ansible.builtin.include_vars:
|
60 | 60 | file: "{{ kayobe_env_config_path }}/kolla/passwords.yml"
|
61 | 61 | name: kolla_passwords
|
62 | 62 |
|
63 |
| - - name: Run StackHPC OpenStack tests |
| 63 | + - name: Run StackHPC Cloud tests |
64 | 64 | ansible.builtin.command:
|
65 | 65 | cmd: >
|
66 |
| - {{ sot_venv }}/bin/py.test |
67 |
| - --html={{ results_tmpdir.path }}/stackhpc-openstack-tests.html |
| 66 | + {{ sct_venv }}/bin/py.test |
| 67 | + --html={{ results_tmpdir.path }}/stackhpc-cloud-tests.html |
68 | 68 | --self-contained-html
|
69 | 69 | --pyargs stackhpc_cloud_tests
|
70 |
| - --timeout {{ sot_timeout }} |
| 70 | + --timeout {{ sct_timeout }} |
| 71 | + -rfEx |
71 | 72 | -vv
|
72 | 73 | environment:
|
73 |
| - OPENSEARCH_HOSTS: "{{ sot_opensearch_hosts }}" |
74 |
| - OPENSEARCH_PORT: "{{ sot_opensearch_port }}" |
75 |
| - OPENSEARCH_TLS: "{{ sot_opensearch_tls }}" |
76 |
| - PROMETHEUS_URL: "{{ sot_prometheus_url }}" |
77 |
| - PROMETHEUS_USERNAME: "{{ sot_prometheus_username }}" |
78 |
| - PROMETHEUS_PASSWORD: "{{ sot_prometheus_password }}" |
| 74 | + OPENSEARCH_HOSTS: "{{ sct_opensearch_hosts }}" |
| 75 | + OPENSEARCH_PORT: "{{ sct_opensearch_port }}" |
| 76 | + OPENSEARCH_TLS: "{{ sct_opensearch_tls }}" |
| 77 | + PROMETHEUS_URL: "{{ sct_prometheus_url }}" |
| 78 | + PROMETHEUS_USERNAME: "{{ sct_prometheus_username }}" |
| 79 | + PROMETHEUS_PASSWORD: "{{ sct_prometheus_password }}" |
79 | 80 | vars:
|
80 | 81 | kolla_external_scheme: "{{ 'https' if kolla_enable_tls_external | bool else 'http' }}"
|
81 | 82 | kolla_internal_scheme: "{{ 'https' if kolla_enable_tls_internal | bool else 'http' }}"
|
82 |
| - sot_opensearch_hosts: "{{ kolla_internal_fqdn }}" |
83 |
| - sot_opensearch_port: 9200 |
84 |
| - sot_opensearch_tls: false |
85 |
| - sot_prometheus_url: "{{ kolla_internal_scheme }}://{{ kolla_internal_fqdn }}:9091" |
86 |
| - sot_prometheus_username: admin |
87 |
| - sot_prometheus_password: "{{ kolla_passwords.prometheus_password }}" |
| 83 | + sct_opensearch_hosts: "{{ kolla_internal_fqdn }}" |
| 84 | + sct_opensearch_port: 9200 |
| 85 | + sct_opensearch_tls: false |
| 86 | + sct_prometheus_url: "{{ kolla_internal_scheme }}://{{ kolla_internal_fqdn }}:9091" |
| 87 | + sct_prometheus_username: admin |
| 88 | + sct_prometheus_password: "{{ kolla_passwords.prometheus_password }}" |
88 | 89 | always:
|
89 | 90 | - name: Fetch results
|
90 | 91 | ansible.builtin.fetch:
|
91 |
| - src: "{{ results_tmpdir.path }}/stackhpc-openstack-tests.html" |
| 92 | + src: "{{ results_tmpdir.path }}/stackhpc-cloud-tests.html" |
92 | 93 | dest: "{{ results_path_local }}/"
|
93 | 94 | flat: true
|
94 | 95 |
|
|
0 commit comments