mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-22 09:29:43 +00:00
Fix If-Match test
According to https://tools.ietf.org/html/rfc7232, If-Match field should looks like QUOTES ETag QUOTES. Signed-off-by: Evgenii Gorinov <korvin.lucky@gmail.com>
This commit is contained in:
parent
953f2b4625
commit
73fb771553
1 changed files with 1 additions and 1 deletions
|
@ -2310,7 +2310,7 @@ def test_get_object_ifmatch_failed():
|
||||||
key = bucket.new_key('foo')
|
key = bucket.new_key('foo')
|
||||||
key.set_contents_from_string('bar')
|
key.set_contents_from_string('bar')
|
||||||
|
|
||||||
e = assert_raises(boto.exception.S3ResponseError, bucket.get_key, 'foo', headers={'If-Match': 'ABCORZ'})
|
e = assert_raises(boto.exception.S3ResponseError, bucket.get_key, 'foo', headers={'If-Match': '"ABCORZ"'})
|
||||||
eq(e.status, 412)
|
eq(e.status, 412)
|
||||||
eq(e.reason, 'Precondition Failed')
|
eq(e.reason, 'Precondition Failed')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue