Add logging fixture to integration tests
Change-Id: I55bffc4278fc92d4f8eff012acd75c1acb1eddeb
This commit is contained in:
parent
250035317a
commit
66e3fc8056
@ -10,6 +10,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import fixtures
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
@ -28,6 +29,7 @@ from heat_integrationtests.common import exceptions
|
|||||||
from heat_integrationtests.common import remote_client
|
from heat_integrationtests.common import remote_client
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
_LOG_FORMAT = "%(levelname)8s [%(name)s] %(message)s"
|
||||||
|
|
||||||
|
|
||||||
def call_until_true(func, duration, sleep_for):
|
def call_until_true(func, duration, sleep_for):
|
||||||
@ -81,6 +83,7 @@ class HeatIntegrationTest(testtools.TestCase):
|
|||||||
self.compute_client = self.manager.compute_client
|
self.compute_client = self.manager.compute_client
|
||||||
self.network_client = self.manager.network_client
|
self.network_client = self.manager.network_client
|
||||||
self.volume_client = self.manager.volume_client
|
self.volume_client = self.manager.volume_client
|
||||||
|
self.useFixture(fixtures.FakeLogger(format=_LOG_FORMAT))
|
||||||
|
|
||||||
def status_timeout(self, things, thing_id, expected_status,
|
def status_timeout(self, things, thing_id, expected_status,
|
||||||
error_status='ERROR',
|
error_status='ERROR',
|
||||||
|
Loading…
Reference in New Issue
Block a user