blob: b0787f342259bcbc0473242a41c41db09138ec4b [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
65commands =
66 molecule {posargs}
67
Mohammed Naserdc087392024-04-01 20:26:02 -040068[testenv:molecule-keycloak]
vexxhost-bot134680a2024-07-19 04:30:48 +020069deps =
70 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040071commands =
72 molecule test -s keycloak
73
74[testenv:molecule-csi-{rbd,local-path-provisioner}]
vexxhost-bot134680a2024-07-19 04:30:48 +020075deps =
76 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040077setenv =
78 rbd: MOLECULE_CSI_DRIVER = rbd
79 local-path-provisioner: MOLECULE_CSI_DRIVER = local-path-provisioner
80commands =
81 molecule test -s csi
82
83[testenv:molecule-aio-{openvswitch,ovn}]
vexxhost-bot134680a2024-07-19 04:30:48 +020084deps =
85 {[testenv:molecule-venv]deps}
86 kubernetes
87 oslotest
88 stestr
89 testscenarios
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-bot134680a2024-07-19 04:30:48 +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