blob: 0673da3dc9b8f0a83444f0c4d21fab2f0ca5da6c [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.94ee44d2024-10-04 17:47:39 +020014 ATMOSPHERE_*
Mohammed Naserf75ab072024-04-02 12:55:10 -040015
16[testenv:venv]
17passenv =
Oleksandr K.94ee44d2024-10-04 17:47:39 +020018 ATMOSPHERE_*
19 OS_*
Mohammed Naserf75ab072024-04-02 12:55:10 -040020commands =
21 {posargs}
Mohammed Naserdc087392024-04-01 20:26:02 -040022
Mohammed Nasereb257cb2024-04-10 21:14:24 -040023[testenv:pin-digests]
Jason Hall54238122024-02-19 12:56:23 -060024skip_install = true
Mohammed Nasereb257cb2024-04-10 21:14:24 -040025deps =
Jason Hall54238122024-02-19 12:56:23 -060026 docker-image-py>=0.1.12
Mohammed Nasereb257cb2024-04-10 21:14:24 -040027 oslo_config
28 oslo_log
29 ruyaml
30commands =
31 python3 {toxinidir}/build/pin-images.py roles/defaults/vars/main.yml roles/defaults/vars/main.yml
32
Mohammed Naser2fd39612024-04-14 13:37:45 -040033[testenv:linters]
34skipsdist = True
35deps =
Mohammed Naser2fd39612024-04-14 13:37:45 -040036 pre-commit
37commands =
38 pre-commit run --all-files --show-diff-on-failure
Mohammed Naser72708702024-06-20 00:07:56 -040039 python3 {toxinidir}/build/lint-jobs.py
Mohammed Naser2fd39612024-04-14 13:37:45 -040040
vexxhost-bot6dde1ef2024-07-19 04:30:46 +020041[testenv:py3]
42deps =
43 pytest-ansible
44commands =
45 pytest tests/unit
46
47[testenv:molecule-venv]
48passenv =
Oleksandr K.94ee44d2024-10-04 17:47:39 +020049 ATMOSPHERE_*
50 OS_*
vexxhost-bot6dde1ef2024-07-19 04:30:46 +020051deps =
Yaguang Tang1d50b802024-12-13 03:35:11 +080052 molecule==24.9.0
Mohammed Naserfce8a022025-01-14 16:35:33 -050053 ansible-compat==24.10.0
vexxhost-bot25f428a2024-07-21 20:54:20 +020054 kubernetes
vexxhost-bot5fe9fc22024-07-23 02:37:53 +020055 oslotest
56 stestr
57 testscenarios
vexxhost-bot6dde1ef2024-07-19 04:30:46 +020058commands =
59 molecule {posargs}
60
Mohammed Naserdc087392024-04-01 20:26:02 -040061[testenv:molecule-keycloak]
vexxhost-bot6dde1ef2024-07-19 04:30:46 +020062deps =
63 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040064commands =
65 molecule test -s keycloak
66
67[testenv:molecule-csi-{rbd,local-path-provisioner}]
vexxhost-bot6dde1ef2024-07-19 04:30:46 +020068deps =
69 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040070setenv =
71 rbd: MOLECULE_CSI_DRIVER = rbd
72 local-path-provisioner: MOLECULE_CSI_DRIVER = local-path-provisioner
73commands =
74 molecule test -s csi
75
76[testenv:molecule-aio-{openvswitch,ovn}]
vexxhost-bot6dde1ef2024-07-19 04:30:46 +020077deps =
78 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040079setenv =
Mohammed Naser7e5ec812024-04-03 13:56:11 -040080 ATMOSPHERE_DEBUG = false
Mohammed Naserdc087392024-04-01 20:26:02 -040081 openvswitch: ATMOSPHERE_NETWORK_BACKEND = openvswitch
82 ovn: ATMOSPHERE_NETWORK_BACKEND = ovn
83commands =
84 molecule test -s aio
Mohammed Naser90128aa2024-04-29 13:21:58 -040085
86[testenv:docs]
87envdir = {toxworkdir}/docs
88deps =
89 -r{toxinidir}/doc/requirements.txt
90allowlist_externals =
91 rm
Mohammed Naser64eba862025-01-16 01:54:26 -050092skip_install = true
Mohammed Naser90128aa2024-04-29 13:21:58 -040093commands =
94 rm -rf doc/build/html doc/build/doctrees
95 sphinx-build -W --keep-going -b html -j auto doc/source doc/build/html
96
97[testenv:docs-serve]
98envdir = {[testenv:docs]envdir}
99deps = {[testenv:docs]deps}
100allowlist_externals = {[testenv:docs]allowlist_externals}
Mohammed Naser64eba862025-01-16 01:54:26 -0500101skip_install = {[testenv:docs]skip_install}
Mohammed Naser90128aa2024-04-29 13:21:58 -0400102commands =
103 rm -rf doc/build/html doc/build/doctrees
104 sphinx-autobuild doc/source doc/build/html
vexxhost-bot6dde1ef2024-07-19 04:30:46 +0200105
106[testenv:build-manila-image]
107deps =
108 diskimage-builder==3.28.0
109allowlist_externals =
110 bash
111commands =
112 bash {toxinidir}/build/build-manila-image.sh
vexxhost-bot39cb3ab2024-10-30 11:17:39 -0400113
114[testenv:promtool-test]
115skip_install = true
116deps =
117 PyYAML
118 rjsonnet
119commands =
120 python3 {toxinidir}/hack/promtool-test.py
vexxhost-bot48fde062024-11-24 21:39:14 -0500121
122[testenv:helm-unittest]
123commands =
124 python3 {toxinidir}/hack/helm-unittest.py
Mohammed Naser64eba862025-01-16 01:54:26 -0500125
126[testenv:generate-releasenotes]
127skip_install = true
128deps =
129 reno
130commands =
131 reno report --output {toxinidir}/CHANGELOG.rst