fix for running nosetests locally on devstack
Change-Id: Icf6fa3352826fc6c3f826dfbdbacf10d60637037
This commit is contained in:
parent
9e6188c8f7
commit
62a9fb54f0
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user