Use upper constraints in tox jobs
keeps safe from dependencies drift.
Original upstream repo has master branch only so it does not have this
problem, everything is fixed on the go and only in one place.
Related-Issue: PROD-30711
Change-Id: Icfb8e9023a81b9986421f71fe07a7ab343a45c9c
(cherry picked from commit 3f6e114b196d908374a10fedf2e8a6a38d08ccca)
(cherry picked from commit b14bf28b98b19b49c006574cadbe22cac0d6dd47)
diff --git a/tox.ini b/tox.ini
index 798be25..9fd8bda 100644
--- a/tox.ini
+++ b/tox.ini
@@ -8,6 +8,7 @@
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
+ -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/rocky}
commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi'
testr run {posargs}