fix for running nosetests locally on devstack

Change-Id: Icf6fa3352826fc6c3f826dfbdbacf10d60637037
This commit is contained in:
Alexey Weyl 2017-03-14 13:16:01 +00:00
parent 9e6188c8f7
commit 62a9fb54f0
2 changed files with 7 additions and 3 deletions
vitrage_tempest_tests/tests

@ -50,9 +50,10 @@ class TestTopology(BaseTopologyTest):
This test validate correctness of topology graph:
cli via api
"""
api_graph = self.vitrage_client.topology.get()
cli_graph = utils.run_vitrage_command('vitrage topology show',
self.conf)
api_graph = self.vitrage_client.topology.get(all_tenants=True)
cli_graph = utils.run_vitrage_command(
'vitrage topology show --all-tenants',
self.conf)
self._compare_graphs(api_graph, cli_graph)
@utils.tempest_logger

@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from functools import wraps
import socket
from oslo_config import cfg
@ -115,6 +117,7 @@ def uni2str(text):
def tempest_logger(func):
func_name = func.func_name
@wraps(func)
def func_name_print_func(*args, **kwargs):
LOG.info('Test Start: ' + func_name)
result = func(*args, **kwargs)