blob: d72d3ace4cbd40a50b0bb45cd779859e7500cd56 [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.a7ff8032024-10-04 17:47:42 +020014 ATMOSPHERE_*
Mohammed Naserf75ab072024-04-02 12:55:10 -040015
16[testenv:venv]
17passenv =
Oleksandr K.a7ff8032024-10-04 17:47:42 +020018 ATMOSPHERE_*
19 OS_*
Mohammed Naserf75ab072024-04-02 12:55:10 -040020commands =
21 {posargs}
Mohammed Naserdc087392024-04-01 20:26:02 -040022
Mohammed Nasereb257cb2024-04-10 21:14:24 -040023[testenv:pin-digests]
24deps =
25 oslo_config
26 oslo_log
27 ruyaml
28commands =
29 python3 {toxinidir}/build/pin-images.py roles/defaults/vars/main.yml roles/defaults/vars/main.yml
30
Mohammed Naser2fd39612024-04-14 13:37:45 -040031[testenv:linters]
32skipsdist = True
33deps =
Mohammed Naser2fd39612024-04-14 13:37:45 -040034 pre-commit
35commands =
36 pre-commit run --all-files --show-diff-on-failure
vexxhost-bot69a7f3c2024-06-20 14:16:03 +020037 python3 {toxinidir}/build/lint-jobs.py
Mohammed Naser2fd39612024-04-14 13:37:45 -040038
vexxhost-bot134680a2024-07-19 04:30:48 +020039[testenv:py3]
40deps =
41 pytest-ansible
42commands =
43 pytest tests/unit
44
45[testenv:molecule-venv]
46passenv =
Oleksandr K.a7ff8032024-10-04 17:47:42 +020047 ATMOSPHERE_*
48 OS_*
vexxhost-bot134680a2024-07-19 04:30:48 +020049deps =
Yaguang Tang0953b612024-12-13 04:14:34 +080050 molecule==24.9.0
Mohammed Naser13728ca2025-01-14 16:35:33 -050051 ansible-compat==24.10.0
vexxhost-botaf2bf202024-07-21 20:54:21 +020052 kubernetes
vexxhost-bot3869fa62024-07-23 02:35:53 +020053 oslotest
54 stestr
55 testscenarios
vexxhost-bot134680a2024-07-19 04:30:48 +020056commands =
57 molecule {posargs}
58
Mohammed Naserdc087392024-04-01 20:26:02 -040059[testenv:molecule-keycloak]
vexxhost-bot134680a2024-07-19 04:30:48 +020060deps =
61 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040062commands =
63 molecule test -s keycloak
64
65[testenv:molecule-csi-{rbd,local-path-provisioner}]
vexxhost-bot134680a2024-07-19 04:30:48 +020066deps =
67 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040068setenv =
69 rbd: MOLECULE_CSI_DRIVER = rbd
70 local-path-provisioner: MOLECULE_CSI_DRIVER = local-path-provisioner
71commands =
72 molecule test -s csi
73
74[testenv:molecule-aio-{openvswitch,ovn}]
vexxhost-bot134680a2024-07-19 04:30:48 +020075deps =
76 {[testenv:molecule-venv]deps}
Mohammed Naserdc087392024-04-01 20:26:02 -040077setenv =
Mohammed Naser7e5ec812024-04-03 13:56:11 -040078 ATMOSPHERE_DEBUG = false
Mohammed Naserdc087392024-04-01 20:26:02 -040079 openvswitch: ATMOSPHERE_NETWORK_BACKEND = openvswitch
80 ovn: ATMOSPHERE_NETWORK_BACKEND = ovn
81commands =
82 molecule test -s aio
Mohammed Naser90128aa2024-04-29 13:21:58 -040083
84[testenv:docs]
85envdir = {toxworkdir}/docs
86deps =
87 -r{toxinidir}/doc/requirements.txt
88allowlist_externals =
89 rm
90commands =
91 rm -rf doc/build/html doc/build/doctrees
92 sphinx-build -W --keep-going -b html -j auto doc/source doc/build/html
93
94[testenv:docs-serve]
95envdir = {[testenv:docs]envdir}
96deps = {[testenv:docs]deps}
97allowlist_externals = {[testenv:docs]allowlist_externals}
98commands =
99 rm -rf doc/build/html doc/build/doctrees
100 sphinx-autobuild doc/source doc/build/html
vexxhost-bot134680a2024-07-19 04:30:48 +0200101
102[testenv:build-manila-image]
103deps =
104 diskimage-builder==3.28.0
105allowlist_externals =
106 bash
107commands =
108 bash {toxinidir}/build/build-manila-image.sh
vexxhost-bot45e777c2024-10-30 12:41:42 -0400109
110[testenv:promtool-test]
111skip_install = true
112deps =
113 PyYAML
114 rjsonnet
115commands =
116 python3 {toxinidir}/hack/promtool-test.py
vexxhost-bot861baf92024-11-24 21:04:18 -0500117
118[testenv:helm-unittest]
119commands =
120 python3 {toxinidir}/hack/helm-unittest.py