← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1279907] Re: Latest keystoneclient breaks tests

 

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

** Changed in: heat/havana
     Assignee: (unassigned) => Steven Hardy (shardy)

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

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

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