mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-24 19:30:38 +00:00
Switch test_bucket_list_maxkeys_unreadble to use '\n' instead of '\a'.
This avoids the SAX parser error. It also gave a different error code from Amazon.
This commit is contained in:
parent
80d332346f
commit
5e7792e0bf
1 changed files with 2 additions and 2 deletions
|
@ -387,13 +387,13 @@ def test_bucket_list_maxkeys_invalid():
|
||||||
def test_bucket_list_maxkeys_unreadable():
|
def test_bucket_list_maxkeys_unreadable():
|
||||||
bucket = _create_keys(keys=['bar', 'baz', 'foo', 'quxx'])
|
bucket = _create_keys(keys=['bar', 'baz', 'foo', 'quxx'])
|
||||||
|
|
||||||
e = assert_raises(boto.exception.S3ResponseError, bucket.get_all_keys, max_keys='\x07')
|
e = assert_raises(boto.exception.S3ResponseError, bucket.get_all_keys, max_keys='\x0a')
|
||||||
eq(e.status, 400)
|
eq(e.status, 400)
|
||||||
eq(e.reason, 'Bad Request')
|
eq(e.reason, 'Bad Request')
|
||||||
# Weird because you can clearly see an InvalidArgument error code. What's
|
# Weird because you can clearly see an InvalidArgument error code. What's
|
||||||
# also funny is the Amazon tells us that it's not an interger or within an
|
# also funny is the Amazon tells us that it's not an interger or within an
|
||||||
# integer range. Is 'blah' in the integer range?
|
# integer range. Is 'blah' in the integer range?
|
||||||
eq(e.error_code, None)
|
eq(e.error_code, 'InvalidArgument')
|
||||||
|
|
||||||
|
|
||||||
@attr('fails_on_rgw')
|
@attr('fails_on_rgw')
|
||||||
|
|
Loading…
Reference in a new issue