Revision 49517b8a snf-tools/synnefo_tools/burnin/pithos_tests.py
b/snf-tools/synnefo_tools/burnin/pithos_tests.py | ||
---|---|---|
285 | 285 |
@classmethod |
286 | 286 |
def tearDownClass(cls): # noqa |
287 | 287 |
"""Clean up""" |
288 |
print cls.created_container |
|
289 |
if cls.created_container is not None: |
|
290 |
cls.clients.pithos.del_container(delimiter='/') |
|
291 |
cls.clients.pithos.purge_container() |
|
288 |
pithos = cls.clients.pithos |
|
289 |
for c in getattr(cls, 'temp_containers', []): |
|
290 |
pithos.container = c |
|
291 |
try: |
|
292 |
pithos.del_container(delimiter='/') |
|
293 |
pithos.purge_container(c) |
|
294 |
except ClientError as ce: |
|
295 |
print ('Failed to destroy container (%s)' % ce) |
Also available in: Unified diff