Skip to content

Commit

Permalink
Merge "Use addClassResourceCleanup in test_container_sync"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Jan 2, 2018
2 parents 9610739 + ff76e49 commit d4aba83
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tempest/api/object_storage/test_container_sync.py
Expand Up @@ -71,14 +71,12 @@ def resource_setup(cls):
(cls.container_client_alt, cls.object_client_alt)
for cont_name, client in cls.clients.items():
client[0].create_container(cont_name)
cls.addClassResourceCleanup(base.delete_containers,
cont_name,
client[0],
client[1])
cls.containers.append(cont_name)

@classmethod
def resource_cleanup(cls):
for client in cls.clients.values():
cls.delete_containers(client[0], client[1])
super(ContainerSyncTest, cls).resource_cleanup()

def _test_container_synchronization(self, make_headers):
# container to container synchronization
# to allow/accept sync requests to/from other accounts
Expand Down

0 comments on commit d4aba83

Please sign in to comment.