← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1667379] Re: errors running tox on stable/ocata

 

** Changed in: horizon
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1667379

Title:
  errors running tox on stable/ocata

Status in OpenStack Dashboard (Horizon):
  Invalid

Bug description:
  I have pulled down stable/ocata and run tox -epy27.  I get the
  following error.  I get it on many many tests (maybe all of the ones
  that talk to neutron) but here is just 1 of the tests.  I have not
  changed anything - just pulled down ocata.

  Call to list enabled services failed. This is likely due to a problem communicating with the Neutron endpoint. Load Balancers panel will not be displayed.
  Problem instantiating action class.
  Traceback (most recent call last):
    File "/Users/tjones/Development/PycharmProjects/OpenStack/horizon/horizon/workflows/base.py", line 395, in action
      context)
    File "/Users/tjones/Development/PycharmProjects/OpenStack/horizon/openstack_dashboard/dashboards/identity/projects/workflows.py", line 89, in __init__
      disabled_quotas = quotas.get_disabled_quotas(request)
    File "/Users/tjones/Development/PycharmProjects/OpenStack/horizon/openstack_dashboard/usage/quotas.py", line 258, in get_disabled_quotas
      if neutron.is_extension_supported(request, 'security-group'):
    File "/Users/tjones/Development/PycharmProjects/OpenStack/horizon/.tox/py27/lib/python2.7/site-packages/mox3/mox.py", line 814, in __call__
      return mock_method(*params, **named_params)
    File "/Users/tjones/Development/PycharmProjects/OpenStack/horizon/.tox/py27/lib/python2.7/site-packages/mox3/mox.py", line 1113, in __call__
      expected_method = self._VerifyMethodCall()
    File "/Users/tjones/Development/PycharmProjects/OpenStack/horizon/.tox/py27/lib/python2.7/site-packages/mox3/mox.py", line 1169, in _VerifyMethodCall
      expected = self._PopNextMethod()
    File "/Users/tjones/Development/PycharmProjects/OpenStack/horizon/.tox/py27/lib/python2.7/site-packages/mox3/mox.py", line 1155, in _PopNextMethod
      raise UnexpectedMethodCallError(self, None)
  UnexpectedMethodCallError: Unexpected method call function.__call__(<class 'django.http.HttpRequest'>, 'security-group') -> None
  FE
  ======================================================================
  ERROR: test_add_project_get_with_neutron (openstack_dashboard.dashboards.identity.projects.tests.CreateProjectWorkflowTests)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/Users/tjones/Development/PycharmProjects/OpenStack/horizon/openstack_dashboard/test/helpers.py", line 221, in tearDown
      super(TestCase, self).tearDown()
    File "/Users/tjones/Development/PycharmProjects/OpenStack/horizon/horizon/test/helpers.py", line 154, in tearDown
      self.mox.VerifyAll()
    File "/Users/tjones/Development/PycharmProjects/OpenStack/horizon/.tox/py27/lib/python2.7/site-packages/mox3/mox.py", line 289, in VerifyAll
      mock_obj._Verify()
    File "/Users/tjones/Development/PycharmProjects/OpenStack/horizon/.tox/py27/lib/python2.7/site-packages/mox3/mox.py", line 543, in _Verify
      raise ExpectedMethodCallsError(self._expected_calls_queue)
  ExpectedMethodCallsError: Verify: Expected methods never called:
    0.  function.__call__(mox.IsA(<class 'django.http.request.HttpRequest'>) ) -> True

  ======================================================================
  FAIL: test_add_project_get_with_neutron (openstack_dashboard.dashboards.identity.projects.tests.CreateProjectWorkflowTests)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/Users/tjones/Development/PycharmProjects/OpenStack/horizon/openstack_dashboard/test/helpers.py", line 114, in instance_stub_out
      return fn(self, *args, **kwargs)
    File "/Users/tjones/Development/PycharmProjects/OpenStack/horizon/.tox/py27/lib/python2.7/site-packages/django/test/utils.py", line 196, in inner
      return test_func(*args, **kwargs)
    File "/Users/tjones/Development/PycharmProjects/OpenStack/horizon/openstack_dashboard/dashboards/identity/projects/tests.py", line 309, in test_add_project_get_with_neutron
      self.assertContains(res, pattern, html=True)
    File "/Users/tjones/Development/PycharmProjects/OpenStack/horizon/.tox/py27/lib/python2.7/site-packages/django/test/testcases.py", line 358, in assertContains
      msg_prefix + "Couldn't find %s in response" % text_repr)
  AssertionError: Couldn't find '<input class="form-control" id="id_subnet" min="-1" name="subnet" type="number" value="10"/>' in response
      u'Couldn\'t find \'<input class="form-control" id="id_subnet" min="-1" name="subnet" type="number" value="10"/>\' in response' = self._formatMessage(u'Couldn\'t find \'<input class="form-control" id="id_subnet" min="-1" name="subnet" type="number" value="10"/>\' in response', "%s is not true" % safe_repr(False))
  >>  raise self.failureException(u'Couldn\'t find \'<input class="form-control" id="id_subnet" min="-1" name="subnet" type="number" value="10"/>\' in response')

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


References