lib/canonical/launchpad/pagetests/webservice/xx-service.txt failing

Bug #677750 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Jonathan Lange

Bug Description

From https://lpbuildbot.canonical.com/builders/lucid_lp/builds/370/steps/shell_6/logs/summary

rev 11952 is implicated based on the commit message.

"

Failure in test lib/canonical/launchpad/pagetests/webservice/xx-service.txt
Traceback (most recent call last):
  File "/usr/lib/python2.6/unittest.py", line 279, in run
    testMethod()
  File "/usr/lib/python2.6/doctest.py", line 2152, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for xx-service.txt
  File "lib/canonical/launchpad/pagetests/webservice/xx-service.txt", line 0

----------------------------------------------------------------------
File "lib/canonical/launchpad/pagetests/webservice/xx-service.txt", line 40, in xx-service.txt
Failed example:
    print webservice.get("/builders")
Differences (ndiff with -expected +actual):
    - HTTP/1.1 404 Not Found
    - ...
    + HTTP/1.1 200 Ok
    + Status: 200 Ok
    + Content-Length: 1223
    + Content-Type: application/json
    + Vary: Accept
    + X-Powered-By: Zope (www.zope.org), Python (www.python.org)
    + <BLANKLINE>
    + {"total_size": 2, "start": 0, "entries": [{"description": "The default build-slave", "title": "Bob The Builder", "url": "http://localhost:8221/", "manual": false, "failure_count": 0, "virtualized": false, "active": true, "owner_link": "http://api.launchpad.dev/beta/~launchpad-buildd-admins", "vm_host": null, "self_link": "http://api.launchpad.dev/beta/builders/bob", "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-ac4768307aa3c9b1ac2609287d2ae356b9ed7d06\"", "failnotes": null, "resource_type_link": "http://api.launchpad.dev/beta/#builder", "builderok": true, "name": "bob"}, {"description": "The untrusted build-slave", "title": "The frog builder", "url": "http://localhost:9221/", "manual": false, "failure_count": 0, "virtualized": true, "active": true, "owner_link": "http://api.launchpad.dev/beta/~launchpad-buildd-admins", "vm_host": "localhost-host.ppa", "self_link": "http://api.launchpad.dev/beta/builders/frog", "http_etag": "\"da39a3ee5e6b4b0d3255bfef95601890afd80709-65e7e41a7c01d28b1937a8c91cacb03ebba06af6\"", "failnotes": null, "resource_type_link": "http://api.launchpad.dev/beta/#builder", "builderok": false, "name": "frog"}], "resource_type_link" : "http://api.launchpad.dev/beta/#builders"}
"

Tags: lp-soyuz

Related branches

Jonathan Lange (jml)
Changed in soyuz:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Jonathan Lange (jml)
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Why on earth would a test be asserting that something is not on the webservice?? Thanks for fixing it. I'm not sure how I missed that one.

Revision history for this message
Robert Collins (lifeless) wrote :

Its asserting that things not published explicitly are not accessible. However it shouldn't depend on existing things, it should instead publish a new thing on the html ui and check the api doesn't expose it.

Changed in soyuz:
status: In Progress → 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.