Skip to content

Commit

Permalink
Add ObjectRetrier to CinderaBackupTests
Browse files Browse the repository at this point in the history
This adds the auto-retrier to the cinder client to get past race hazards
and other transient errors.
  • Loading branch information
ajkavanagh committed Jun 24, 2024
1 parent ce1ec55 commit e876fc7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zaza/openstack/charm_tests/cinder_backup/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import zaza.model
import zaza.openstack.charm_tests.test_utils as test_utils
from zaza.openstack.utilities import ObjectRetrierWraps
import zaza.openstack.utilities.ceph as ceph_utils
import zaza.openstack.utilities.openstack as openstack_utils

Expand All @@ -35,8 +36,8 @@ class CinderBackupTest(test_utils.OpenStackBaseTest):
def setUpClass(cls):
"""Run class setup for running Cinder Backup tests."""
super(CinderBackupTest, cls).setUpClass()
cls.cinder_client = openstack_utils.get_cinder_session_client(
cls.keystone_session)
cls.cinder_client = ObjectRetrierWraps(
openstack_utils.get_cinder_session_client(cls.keystone_session))

@property
def services(self):
Expand Down

0 comments on commit e876fc7

Please sign in to comment.