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 Naser841686a2024-04-11 14:31:47 -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 Nasere4436b42024-04-15 17:57:11 -040029[testenv:sync-charts]
30skipsdist = True
31deps =
32 aiopath
vexxhost-bot69d62f22024-06-25 23:41:56 +020033 aiofiles!=24.1.0
Mohammed Nasere4436b42024-04-15 17:57:11 -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 Naserebcd7d72024-06-20 11:42:28 -040052 python3 {toxinidir}/build/lint-jobs.py
Mohammed Nasere4436b42024-04-15 17:57:11 -040053
Mohammed Naserf3152222024-07-19 00:40:24 -040054[testenv:py3]
55deps =
56 pytest-ansible
57commands =
58 pytest tests/unit
59
60[testenv:molecule-venv]
61passenv =
62 ATMOSPHERE_NETWORK_BACKEND
63deps =
64 molecule
Mohammed Naser6dfb4f82024-07-22 22:36:15 -040065 kubernetes
66 oslotest
67 stestr
68 testscenarios
Mohammed Naserf3152222024-07-19 00:40:24 -040069commands =
70 molecule {posargs}
71
Mohammed Naserdc087392024-04-01 20:26:02 -040072[testenv:molecule-keycloak]
Mohammed Naserf3152222024-07-19 00:40:24 -040073deps =
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}]
Mohammed Naserf3152222024-07-19 00:40:24 -040079deps =
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}]
Mohammed Naserf3152222024-07-19 00:40:24 -040088deps =
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 Nasera5467342024-04-30 00:34:16 -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
Mohammed Naserf3152222024-07-19 00:40:24 -0400114
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