test_exception_not_eaten_from_registry_to_api fails if curl is not installed

Bug #1410563 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Steve Lewis

Bug Description

======================================================================
FAIL: glance.tests.functional.v1.test_misc.TestMiscellaneous.test_exception_not_eaten_from_registry_to_api
tags: worker-0
----------------------------------------------------------------------
Traceback (most recent call last):
  File "glance/tests/functional/v1/test_misc.py", line 109, in test_exception_not_eaten_from_registry_to_api
    exitcode, out, err = execute(cmd)
  File "glance/tests/utils.py", line 313, in execute
    raise RuntimeError(msg)
RuntimeError: Command curl -g http://127.0.0.1:55451/v1/images did not succeed. Returned an exit code of 127.

STDOUT:

STDERR: /bin/sh: 1: curl: not found

I don't see a devref for setting up a development environment for glance, nor a readme for native dependencies for running glance functional tests, but it looks like something should be added for that (or the test should mock/stub out curl?).

Ian Cordasco (icordasc)
Changed in glance:
importance: Undecided → Medium
status: New → Triaged
tags: added: documentation
Changed in glance:
milestone: none → kilo-2
Changed in glance:
assignee: nobody → Steve Lewis (steve-lewis)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/148750

Changed in glance:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/148750
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=94fe4a03aaea642bed9fbb667bac30e2c1433bfe
Submitter: Jenkins
Branch: master

commit 94fe4a03aaea642bed9fbb667bac30e2c1433bfe
Author: Steve Lewis <email address hidden>
Date: Tue Jan 20 15:50:32 2015 -0800

    Remove test dependency on curl

    test_exception_not_eaten_from_registry_to_api unnecessarily invoked curl
    through a command exec to perform a simple GET and POST to the glance API. The
    test has been modified to use httplib2 which was already imported for another
    test in the same test class.

    Change-Id: I023529b32b3b766c6d625d73010debe8dbd5fc65
    Closes-Bug: 1410563

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: kilo-2 → 2015.1.0
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.