s3-tests/s3tests_boto3
Pei f344fd6ca7 Fix: Bucket resource leak when cleanup
In the function of nuke_prefixed_buckets, if some err is thrown when deleting buckets, the left buckets remain uncleaned.
It is kind of resoruce leak on some charged platform. We have to clear them manually.

I know the original code is meant to give the user some hint by rasing error. But the resource leak of left buckets is a little annoying.

This PR would skip the problem point and continue the teardown process. The last client error would be saved and re-raised after the loop completes.

Signed-off-by: Pei <huangp0600@126.com>
Signed-off-by: Pei <phuang1@dev-new-3-3854897.slc07.dev.ebayc3.com>
(cherry picked from commit 713012c178)
2021-08-12 13:38:40 -04:00
..
functional Fix: Bucket resource leak when cleanup 2021-08-12 13:38:40 -04:00
__init__.py boto3: Foundation laid for boto3 tests 2019-01-16 16:31:24 -05:00
common.py Port functional tests from python 2 to python 3 2020-01-14 12:20:05 -05:00