← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1196823] Re: New keystoneclient properties break testsuite

 

** Changed in: horizon
       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/1196823

Title:
  New keystoneclient properties break testsuite

Status in OpenStack Dashboard (Horizon):
  Fix Released
Status in OpenStack Dashboard (Horizon) grizzly series:
  Fix Committed

Bug description:
  keystoneclient.Client recently changed tenant_id and tenant_name to
  properties which mox is unable to mock automatically. Thus we have to
  manually fake them in the testsuite as we did before:

  ======================================================================
  FAIL: test_get_default_role
  (openstack_dashboard.test.api_tests.keystone_tests.RoleAPITests)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
  File "/var/lib/openstack-dashboard-test/openstack_dashboard/test/api_tests/keystone_tests.py", line 78, in test_get_default_role
  keystoneclient = self.stub_keystoneclient()
  File "/var/lib/openstack-dashboard-test/openstack_dashboard/test/helpers.py", line 289, in stub_keystoneclient
  self.keystoneclient = self.mox.CreateMock(keystone_client.Client)
  File "/usr/lib/python2.7/site-packages/mox.py", line 258, in CreateMock
  new_mock = MockObject(class_to_mock, attrs=attrs)
  File "/usr/lib/python2.7/site-packages/mox.py", line 556, in __init__
  attr = getattr(class_to_mock, method)
  File "/usr/lib/python2.7/site-packages/mox.py", line 608, in __getattr__
  raise UnknownMethodCallError(name)
  UnknownMethodCallError: Method called is not a member of the object: Method called is not a member of the object: tenant_id
  >> raise UnknownMethodCallError('tenant_id')

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