Update error messages in sanity tests
Update error messages throughout sanity tests
to use the same (or similar) format of error message.
Change-Id: I4db0517a5b264151ddaa6ea2c2a04d37e139944e
Related-PROD: #PROD-32415
diff --git a/test_set/cvp-sanity/tests/test_mtu.py b/test_set/cvp-sanity/tests/test_mtu.py
index 8dc4a79..7af3303 100644
--- a/test_set/cvp-sanity/tests/test_mtu.py
+++ b/test_set/cvp-sanity/tests/test_mtu.py
@@ -12,9 +12,10 @@
skipped_ifaces = config.get(testname)["skipped_ifaces"] or \
["bonding_masters", "lo", "veth", "tap", "cali", "qv", "qb", "br-int",
"vxlan", "virbr0", "virbr0-nic", "docker0", "o-hm0"]
+ group, nodes = nodes_in_group
total = {}
network_info = local_salt_client.cmd(
- tgt="L@"+','.join(nodes_in_group),
+ tgt="L@"+','.join(nodes),
param='ls /sys/class/net/',
expr_form='compound')
@@ -75,6 +76,7 @@
row.sort()
row.insert(0, interf)
mtu_data.append(row)
- assert len(mtu_data) == 0, \
- "Several problems found: {0}".format(
- json.dumps(mtu_data, indent=4))
\ No newline at end of file
+ assert len(mtu_data) == 0, (
+ "Non-uniform MTUs are set on the same node interfaces of '{}' group "
+ "of nodes: {}".format(group, json.dumps(mtu_data, indent=4))
+ )
\ No newline at end of file