mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-28 19:31:39 +00:00
Merge pull request #31 from andrewgaul/get-location
Add test for querying location Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
commit
eac714c9b7
1 changed files with 10 additions and 0 deletions
|
@ -2859,6 +2859,16 @@ def test_bucket_create_exists():
|
||||||
get_new_bucket(targets.main.default, bucket.name)
|
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(resource='bucket')
|
||||||
@attr(method='put')
|
@attr(method='put')
|
||||||
@attr(operation='re-create by non-owner')
|
@attr(operation='re-create by non-owner')
|
||||||
|
|
Loading…
Reference in a new issue