tempest/tempest/api/object_storage
Lukáš Piwowarski 553d91b51e Fix cleanup for object_storage tests
This reverts change I98a75cbf119ba8126253a681c046f4cf44b1607e.

Volume backup tests create a container when Swift is used as a backup
driver. This causes a failure of an object storage test [1] as it
expects no containers being present before the testing.

This patch fixes the cleanup by deleting properly the containers
created during the volume backup tests. Before the deletion we check
using a new tempest.conf option whether swift is used as a backup
driver.

This patche also un-skips the
test_volume_backup_create_get_detailed_list_restore_delete test as the
patch ensures that we do not use the container parameter in the API
call when Swift is not used as a backup driver.

[1] https://opendev.org/openstack/tempest/src/tempest/api/object_storage/test_account_services.py#L67

Closes-Bug: #2034913
Change-Id: I33ba1838bf0bfcf94424e7288249dae3feeeb2a2
2023-10-09 07:28:50 +00:00
..
__init__.py rename tests -> api 2013-05-20 17:20:54 -04:00
base.py Fix cleanup for object_storage tests 2023-10-09 07:28:50 +00:00
test_account_bulk.py Fix cleanup for object_storage tests 2023-10-09 07:28:50 +00:00
test_account_quotas.py Adding description for testcases - swift part2 2020-08-20 11:06:16 +08:00
test_account_quotas_negative.py Move test decorators to common 2017-08-23 17:09:33 +00:00
test_account_services.py Fix cleanup for object_storage tests 2023-10-09 07:28:50 +00:00
test_account_services_negative.py Adding description for testcases - swift part2 2020-08-20 11:06:16 +08:00
test_container_acl.py Changes to ensure delete_containers is done at class level tear down 2021-08-04 13:03:36 -05:00
test_container_acl_negative.py Fix cleanup of resources for object_storage tests 2023-06-27 08:21:10 +00:00
test_container_quotas.py Add waiter for object creation 2022-07-29 10:58:28 -03:00
test_container_services.py Changes to ensure delete_containers is done at class level tear down 2021-08-04 13:03:36 -05:00
test_container_services_negative.py Improve cleanup after Swift testing 2021-10-05 14:31:04 +00:00
test_container_staticweb.py Adding description for testcases - swift part3 2020-08-18 16:59:41 +08:00
test_container_sync.py Fix cleanup for object_storage tests 2023-10-09 07:28:50 +00:00
test_container_sync_middleware.py Adding description for testcases - swift part1 2020-08-18 11:11:16 +08:00
test_crossdomain.py [Trivial]Remove unused variables and methods 2020-11-19 01:19:12 +00:00
test_healthcheck.py [Trivial]Remove unused variables and methods 2020-11-19 01:19:12 +00:00
test_object_expiry.py Adding description for testcases - swift part1 2020-08-18 11:11:16 +08:00
test_object_formpost.py Remove usage of six 2021-02-18 10:43:57 +08:00
test_object_formpost_negative.py Remove usage of six 2021-02-18 10:43:57 +08:00
test_object_services.py Fix cleanup of resources for object_storage tests 2023-06-27 08:21:10 +00:00
test_object_slo.py Improve cleanup after Swift testing 2021-10-05 14:31:04 +00:00
test_object_temp_url.py Add config option for algo to use in temp_url tests 2022-07-15 10:38:55 +02:00
test_object_temp_url_negative.py Add config option for algo to use in temp_url tests 2022-07-15 10:38:55 +02:00
test_object_version.py Fix cleanup for object_storage tests 2023-10-09 07:28:50 +00:00