mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 23:29:47 +00:00
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('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(method='ACLs')
|
||||
|
|
Loading…
Reference in a new issue