From: Evgenii Gorinov Date: Mon, 31 Oct 2016 15:19:06 +0000 (+0300) Subject: Fix If-Match test X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F135%2Fhead;p=s3-tests.git 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 --- diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index 020cb960..a3bb456f 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -2310,7 +2310,7 @@ def test_get_object_ifmatch_failed(): key = bucket.new_key('foo') 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.reason, 'Precondition Failed')