blob: 11c2ff845ad93618bf9515d40b8ed0198d1fe00a [file] [log] [blame]
Mohammed Naserdc087392024-04-01 20:26:02 -04001[tox]
2minversion = 4
Mohammed Naserdc087392024-04-01 20:26:02 -04003
Mohammed Naserf75ab072024-04-02 12:55:10 -04004[testenv]
5usedevelop = True
6setenv =
7 VIRTUAL_ENV={envdir}
Mohammed Naserf75ab072024-04-02 12:55:10 -04008 OS_STDOUT_CAPTURE=1
9 OS_STDERR_CAPTURE=1
10 OS_TEST_TIMEOUT=160
11 PYTHONDONTWRITEBYTECODE=1
Mohammed Naserf75ab072024-04-02 12:55:10 -040012passenv =
13 KUBECONFIG
Oleksandr K.a7ff8032024-10-04 17:47:42 +020014 ATMOSPHERE_*
Mohammed Naserf75ab072024-04-02 12:55:10 -040015
16[testenv:venv]
17passenv =
Oleksandr K.a7ff8032024-10-04 17:47:42 +020018 ATMOSPHERE_*
19 OS_*
Mohammed Naserf75ab072024-04-02 12:55:10 -040020commands =
21 {posargs}
Mohammed Naserdc087392024-04-01 20:26:02 -040022
Mohammed Naser2fd39612024-04-14 13:37:45 -040023[testenv:linters]
24skipsdist = True
25deps =
Mohammed Naser2fd39612024-04-14 13:37:45 -040026 pre-commit
27commands =
28 pre-commit run --all-files --show-diff-on-failure
vexxhost-bot69a7f3c2024-06-20 14:16:03 +020029 python3 {toxinidir}/build/lint-jobs.py
Mohammed Naser2fd39612024-04-14 13:37:45 -040030
vexxhost-bot134680a2024-07-19 04:30:48 +020031[testenv:py3]
32deps =
33 pytest-ansible
34commands =
35 pytest tests/unit
36
37[testenv:molecule-venv]
38passenv =
Oleksandr K.a7ff8032024-10-04 17:47:42 +020039 ATMOSPHERE_*
40 OS_*
vexxhost-bot134680a2024-07-19 04:30:48 +020041deps =
Yaguang Tang0953b612024-12-13 04:14:34 +080042 molecule==24.9.0
Mohammed Naser13728ca2025-01-14 16:35:33 -050043 ansible-compat==24.10.0
vexxhost-botaf2bf202024-07-21 20:54:21 +020044 kubernetes
vexxhost-bot3869fa62024-07-23 02:35:53 +020045 oslotest
46 stestr
47 testscenarios
vexxhost-bot134680a2024-07-19 04:30:48 +020048commands =
49 molecule {posargs}
50
Mohammed Naserdc087392024-04-01 20:26:02 -040051[testenv:molecule-keycloak]
vexxhost-bot134680a2024-07-19 04:30:48 +020052deps =
53 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040054commands =
55 molecule test -s keycloak
56
57[testenv:molecule-csi-{rbd,local-path-provisioner}]
vexxhost-bot134680a2024-07-19 04:30:48 +020058deps =
59 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040060setenv =
61 rbd: MOLECULE_CSI_DRIVER = rbd
62 local-path-provisioner: MOLECULE_CSI_DRIVER = local-path-provisioner
63commands =
64 molecule test -s csi
65
66[testenv:molecule-aio-{openvswitch,ovn}]
vexxhost-bot134680a2024-07-19 04:30:48 +020067deps =
68 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040069setenv =
Mohammed Naser7e5ec812024-04-03 13:56:11 -040070 ATMOSPHERE_DEBUG = false
Mohammed Naserdc087392024-04-01 20:26:02 -040071 openvswitch: ATMOSPHERE_NETWORK_BACKEND = openvswitch
72 ovn: ATMOSPHERE_NETWORK_BACKEND = ovn
73commands =
74 molecule test -s aio
Mohammed Naser90128aa2024-04-29 13:21:58 -040075
76[testenv:docs]
77envdir = {toxworkdir}/docs
78deps =
79 -r{toxinidir}/doc/requirements.txt
80allowlist_externals =
81 rm
Mohammed Naser7c201cb2025-01-16 01:54:26 -050082skip_install = true
Mohammed Naser90128aa2024-04-29 13:21:58 -040083commands =
84 rm -rf doc/build/html doc/build/doctrees
85 sphinx-build -W --keep-going -b html -j auto doc/source doc/build/html
86
87[testenv:docs-serve]
88envdir = {[testenv:docs]envdir}
89deps = {[testenv:docs]deps}
90allowlist_externals = {[testenv:docs]allowlist_externals}
Mohammed Naser7c201cb2025-01-16 01:54:26 -050091skip_install = {[testenv:docs]skip_install}
Mohammed Naser90128aa2024-04-29 13:21:58 -040092commands =
93 rm -rf doc/build/html doc/build/doctrees
94 sphinx-autobuild doc/source doc/build/html
vexxhost-bot134680a2024-07-19 04:30:48 +020095
96[testenv:build-manila-image]
97deps =
98 diskimage-builder==3.28.0
Mohammed Naser9ba2fc72025-01-28 11:30:07 -050099 setuptools
vexxhost-bot134680a2024-07-19 04:30:48 +0200100allowlist_externals =
101 bash
102commands =
103 bash {toxinidir}/build/build-manila-image.sh
vexxhost-bot45e777c2024-10-30 12:41:42 -0400104
105[testenv:promtool-test]
106skip_install = true
107deps =
108 PyYAML
109 rjsonnet
110commands =
111 python3 {toxinidir}/hack/promtool-test.py
vexxhost-bot861baf92024-11-24 21:04:18 -0500112
113[testenv:helm-unittest]
114commands =
115 python3 {toxinidir}/hack/helm-unittest.py
Mohammed Naser7c201cb2025-01-16 01:54:26 -0500116
117[testenv:generate-releasenotes]
118skip_install = true
119deps =
120 reno
121commands =
122 reno report --output {toxinidir}/CHANGELOG.rst