From: Andrew Gaul Date: Tue, 30 Dec 2014 00:15:11 +0000 (-0800) Subject: Add test for querying location X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ffdad9e22fff1b67839eef465c136faf670c9acf;p=s3-tests.git Add test for querying location --- diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index d243d2a8..2321950e 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -2798,6 +2798,16 @@ def test_bucket_create_exists(): get_new_bucket(targets.main.default, bucket.name) +@attr(resource='bucket') +@attr(method='get') +@attr(operation='get location') +def test_bucket_get_location(): + bucket = get_new_bucket(targets.main.default) + actual_location = bucket.get_location() + expected_location = targets.main.default.conf.api_name + eq(actual_location, expected_location) + + @attr(resource='bucket') @attr(method='put') @attr(operation='re-create by non-owner')