When running tests without virtualenv, test_traceback_not_consumed fails

Bug #759018 reported by Jay Pipes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Critical
Jay Pipes

Bug Description

jpipes@serialcoder:~/repos/glance/functional-tests$ ./run_tests.sh -N tests.functional.test_curl_api:TestCurlApi.test_traceback_not_consumed
TestCurlApi
    test_traceback_not_consumed FAIL

======================================================================
FAIL: test_traceback_not_consumed (tests.functional.test_curl_api.TestCurlApi)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jpipes/repos/glance/functional-tests/tests/functional/test_curl_api.py", line 451, in test_traceback_not_consumed
    "Could not find '%s' in '%s'" % (expected, out))
AssertionError: Could not find 'Content-Type must be application/octet-stream' in 'HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=UTF-8
Content-Length: 298
Date: Tue, 12 Apr 2011 18:01:41 GMT

<html>
 <head>
  <title>400 Bad Request</title>
 </head>
 <body>
  <h1>400 Bad Request</h1>
  The server could not comply with the request since
it is either malformed or otherwise incorrect.
<br /><br />
400 Bad Request
Content-Type: text/html; charset=UTF-8
Content-Length: 0

 </body>
</html>'

----------------------------------------------------------------------
Ran 1 test in 0.838s

FAILED (failures=1)

This does not fail when run with ./run_tests.sh -V, however it *does* fail when doing ./run_tests.sh -N or python setup.py test. I noticed the latter on https://launchpadlibrarian.net/69149844/buildlog_ubuntu-maverick-i386.glance_2011.2~bzr109-0ubuntu0ppa1~maverick1_FAILEDTOBUILD.txt.gz.

Related branches

Thierry Carrez (ttx)
Changed in glance:
milestone: none → cactus-rc
Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: cactus-rc → 2011.2
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.