- When localhost:80 was binding the tests was trying to connect into it.
- To test you can simply run sudo python -m SimpleHTTPServer 80 which
should show :
(the test was passing since 501 would raise ClientException).
mock delete_object in the fourth test to fix that
- Refactor the code to use mock.patch as well.
Reviewed: https:/ /review. openstack. org/40401 github. com/openstack/ swift/commit/ d3bd30da4191e57 6f4e7b78498979f fc8892eeb5
Committed: http://
Submitter: Jenkins
Branch: master
commit d3bd30da4191e57 6f4e7b78498979f fc8892eeb5
Author: Chmouel Boudjnah <email address hidden>
Date: Tue Aug 6 14:15:48 2013 +0200
Fix sync test when localhost on port 80 is binded
- When localhost:80 was binding the tests was trying to connect into it.
- To test you can simply run sudo python -m SimpleHTTPServer 80 which
should show :
1. 0.0.127. in-addr. arpa - - [06/Aug/2013 14:10:42] code 501, message Unsupported method ('DELETE') 0.0.127. in-addr. arpa - - [06/Aug/2013 14:10:42] "DELETE /a/c/o HTTP/1.1" 501 -
1.
(the test was passing since 501 would raise ClientException).
mock delete_object in the fourth test to fix that
- Refactor the code to use mock.patch as well.
Closes-Bug: 1208802 f51cf5883fcfc0f e0f0adaeff6
Change-Id: I5ddd4ac3a97879