Two MIME types sent during test
The directory tests TestContainerPathsEnv creates directorys during SetUp while indicating duplicate application internet media type (MIME) via the Content-Type header. E.g the output on the line using 'nosetests -v test.functional.tests:TestContainerPaths.testContainerListing' includes: Host: 127.0.0.1:8080 Accept-Encoding: identity Content-Type: application/octet-stream Content-Length: 0 content-type: application/directory X-Auth-Token: AUTH_tkd40f5550289d4d60af75bb1b6c6067be On branch bp/wsgi-application-interface-3 modified: test/functional/tests.py Fixes: Bug #1068499 Implements Blueprint wsgi-application-interface Change-Id: I49c5d1f73fff3c06d4be18b20c7209eff4e1326c
This commit is contained in:
parent
cee685e11a
commit
d5cdbbe0ea
@ -727,9 +727,9 @@ class TestContainerPathsEnv:
|
||||
for f in cls.files:
|
||||
file = cls.container.file(f)
|
||||
if f.endswith('/'):
|
||||
file.write(hdrs={'content-type': 'application/directory'})
|
||||
file.write(hdrs={'Content-Type': 'application/directory'})
|
||||
else:
|
||||
file.write_random(cls.file_size, hdrs={'content-type':
|
||||
file.write_random(cls.file_size, hdrs={'Content-Type':
|
||||
'application/directory'})
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user