forked from TrueCloudLab/s3-tests
test_s3: test for duplicate response headers.
Signed-off-by: caleb miles <caleb.miles@inktank.com>
This commit is contained in:
parent
834800f341
commit
8c7c10d324
1 changed files with 5 additions and 0 deletions
|
@ -1252,6 +1252,11 @@ def test_object_raw_response_headers():
|
||||||
eq(res.getheader('expires'), '123')
|
eq(res.getheader('expires'), '123')
|
||||||
eq(res.getheader('cache-control'), 'no-cache')
|
eq(res.getheader('cache-control'), 'no-cache')
|
||||||
|
|
||||||
|
# check for duplicate response headers
|
||||||
|
h_list = [h[0] for h in res.getheaders()]
|
||||||
|
h_set = set(h_list)
|
||||||
|
eq(len(h_list), len(h_set))
|
||||||
|
|
||||||
|
|
||||||
@attr(resource='object')
|
@attr(resource='object')
|
||||||
@attr(method='ACLs')
|
@attr(method='ACLs')
|
||||||
|
|
Loading…
Add table
Reference in a new issue