From b04a4d07ea143226da3e20afc5c9ead574f3184d Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Thu, 17 Nov 2022 15:23:21 +0100 Subject: [PATCH] Wait longer for lease deletion to complete When testing with Ubuntu Jammy, this test is consistently failing. Wait longer for Blazar to complete lease deletion, since server deletion is only the first part of it. Change-Id: Ibd48ad420c3f4de43950c15769c7701a7eb49222 --- blazar_tempest_plugin/tests/scenario/test_host_reservation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blazar_tempest_plugin/tests/scenario/test_host_reservation.py b/blazar_tempest_plugin/tests/scenario/test_host_reservation.py index 5d055fc..92fc954 100644 --- a/blazar_tempest_plugin/tests/scenario/test_host_reservation.py +++ b/blazar_tempest_plugin/tests/scenario/test_host_reservation.py @@ -306,6 +306,9 @@ class TestHostReservationScenario(rrs.ResourceReservationScenarioTest): waiters.wait_for_server_termination(self.os_admin.servers_client, server['id']) + # wait long enough for the lease deletion to be complete + time.sleep(30) + # check that the host aggregate was deleted self.assertRaises(exceptions.NotFound, self.fetch_aggregate_by_name, reservation_id)