Merge "Use addClassResourceCleanup in account service test"
This commit is contained in:
commit
dcd10b47e6
@ -44,14 +44,13 @@ class AccountTest(base.BaseObjectTest):
|
||||
for i in range(ord('a'), ord('f') + 1):
|
||||
name = data_utils.rand_name(name='%s-' % six.int2byte(i))
|
||||
cls.container_client.update_container(name)
|
||||
cls.addClassResourceCleanup(base.delete_containers,
|
||||
[name],
|
||||
cls.container_client,
|
||||
cls.object_client)
|
||||
cls.containers.append(name)
|
||||
cls.containers_count = len(cls.containers)
|
||||
|
||||
@classmethod
|
||||
def resource_cleanup(cls):
|
||||
cls.delete_containers()
|
||||
super(AccountTest, cls).resource_cleanup()
|
||||
|
||||
@decorators.attr(type='smoke')
|
||||
@decorators.idempotent_id('3499406a-ae53-4f8c-b43a-133d4dc6fe3f')
|
||||
def test_list_containers(self):
|
||||
|
Loading…
Reference in New Issue
Block a user