swift/test/unit/proxy
Alistair Coles 12dd408823 Put correct Etag and Accept-Ranges in EC 304 and 416 responses
When using an EC policy, 304 responses to conditional GETs
are missing the Accept-Ranges header and have the wrong ETag
value. 412 responses also have the wrong etag.

416 responses to ranged GETs also have the wrong ETag.

This patch ensures behaviour with EC policy is consistent
with replication policy:

  - 304 and 416 responses have correct etag and Accept-Ranges
  - 412 responses have correct Etag but no Accept-Ranges

Co-Authored-By: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Co-Authored-By: Thiago da Silva <thiago@redhat.com>

Closes-Bug: #1496234
Closes-Bug: #1558197
Closes-Bug: #1558193
Change-Id: Ic21317b9e4f632f0751133a3383eb5487379e11f
2016-03-17 11:47:33 +00:00
..
controllers Put correct Etag and Accept-Ranges in EC 304 and 416 responses 2016-03-17 11:47:33 +00:00
__init__.py Initial commit of Swift code 2010-07-12 17:03:45 -05:00
test_mem_server.py Per-policy DiskFile classes 2015-04-14 00:52:16 -07:00
test_server.py Put correct Etag and Accept-Ranges in EC 304 and 416 responses 2016-03-17 11:47:33 +00:00
test_sysmeta.py py3: Replace urllib imports with six.moves.urllib 2015-10-08 15:24:13 +02:00