← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1279907] Re: Latest keystoneclient breaks tests

 

** Also affects: horizon/havana
   Importance: Undecided
       Status: New

** Also affects: horizon/grizzly
   Importance: Undecided
       Status: New

** Changed in: horizon/grizzly
   Importance: Undecided => Critical

** Changed in: horizon/havana
   Importance: Undecided => Critical

** Tags removed: grizzly-backport-potential havana-backport-potential

** Changed in: horizon/grizzly
       Status: New => In Progress

** Changed in: horizon/havana
       Status: New => In Progress

-- 
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/1279907

Title:
  Latest keystoneclient breaks tests

Status in Orchestration API (Heat):
  Fix Committed
Status in heat havana series:
  In Progress
Status in OpenStack Dashboard (Horizon):
  Fix Committed
Status in OpenStack Dashboard (Horizon) grizzly series:
  In Progress
Status in OpenStack Dashboard (Horizon) havana series:
  In Progress

Bug description:
  The new release of keystoneclient (0.6.0) introduces some new
  metaclass magic which breaks our mocking in master :(

  We probably need to modify the test to use mock instead of mox, as the
  issue seems to be that mox misinterprets the class type due to the
  metaclass.

  Immediate workaround while we workout the solution is probably to
  temporarily cap keystoneclient to 0.5.1 which did not have this issue.

  Traceback (most recent call last):
    File "/home/shardy/git/heat/heat/tests/test_heatclient.py", line 449, in test_trust_init
      self._stubs_v3(method='trust')
    File "/home/shardy/git/heat/heat/tests/test_heatclient.py", line 83, in _stubs_v3
      self.m.StubOutClassWithMocks(kc_v3, "Client")
    File "/usr/lib/python2.7/site-packages/mox.py", line 366, in StubOutClassWithMocks
      raise TypeError('Given attr is not a Class.  Use StubOutWithMock.')
  TypeError: Given attr is not a Class.  Use StubOutWithMock.

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