Override Mesos config in configuration tests
To ensure that the requests_mock will work everywhere, we have to override the host setting. TrivialFix Change-Id: Ia4c51c913b03f6926f83c8cb5616bb1e757fcd37
This commit is contained in:
parent
cacdf3fb28
commit
14edd878e9
|
@ -20,12 +20,14 @@ from kolla_mesos.tests import base
|
||||||
from kolla_mesos.tests.fakes import mesos as fake_mesos
|
from kolla_mesos.tests.fakes import mesos as fake_mesos
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
CONF.import_group('mesos', 'kolla_mesos.config.mesos')
|
||||||
|
|
||||||
|
|
||||||
class TestConfiguration(base.BaseTestCase):
|
class TestConfiguration(base.BaseTestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(TestConfiguration, self).setUp()
|
super(TestConfiguration, self).setUp()
|
||||||
|
CONF.set_override('host', 'http://127.0.0.1:5050', group='mesos')
|
||||||
self.client = fake_client.FakeClient()
|
self.client = fake_client.FakeClient()
|
||||||
self.client.start()
|
self.client.start()
|
||||||
self.addCleanup(self.client.stop)
|
self.addCleanup(self.client.stop)
|
||||||
|
|
Loading…
Reference in New Issue