From b4b6694f0e8dc6f6e17c4ae12bc42c11ef70612c Mon Sep 17 00:00:00 2001 From: Felipe Reyes Date: Thu, 5 Oct 2023 10:39:38 -0300 Subject: [PATCH] Add constraints-*.txt to run functional tests --- constraints-juju-29.txt | 1 + constraints-juju-31.txt | 1 + constraints-juju-32.txt | 1 + tox.ini | 4 +++- 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 constraints-juju-29.txt create mode 100644 constraints-juju-31.txt create mode 100644 constraints-juju-32.txt diff --git a/constraints-juju-29.txt b/constraints-juju-29.txt new file mode 100644 index 000000000..6a3dead58 --- /dev/null +++ b/constraints-juju-29.txt @@ -0,0 +1 @@ +juju<3.0 diff --git a/constraints-juju-31.txt b/constraints-juju-31.txt new file mode 100644 index 000000000..11c49ff22 --- /dev/null +++ b/constraints-juju-31.txt @@ -0,0 +1 @@ +juju>=3.1,<3.2 diff --git a/constraints-juju-32.txt b/constraints-juju-32.txt new file mode 100644 index 000000000..6b5c57a94 --- /dev/null +++ b/constraints-juju-32.txt @@ -0,0 +1 @@ +juju>=3.2,<3.3 diff --git a/tox.ini b/tox.ini index 2cb5a78d6..bd1ca067a 100644 --- a/tox.ini +++ b/tox.ini @@ -58,7 +58,9 @@ commands = [testenv:func-target] basepython = python3 -deps = -r{toxinidir}/test-requirements.txt +deps = + -c{toxinidir}/constraints-{env:EXTRA:juju-29}.txt + -r{toxinidir}/test-requirements.txt commands = {envdir}/bin/python3 setup.py install functest-run-suite --keep-model --bundle {posargs}