File tree Expand file tree Collapse file tree 9 files changed +67
-11
lines changed Expand file tree Collapse file tree 9 files changed +67
-11
lines changed Original file line number Diff line number Diff line change
1
+ * @ stackhpc/kayobe
Original file line number Diff line number Diff line change
1
+ name : Pull request
2
+ on :
3
+ pull_request :
4
+ jobs :
5
+ rocky9-ovs-aio-test :
6
+ name : aio (Rocky 9 OVS)
7
+ uses : stackhpc/stackhpc-kayobe-config/.github/workflows/stackhpc-all-in-one.yml@stackhpc/2024.1
8
+ with :
9
+ kayobe_image : ghcr.io/stackhpc/stackhpc-kayobe-config:stackhpc-2024.1
10
+ os_distribution : rocky
11
+ os_release : " 9"
12
+ ssh_username : cloud-user
13
+ neutron_plugin : ovs
14
+ OS_CLOUD : openstack
15
+ stackhpc_cloud_tests_version : ${{ github.ref }}
16
+ repository : stackhpc/stackhpc-kayobe-config
17
+ github_ref : stackhpc/2024.1
18
+ runner : arc-aio-cloud-tests-runner
19
+ secrets : inherit
20
+
21
+ ubuntu-jammy-ovn-aio-test :
22
+ name : aio (Ubuntu Jammy OVN)
23
+ uses : stackhpc/stackhpc-kayobe-config/.github/workflows/stackhpc-all-in-one.yml@stackhpc/2024.1
24
+ with :
25
+ kayobe_image : ghcr.io/stackhpc/stackhpc-kayobe-config:stackhpc-2024.1
26
+ os_distribution : ubuntu
27
+ os_release : jammy
28
+ ssh_username : ubuntu
29
+ neutron_plugin : ovn
30
+ OS_CLOUD : openstack
31
+ stackhpc_cloud_tests_version : ${{ github.ref }}
32
+ repository : stackhpc/stackhpc-kayobe-config
33
+ github_ref : stackhpc/2024.1
34
+ runner : arc-aio-cloud-tests-runner
35
+ secrets : inherit
36
+
37
+ lint :
38
+ runs-on : ubuntu-22.04
39
+ steps :
40
+ - uses : actions/checkout@v4
41
+
42
+ - name : Install pip dependencies
43
+ run : pip install -r requirements.txt
44
+
45
+ - name : Run pylint
46
+ run : |
47
+ set +e # disabling exit on non-zero error code so can output warnings without failing
48
+ pylint stackhpc_cloud_tests/*.py
49
+ EXIT_CODE=$?
50
+ set -e
51
+ if [[ $(($EXIT_CODE & 3)) > 0 ]] #bitwise check for pylint exit codes which indicate errors (01 and 10) https://pylint.readthedocs.io/en/latest/user_guide/usage/run.html#exit-codes
52
+ then
53
+ exit 1
54
+ fi
Original file line number Diff line number Diff line change 1
- # StackHPC OpenStack Tests
1
+ # StackHPC Cloud Tests
2
2
3
- Automated testing for StackHPC OpenStack.
3
+ Automated testing for StackHPC OpenStack Clouds .
4
4
5
5
Provides test coverage of various aspects of OpenStack and related services, including:
6
6
@@ -19,7 +19,7 @@ Create a virtual environment.
19
19
python3 -m venv venv
20
20
```
21
21
22
- Install stackhpc-openstack -tests and its dependencies.
22
+ Install stackhpc-cloud -tests and its dependencies.
23
23
24
24
``` sh
25
25
venv/bin/pip install < path/to/repo> -r < path/to/repo> /requirements.txt
@@ -30,11 +30,11 @@ venv/bin/pip install <path/to/repo> -r <path/to/repo>/requirements.txt
30
30
Run all tests provided.
31
31
32
32
``` sh
33
- py.test --pyargs stackhpc_openstack_tests
33
+ py.test --pyargs stackhpc_cloud_tests
34
34
```
35
35
36
36
Or run tests from a specific submodule.
37
37
38
38
``` sh
39
- py.test --pyargs stackhpc_openstack_tests .test_prometheus
39
+ py.test --pyargs stackhpc_cloud_tests .test_prometheus
40
40
```
Original file line number Diff line number Diff line change 1
1
opensearch-py == 2.5.*
2
2
prometheus-api-client == 0.5.*
3
3
pytest-testinfra == 10.1.*
4
+ pylint == 3.3.*
Original file line number Diff line number Diff line change 1
1
[metadata]
2
- name = stackhpc-openstack -tests
3
- version = 0.1 .0
4
- summary = Automated testing for StackHPC OpenStack
2
+ name = stackhpc-cloud -tests
3
+ version = 0.2 .0
4
+ summary = Automated testing for StackHPC OpenStack Clouds
5
5
description-file = README.md
6
6
author = Mark Goddard
7
7
8
- url = https://github.com/stackhpc/stackhpc-openstack -tests
8
+ url = https://github.com/stackhpc/stackhpc-cloud -tests
9
9
python-requires = >=3.6
10
10
classifier =
11
11
Environment :: OpenStack
@@ -26,7 +26,7 @@ classifier =
26
26
27
27
[files]
28
28
packages =
29
- stackhpc_openstack_tests
29
+ stackhpc_cloud_tests
30
30
31
31
[options]
32
32
install_requires =
File renamed without changes.
Original file line number Diff line number Diff line change 20
20
import os
21
21
import pytest
22
22
23
- from stackhpc_openstack_tests import utils
23
+ from stackhpc_cloud_tests import utils
24
24
25
25
26
26
@pytest .fixture
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments