blob: 1f34b8ad20d972cd42a66a40ebf23f5a65e88ac1 [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.783acea2024-10-04 17:52:17 +020014 ATMOSPHERE_*
Mohammed Naserf75ab072024-04-02 12:55:10 -040015
16[testenv:venv]
17passenv =
Oleksandr K.783acea2024-10-04 17:52:17 +020018 ATMOSPHERE_*
19 OS_*
Mohammed Naserf75ab072024-04-02 12:55:10 -040020commands =
21 {posargs}
Mohammed Naserdc087392024-04-01 20:26:02 -040022
Mohammed Naser2fd39612024-04-14 13:37:45 -040023[testenv:linters]
24skipsdist = True
25deps =
Mohammed Naser2fd39612024-04-14 13:37:45 -040026 pre-commit
27commands =
28 pre-commit run --all-files --show-diff-on-failure
Mohammed Naser2fd39612024-04-14 13:37:45 -040029
Mohammed Naser2be5ecd2024-07-19 00:38:45 -040030[testenv:py3]
31deps =
32 pytest-ansible
33commands =
34 pytest tests/unit
35
36[testenv:molecule-venv]
37passenv =
Oleksandr K.783acea2024-10-04 17:52:17 +020038 ATMOSPHERE_*
39 OS_*
Mohammed Naser2be5ecd2024-07-19 00:38:45 -040040deps =
Yaguang Tangba6760e2024-12-13 12:59:40 +080041 molecule==24.9.0
Mohammed Naser21c92662025-01-14 16:35:33 -050042 ansible-compat==24.10.0
Mohammed Naserad89dc32024-07-22 22:36:14 -040043 kubernetes
44 oslotest
45 stestr
46 testscenarios
Mohammed Naser2be5ecd2024-07-19 00:38:45 -040047commands =
48 molecule {posargs}
49
Mohammed Naserdc087392024-04-01 20:26:02 -040050[testenv:molecule-keycloak]
Mohammed Naser2be5ecd2024-07-19 00:38:45 -040051deps =
52 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040053commands =
54 molecule test -s keycloak
55
56[testenv:molecule-csi-{rbd,local-path-provisioner}]
Mohammed Naser2be5ecd2024-07-19 00:38:45 -040057deps =
58 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040059setenv =
60 rbd: MOLECULE_CSI_DRIVER = rbd
61 local-path-provisioner: MOLECULE_CSI_DRIVER = local-path-provisioner
62commands =
63 molecule test -s csi
64
65[testenv:molecule-aio-{openvswitch,ovn}]
Mohammed Naser2be5ecd2024-07-19 00:38:45 -040066deps =
67 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040068setenv =
Mohammed Naser7e5ec812024-04-03 13:56:11 -040069 ATMOSPHERE_DEBUG = false
Mohammed Naserdc087392024-04-01 20:26:02 -040070 openvswitch: ATMOSPHERE_NETWORK_BACKEND = openvswitch
71 ovn: ATMOSPHERE_NETWORK_BACKEND = ovn
72commands =
73 molecule test -s aio
Mohammed Naser90128aa2024-04-29 13:21:58 -040074
75[testenv:docs]
76envdir = {toxworkdir}/docs
77deps =
78 -r{toxinidir}/doc/requirements.txt
79allowlist_externals =
80 rm
Mohammed Naser42ae9752025-01-16 01:54:26 -050081skip_install = true
Mohammed Naser90128aa2024-04-29 13:21:58 -040082commands =
83 rm -rf doc/build/html doc/build/doctrees
84 sphinx-build -W --keep-going -b html -j auto doc/source doc/build/html
85
86[testenv:docs-serve]
87envdir = {[testenv:docs]envdir}
88deps = {[testenv:docs]deps}
89allowlist_externals = {[testenv:docs]allowlist_externals}
Mohammed Naser42ae9752025-01-16 01:54:26 -050090skip_install = {[testenv:docs]skip_install}
Mohammed Naser90128aa2024-04-29 13:21:58 -040091commands =
92 rm -rf doc/build/html doc/build/doctrees
93 sphinx-autobuild doc/source doc/build/html
Mohammed Naser2be5ecd2024-07-19 00:38:45 -040094
95[testenv:build-manila-image]
96deps =
97 diskimage-builder==3.28.0
Mohammed Naser89c4a122025-01-28 11:30:07 -050098 setuptools
Mohammed Naser2be5ecd2024-07-19 00:38:45 -040099allowlist_externals =
100 bash
101commands =
102 bash {toxinidir}/build/build-manila-image.sh
vexxhost-botd5930fe2024-10-30 11:15:47 -0400103
104[testenv:promtool-test]
105skip_install = true
106deps =
107 PyYAML
108 rjsonnet
109commands =
110 python3 {toxinidir}/hack/promtool-test.py
vexxhost-botad3b1f52024-11-24 21:19:36 -0500111
112[testenv:helm-unittest]
113commands =
114 python3 {toxinidir}/hack/helm-unittest.py
Mohammed Naser42ae9752025-01-16 01:54:26 -0500115
116[testenv:generate-releasenotes]
117skip_install = true
118deps =
119 reno
120commands =
121 reno report --output {toxinidir}/CHANGELOG.rst