blob: a361b7df3fb8a178203e98009cb78f0f1737cdbf [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
14
15[testenv:venv]
16passenv =
17 ATMOSPHERE_NETWORK_BACKEND
18commands =
19 {posargs}
Mohammed Naserdc087392024-04-01 20:26:02 -040020
Mohammed Nasereb257cb2024-04-10 21:14:24 -040021[testenv:pin-digests]
22deps =
23 oslo_config
24 oslo_log
25 ruyaml
26commands =
27 python3 {toxinidir}/build/pin-images.py roles/defaults/vars/main.yml roles/defaults/vars/main.yml
28
Mohammed Naser2fd39612024-04-14 13:37:45 -040029[testenv:sync-charts]
30skipsdist = True
31deps =
32 aiopath
Rico Lin67632a92024-06-26 05:39:46 +080033 aiofiles!=24.1.0
Mohammed Naser2fd39612024-04-14 13:37:45 -040034 aioshutil
35 asynctempfile
36 GitPython
37 platformdirs
38 pydantic
39 pydantic-yaml
40 python-gerrit-api
41commands =
42 python3 {toxinidir}/build/sync-charts.py
43
44[testenv:linters]
45skipsdist = True
46deps =
47 {[testenv:sync-charts]deps}
48 pre-commit
49commands =
50 pre-commit run --all-files --show-diff-on-failure
51 python3 {toxinidir}/build/sync-charts.py --check
Mohammed Naser72708702024-06-20 00:07:56 -040052 python3 {toxinidir}/build/lint-jobs.py
Mohammed Naser2fd39612024-04-14 13:37:45 -040053
vexxhost-bot6dde1ef2024-07-19 04:30:46 +020054[testenv:py3]
55deps =
56 pytest-ansible
57commands =
58 pytest tests/unit
59
60[testenv:molecule-venv]
61passenv =
62 ATMOSPHERE_NETWORK_BACKEND
63deps =
64 molecule
vexxhost-bot25f428a2024-07-21 20:54:20 +020065 kubernetes
vexxhost-bot5fe9fc22024-07-23 02:37:53 +020066 oslotest
67 stestr
68 testscenarios
vexxhost-bot6dde1ef2024-07-19 04:30:46 +020069commands =
70 molecule {posargs}
71
Mohammed Naserdc087392024-04-01 20:26:02 -040072[testenv:molecule-keycloak]
vexxhost-bot6dde1ef2024-07-19 04:30:46 +020073deps =
74 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040075commands =
76 molecule test -s keycloak
77
78[testenv:molecule-csi-{rbd,local-path-provisioner}]
vexxhost-bot6dde1ef2024-07-19 04:30:46 +020079deps =
80 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040081setenv =
82 rbd: MOLECULE_CSI_DRIVER = rbd
83 local-path-provisioner: MOLECULE_CSI_DRIVER = local-path-provisioner
84commands =
85 molecule test -s csi
86
87[testenv:molecule-aio-{openvswitch,ovn}]
vexxhost-bot6dde1ef2024-07-19 04:30:46 +020088deps =
89 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040090setenv =
Mohammed Naser7e5ec812024-04-03 13:56:11 -040091 ATMOSPHERE_DEBUG = false
Mohammed Naserdc087392024-04-01 20:26:02 -040092 openvswitch: ATMOSPHERE_NETWORK_BACKEND = openvswitch
93 ovn: ATMOSPHERE_NETWORK_BACKEND = ovn
94commands =
95 molecule test -s aio
Mohammed Naser90128aa2024-04-29 13:21:58 -040096
97[testenv:docs]
98envdir = {toxworkdir}/docs
99deps =
100 -r{toxinidir}/doc/requirements.txt
101allowlist_externals =
102 rm
103commands =
104 rm -rf doc/build/html doc/build/doctrees
105 sphinx-build -W --keep-going -b html -j auto doc/source doc/build/html
106
107[testenv:docs-serve]
108envdir = {[testenv:docs]envdir}
109deps = {[testenv:docs]deps}
110allowlist_externals = {[testenv:docs]allowlist_externals}
111commands =
112 rm -rf doc/build/html doc/build/doctrees
113 sphinx-autobuild doc/source doc/build/html
vexxhost-bot6dde1ef2024-07-19 04:30:46 +0200114
115[testenv:build-manila-image]
116deps =
117 diskimage-builder==3.28.0
118allowlist_externals =
119 bash
120commands =
121 bash {toxinidir}/build/build-manila-image.sh