Fixes: https://tracker.ceph.com/issues/44743
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
Co-authored-by: Kefu Chai <kefu@redhat.com>
Co-authored-by: Volker Theile <vtheile@suse.com>
time.sleep(1)
self.purge_trash('rbd')
- self.assertStatus(200)
+ self.assertStatus([200, 201])
time.sleep(1)
trash_not_expired = self.get_trash('rbd', id_not_expired)
self.assertIsNotNone(trash_not_expired)
- trash_expired = self.get_trash('rbd', id_expired)
- self.assertIsNone(trash_expired)
+ self.wait_until_equal(lambda: self.get_trash('rbd', id_expired), None, 60)
def test_list_namespaces(self):
self.create_namespace('rbd', 'ns')