From 14edd878e9f0d9fb7e7f5e5e6d5fba57500ec3bf Mon Sep 17 00:00:00 2001 From: Michal Rostecki Date: Thu, 24 Mar 2016 08:24:02 +0100 Subject: [PATCH] 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 --- kolla_mesos/tests/test_configuration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kolla_mesos/tests/test_configuration.py b/kolla_mesos/tests/test_configuration.py index fcf90823..dc7f58df 100644 --- a/kolla_mesos/tests/test_configuration.py +++ b/kolla_mesos/tests/test_configuration.py @@ -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)