From 523062f4aa62640d12f271d952e5308194245c3b Mon Sep 17 00:00:00 2001
From: OpenStack Release Bot <infra-root@openstack.org>
Date: Fri, 15 Mar 2024 14:30:52 +0000
Subject: [PATCH] Update TOX_CONSTRAINTS_FILE for stable/2024.1

Update the URL to the upper-constraints file to point to the redirect
rule on releases.openstack.org so that anyone working on this branch
will switch to the correct upper-constraints list automatically when
the requirements repository branches.

Until the requirements repository has as stable/2024.1 branch, tests will
continue to use the upper-constraints list on master.

Change-Id: Id50ad920cc4add8efa93d4501048e3ee7d92eaf8
---
 tox.ini | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tox.ini b/tox.ini
index 92e75a0e1..671d96965 100644
--- a/tox.ini
+++ b/tox.ini
@@ -19,7 +19,7 @@ setenv =
 # TODO(stephenfin): Remove once we bump our upper-constraint to SQLAlchemy 2.0
     SQLALCHEMY_WARN_20=1
 deps =
-    -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
+    -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2024.1}
     .[{env:AODH_TEST_DEPS}]
     -r{toxinidir}/test-requirements.txt
     -r{toxinidir}/requirements.txt
@@ -63,7 +63,7 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen
 [testenv:docs]
 usedevelop = True
 deps =
-  -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
+  -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2024.1}
   -r{toxinidir}/requirements.txt
   -r{toxinidir}/doc/requirements.txt
 allowlist_externals =
@@ -95,7 +95,7 @@ commands = bash -x oslo_debug_helper {posargs}
 deps =
   gnocchi[mysql, file]
   pifpaf[gnocchi]>=1.0.1
-  -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
+  -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2024.1}
   .[mysql]
   -r{toxinidir}/test-requirements.txt
 setenv = OS_TEST_PATH=aodh/tests/functional/
@@ -105,7 +105,7 @@ commands = pifpaf -g AODH_TEST_STORAGE_URL run mysql -- oslo_debug_helper {posar
 deps =
   gnocchi[postgresql, file]
   pifpaf[gnocchi]>=1.0.1
-  -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
+  -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2024.1}
   .[postgresql]
   -r{toxinidir}/test-requirements.txt
 setenv = OS_TEST_PATH=aodh/tests/functional/