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:
Michal Rostecki 2016-03-24 08:24:02 +01:00
parent cacdf3fb28
commit 14edd878e9
1 changed files with 2 additions and 0 deletions

View File

@ -20,12 +20,14 @@ from kolla_mesos.tests import base
from kolla_mesos.tests.fakes import mesos as fake_mesos
CONF = cfg.CONF
CONF.import_group('mesos', 'kolla_mesos.config.mesos')
class TestConfiguration(base.BaseTestCase):
def setUp(self):
super(TestConfiguration, self).setUp()
CONF.set_override('host', 'http://127.0.0.1:5050', group='mesos')
self.client = fake_client.FakeClient()
self.client.start()
self.addCleanup(self.client.stop)