yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #11924
[Bug 1268631] Re: Unit tests failing with raise UnknownMethodCallError('management_url')
** Changed in: horizon/grizzly
Status: Fix Committed => Fix Released
--
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/1268631
Title:
Unit tests failing with raise UnknownMethodCallError('management_url')
Status in OpenStack Dashboard (Horizon):
Fix Released
Status in OpenStack Dashboard (Horizon) grizzly series:
Fix Released
Status in OpenStack Dashboard (Horizon) havana series:
Fix Released
Bug description:
A number of unit tests are failing for every review, likely related to
the release of keystoneclient 0.4.2:
<fungi> i think python-keystoneclient==0.4.2 may have just broken horizon
<fungi> looks like all python unit test runs for horizon are now failing on keystone-specific tests as of the last few minutes, and the only change in the pip freeze output for the tests is python-keystoneclient==0.4.2 instead of 0.4.1
<bknudson> fungi: "UnknownMethodCallError: Method called is not a member of the object: management_url" ?
<fungi> horizon will presumably need patching to work around that
<bknudson> Looks like the horizon test is trying to create a mock keystoneclient and creating the mock fails for some reason.
2014-01-13 14:42:38.747 | ======================================================================
2014-01-13 14:42:38.747 | FAIL: test_get_default_role (openstack_dashboard.test.api_tests.keystone_tests.RoleAPITests)
2014-01-13 14:42:38.748 | ----------------------------------------------------------------------
2014-01-13 14:42:38.748 | Traceback (most recent call last):
2014-01-13 14:42:38.748 | File "/home/jenkins/workspace/gate-horizon-python27/openstack_dashboard/test/api_tests/keystone_tests.py", line 77, in test_get_default_role
2014-01-13 14:42:38.748 | keystoneclient = self.stub_keystoneclient()
2014-01-13 14:42:38.748 | File "/home/jenkins/workspace/gate-horizon-python27/openstack_dashboard/test/helpers.py", line 306, in stub_keystoneclient
2014-01-13 14:42:38.748 | self.keystoneclient = self.mox.CreateMock(keystone_client.Client)
2014-01-13 14:42:38.748 | File "/home/jenkins/workspace/gate-horizon-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 258, in CreateMock
2014-01-13 14:42:38.748 | new_mock = MockObject(class_to_mock, attrs=attrs)
2014-01-13 14:42:38.748 | File "/home/jenkins/workspace/gate-horizon-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 556, in __init__
2014-01-13 14:42:38.749 | attr = getattr(class_to_mock, method)
2014-01-13 14:42:38.749 | File "/home/jenkins/workspace/gate-horizon-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 608, in __getattr__
2014-01-13 14:42:38.749 | raise UnknownMethodCallError(name)
2014-01-13 14:42:38.749 | UnknownMethodCallError: Method called is not a member of the object: management_url
2014-01-13 14:42:38.749 | >> raise UnknownMethodCallError('management_url')
2014-01-13 14:42:38.749 |
2014-01-13 14:42:38.749 |
2014-01-13 14:42:38.749 | ======================================================================
2014-01-13 14:42:38.749 | FAIL: Tests api.keystone.remove_tenant_user
2014-01-13 14:42:38.749 | ----------------------------------------------------------------------
2014-01-13 14:42:38.750 | Traceback (most recent call last):
2014-01-13 14:42:38.750 | File "/home/jenkins/workspace/gate-horizon-python27/openstack_dashboard/test/api_tests/keystone_tests.py", line 61, in test_remove_tenant_user
2014-01-13 14:42:38.750 | keystoneclient = self.stub_keystoneclient()
2014-01-13 14:42:38.750 | File "/home/jenkins/workspace/gate-horizon-python27/openstack_dashboard/test/helpers.py", line 306, in stub_keystoneclient
2014-01-13 14:42:38.750 | self.keystoneclient = self.mox.CreateMock(keystone_client.Client)
2014-01-13 14:42:38.750 | File "/home/jenkins/workspace/gate-horizon-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 258, in CreateMock
2014-01-13 14:42:38.750 | new_mock = MockObject(class_to_mock, attrs=attrs)
2014-01-13 14:42:38.750 | File "/home/jenkins/workspace/gate-horizon-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 556, in __init__
2014-01-13 14:42:38.750 | attr = getattr(class_to_mock, method)
2014-01-13 14:42:38.750 | File "/home/jenkins/workspace/gate-horizon-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 608, in __getattr__
2014-01-13 14:42:38.750 | raise UnknownMethodCallError(name)
2014-01-13 14:42:38.751 | UnknownMethodCallError: Method called is not a member of the object: management_url
2014-01-13 14:42:38.751 | >> raise UnknownMethodCallError('management_url')
Examples:
https://jenkins04.openstack.org/job/gate-horizon-python27/18/console
http://logs.openstack.org/35/59935/3/check/gate-horizon-python27/e995c33/console.html
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1268631/+subscriptions
References