From 0422e4487bcb37d5e96f91e9e36e0d99b9470d84 Mon Sep 17 00:00:00 2001 From: Max Erenberg <> Date: Sat, 25 Dec 2021 11:31:54 -0500 Subject: [PATCH] fix flaky test for vhost rate limiting --- tests/ceod/api/test_cloud.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/ceod/api/test_cloud.py b/tests/ceod/api/test_cloud.py index e6549e9..9c4e39e 100644 --- a/tests/ceod/api/test_cloud.py +++ b/tests/ceod/api/test_cloud.py @@ -92,6 +92,10 @@ def test_cloud_vhosts(cfg, client, new_user, ldap_conn): rate_limit_secs = cfg.get('cloud vhosts_rate_limit_seconds') uid = new_user.uid + rate_limit_file = '/run/ceod/rate_limit.json' + if os.path.exists(rate_limit_file): + os.unlink(rate_limit_file) + domain1 = uid + '.' + members_domain ip1 = '172.19.134.11' status, _ = client.put(