← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1204186] Re: Test test_get_bind_addr_default_value picks up port value from system config file

 

** Changed in: glance
       Status: Fix Committed => Fix Released

** Changed in: glance
    Milestone: None => havana-3

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1204186

Title:
  Test test_get_bind_addr_default_value picks up port value from system
  config file

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released

Bug description:
  When I run the tests, eg with

  $ tox -epy27

  I see the following error:

  ======================================================================
  FAIL: glance.tests.unit.common.test_wsgi.JSONRequestDeserializerTest.test_get_bind_addr_default_value
  ----------------------------------------------------------------------
  _StringException: Traceback (most recent call last):
    File "/home/ubuntu/git/glance.new/glance/glance/tests/unit/common/test_wsgi.py", line 250, in test_get_bind_addr_default_value
      self.assertEqual(expected, actual)
    File "/home/ubuntu/git/glance.new/glance/.tox/venv/local/lib/python2.7/site-packages/testtools/testcase.py", line 322, in assertEqual
      self.assertThat(observed, matcher, message)
    File "/home/ubuntu/git/glance.new/glance/.tox/venv/local/lib/python2.7/site-packages/testtools/testcase.py", line 417, in assertThat
      raise MismatchError(matchee, matcher, mismatch, verbose)
  MismatchError: ('0.0.0.0', '123456') != ('0.0.0.0', 9291)

  
  Slowest 5 tests took 70.04 secs:
      21.68    TestScrubber.test_scrubber_delete_handles_exception
      21.66    TestScrubber.test_scrubber_app
      16.27    TestScrubber.test_delayed_delete
      6.56    TestBinGlanceCacheManage.test_queue
      3.87    TestRootApi.test_version_configurations
  ----------------------------------------------------------------------
  Ran 1530 tests in 300.360s


  
  Port 9291 [sic] is being picked up from /etc/glance/glance-api.conf

  $ grep 9291 /etc/glance/glance-api.conf
  bind_port = 9291

  The unit test should be independent of any config files present on the
  system.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1204186/+subscriptions