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:
parent
39a4ae9de0
commit
c2cb0244b6
|
@ -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())
|
||||
|
||||
|
|
Loading…
Reference in New Issue