summaryrefslogtreecommitdiffstats
path: root/test/functest/testcase_4.py
diff options
context:
space:
mode:
authorJose Lausuch <jose.lausuch@ericsson.com>2016-12-13 18:11:08 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-13 18:11:08 +0000
commit76d39e29232020e2fc7b4252185e301484ebca1d (patch)
tree7070900b0cc94c77a67bfd5a6e8cd91fd17dc7fd /test/functest/testcase_4.py
parent7c552712e38ac896ff08366f6862590d29659e33 (diff)
parent2417d16aa6767a4c1bb6f28104076bb4b11d5e10 (diff)
Merge "Encapsulate some functionality in Results class"
Diffstat (limited to 'test/functest/testcase_4.py')
-rw-r--r--test/functest/testcase_4.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/functest/testcase_4.py b/test/functest/testcase_4.py
index bb25cce..7485e84 100644
--- a/test/functest/testcase_4.py
+++ b/test/functest/testcase_4.py
@@ -135,8 +135,7 @@ def main():
vm_1_ip = vm_1.networks.itervalues().next()[0]
msg = ("Create VPN with eRT<>iRT")
- logger.info(msg)
- results.add_to_summary(1, msg)
+ results.record_action(msg)
vpn_name = "sdnvpn-" + str(randint(100000, 999999))
kwargs = {"import_targets": TESTCASE_CONFIG.targets1,
"export_targets": TESTCASE_CONFIG.targets2,
@@ -147,8 +146,7 @@ def main():
logger.debug("VPN created details: %s" % bgpvpn)
msg = ("Associate router '%s' to the VPN." % TESTCASE_CONFIG.router_1_name)
- logger.info(msg)
- results.add_to_summary(1, msg)
+ results.record_action(msg)
results.add_to_summary(0, "-")
os_utils.create_router_association(
@@ -174,9 +172,8 @@ def main():
expected="FAIL", timeout=30)
msg = ("Associate network '%s' to the VPN." % TESTCASE_CONFIG.net_2_name)
- logger.info(msg)
results.add_to_summary(0, "-")
- results.add_to_summary(1, msg)
+ results.record_action(msg)
results.add_to_summary(0, "-")
os_utils.create_network_association(
neutron_client, bgpvpn_id, network_2_id)
@@ -201,9 +198,8 @@ def main():
expected="FAIL", timeout=30)
msg = ("Update VPN with eRT=iRT ...")
- logger.info(msg)
results.add_to_summary(0, "-")
- results.add_to_summary(1, msg)
+ results.record_action(msg)
results.add_to_summary(0, "-")
kwargs = {"import_targets": TESTCASE_CONFIG.targets1,
"export_targets": TESTCASE_CONFIG.targets1,