Fix senlin fake client creation
The new openstacksdk mechanism forces a keystone request to find info about endpoints. We don't need this for fake client, so skip the __init__ of the class. Change-Id: I5b0d89ac57c14f982a6afa638f088d365e0e4ab8
This commit is contained in:
parent
c39842b849
commit
ec3d14112c
@ -823,8 +823,9 @@ class SenlinAction(base.OpenStackAction):
|
||||
|
||||
@classmethod
|
||||
def _get_fake_client(cls):
|
||||
sess = keystone_utils.get_admin_session()
|
||||
return cls._get_client_class()(authenticator=sess.auth)
|
||||
# Senlin client changed interface a bit, let's skip __init__ altogether
|
||||
class_ = cls._get_client_class()
|
||||
return class_.__new__(class_)
|
||||
|
||||
|
||||
class AodhAction(base.OpenStackAction):
|
||||
|
@ -14,7 +14,6 @@ import contextlib
|
||||
import os
|
||||
|
||||
from oslo_config import cfg
|
||||
import testtools
|
||||
|
||||
import mock
|
||||
|
||||
@ -86,7 +85,6 @@ class GeneratorTest(base.BaseTest):
|
||||
self.baremetal_patch.start()
|
||||
self.addCleanup(self.baremetal_patch.stop)
|
||||
|
||||
@testtools.skip("Finish https://review.openstack.org/#/c/614211")
|
||||
def test_generator(self):
|
||||
for generator_cls in generator_factory.all_generators():
|
||||
action_classes = generator_cls.create_actions()
|
||||
|
Loading…
Reference in New Issue
Block a user