Add logging fixture to integration tests
Change-Id: I55bffc4278fc92d4f8eff012acd75c1acb1eddeb
diff --git a/common/test.py b/common/test.py
index 2973964..6a237f2 100644
--- a/common/test.py
+++ b/common/test.py
@@ -10,6 +10,7 @@
# License for the specific language governing permissions and limitations
# under the License.
+import fixtures
import logging
import os
import random
@@ -28,6 +29,7 @@
from heat_integrationtests.common import remote_client
LOG = logging.getLogger(__name__)
+_LOG_FORMAT = "%(levelname)8s [%(name)s] %(message)s"
def call_until_true(func, duration, sleep_for):
@@ -81,6 +83,7 @@
self.compute_client = self.manager.compute_client
self.network_client = self.manager.network_client
self.volume_client = self.manager.volume_client
+ self.useFixture(fixtures.FakeLogger(format=_LOG_FORMAT))
def status_timeout(self, things, thing_id, expected_status,
error_status='ERROR',