From: Casey Bodley Date: Fri, 5 Apr 2019 21:08:59 +0000 (-0400) Subject: skip bucket location test if no api_name is configured X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=250122e17d7254227bb1a27d698f28f12f39f7dc;p=s3-tests.git skip bucket location test if no api_name is configured Signed-off-by: Casey Bodley --- diff --git a/s3tests_boto3/functional/test_s3.py b/s3tests_boto3/functional/test_s3.py index f85b5e15..d38030f6 100644 --- a/s3tests_boto3/functional/test_s3.py +++ b/s3tests_boto3/functional/test_s3.py @@ -3419,10 +3419,12 @@ def test_bucket_create_exists(): @attr(method='get') @attr(operation='get location') def test_bucket_get_location(): + location_constraint = get_main_api_name() + if not location_constraint + raise SkipTest bucket_name = get_new_bucket_name() client = get_client() - location_constraint = get_main_api_name() client.create_bucket(Bucket=bucket_name, CreateBucketConfiguration={'LocationConstraint': location_constraint}) response = client.get_bucket_location(Bucket=bucket_name)