blob: c064e21e9341bd7b12b332692681a2eabdadbef6 [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
vexxhost-bot092acb22024-06-25 23:41:22 +020033 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
vexxhost-bot69a7f3c2024-06-20 14:16:03 +020052 python3 {toxinidir}/build/lint-jobs.py
Mohammed Naser2fd39612024-04-14 13:37:45 -040053
vexxhost-bot134680a2024-07-19 04:30:48 +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-botaf2bf202024-07-21 20:54:21 +020065 kubernetes
vexxhost-bot134680a2024-07-19 04:30:48 +020066commands =
67 molecule {posargs}
68
Mohammed Naserdc087392024-04-01 20:26:02 -040069[testenv:molecule-keycloak]
vexxhost-bot134680a2024-07-19 04:30:48 +020070deps =
71 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040072commands =
73 molecule test -s keycloak
74
75[testenv:molecule-csi-{rbd,local-path-provisioner}]
vexxhost-bot134680a2024-07-19 04:30:48 +020076deps =
77 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040078setenv =
79 rbd: MOLECULE_CSI_DRIVER = rbd
80 local-path-provisioner: MOLECULE_CSI_DRIVER = local-path-provisioner
81commands =
82 molecule test -s csi
83
84[testenv:molecule-aio-{openvswitch,ovn}]
vexxhost-bot134680a2024-07-19 04:30:48 +020085deps =
86 {[testenv:molecule-venv]deps}
87 kubernetes
88 oslotest
89 stestr
90 testscenarios
Mohammed Naserdc087392024-04-01 20:26:02 -040091setenv =
Mohammed Naser7e5ec812024-04-03 13:56:11 -040092 ATMOSPHERE_DEBUG = false
Mohammed Naserdc087392024-04-01 20:26:02 -040093 openvswitch: ATMOSPHERE_NETWORK_BACKEND = openvswitch
94 ovn: ATMOSPHERE_NETWORK_BACKEND = ovn
95commands =
96 molecule test -s aio
Mohammed Naser90128aa2024-04-29 13:21:58 -040097
98[testenv:docs]
99envdir = {toxworkdir}/docs
100deps =
101 -r{toxinidir}/doc/requirements.txt
102allowlist_externals =
103 rm
104commands =
105 rm -rf doc/build/html doc/build/doctrees
106 sphinx-build -W --keep-going -b html -j auto doc/source doc/build/html
107
108[testenv:docs-serve]
109envdir = {[testenv:docs]envdir}
110deps = {[testenv:docs]deps}
111allowlist_externals = {[testenv:docs]allowlist_externals}
112commands =
113 rm -rf doc/build/html doc/build/doctrees
114 sphinx-autobuild doc/source doc/build/html
vexxhost-bot134680a2024-07-19 04:30:48 +0200115
116[testenv:build-manila-image]
117deps =
118 diskimage-builder==3.28.0
119allowlist_externals =
120 bash
121commands =
122 bash {toxinidir}/build/build-manila-image.sh