Remove invalid assertions for 304 resp

Per the HTTP spec
(https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.5)
http 304 responses should not include entity headers. Proxies (such as
apache) remove these headers (rightfully) and therefore make it
impossible to test behind a proxy.

Change-Id: I2e26c188e723002e8eb058cfb2d881ab858cfaa4
This commit is contained in:
Gregory Haynes 2016-09-21 11:34:46 -07:00
parent 39a4ae9de0
commit c2cb0244b6
1 changed files with 0 additions and 3 deletions

View File

@ -954,10 +954,7 @@ class ObjectTest(base.BaseObjectTest):
# When the file is not downloaded from Swift server, response does
# not contain 'X-Timestamp' header. This is the special case, therefore
# the existence of response headers is checked without custom matcher.
self.assertIn('content-type', resp)
self.assertIn('x-trans-id', resp)
self.assertIn('date', resp)
self.assertIn('accept-ranges', resp)
# Check only the format of common headers with custom matcher
self.assertThat(resp, custom_matchers.AreAllWellFormatted())