]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
Add test for querying location 31/head
authorAndrew Gaul <andrew@gaul.org>
Tue, 30 Dec 2014 00:15:11 +0000 (16:15 -0800)
committerAndrew Gaul <andrew@gaul.org>
Tue, 30 Dec 2014 00:15:41 +0000 (16:15 -0800)
s3tests/functional/test_s3.py

index d243d2a8ecb603c286f7a94a6396e72efcff560f..2321950e6ca798dbc3aa1b9062697f62b5ae9e56 100644 (file)
@@ -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')