diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-01-19 15:33:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-19 15:33:19 +0200 |
| commit | cd16c74b7761c4565878eaf325b0d10189b89106 (patch) | |
| tree | 37c94870d026583b3d621dedc213ccea6f9ca92f /tests/topotests/lib/pim.py | |
| parent | 69306c44e817694f6a8acf530725f84ec59d1a33 (diff) | |
| parent | 244f2df015cc492972a762ddace260ed8d251d10 (diff) | |
Merge pull request #12492 from kuldeepkash/update_assert_msg
tests: [topojson] Update assert/error messages
Diffstat (limited to 'tests/topotests/lib/pim.py')
| -rw-r--r-- | tests/topotests/lib/pim.py | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/tests/topotests/lib/pim.py b/tests/topotests/lib/pim.py index 7a57af7dbf..130a26eb68 100644 --- a/tests/topotests/lib/pim.py +++ b/tests/topotests/lib/pim.py @@ -1136,16 +1136,18 @@ def verify_upstream_iif( if group_addr_json[src_address]["joinState"] != "Joined": errormsg = ( "[DUT %s]: Verifying iif " - "(Inbound Interface) for (%s,%s) and" - " joinState :%s [FAILED]!! " - " Expected: %s, Found: %s" + "(Inbound Interface) and joinState " + "for (%s, %s), Expected iif: %s, " + "Found iif : %s, and Expected " + "joinState :%s , Found joinState: %s" % ( dut, src_address, grp_addr, - group_addr_json[src_address]["joinState"], in_interface, group_addr_json[src_address]["inboundInterface"], + joinState, + group_addr_json[src_address]["joinState"], ) ) return errormsg @@ -1153,16 +1155,18 @@ def verify_upstream_iif( elif group_addr_json[src_address]["joinState"] != joinState: errormsg = ( "[DUT %s]: Verifying iif " - "(Inbound Interface) for (%s,%s) and" - " joinState :%s [FAILED]!! " - " Expected: %s, Found: %s" + "(Inbound Interface) and joinState " + "for (%s, %s), Expected iif: %s, " + "Found iif : %s, and Expected " + "joinState :%s , Found joinState: %s" % ( dut, src_address, grp_addr, - group_addr_json[src_address]["joinState"], in_interface, group_addr_json[src_address]["inboundInterface"], + joinState, + group_addr_json[src_address]["joinState"], ) ) return errormsg @@ -1171,16 +1175,18 @@ def verify_upstream_iif( if group_addr_json[src_address]["regState"] != regState: errormsg = ( "[DUT %s]: Verifying iif " - "(Inbound Interface) for (%s,%s) and" - " rejstate :%s [FAILED]!! " - " Expected: %s, Found: %s" + "(Inbound Interface) and regState " + "for (%s, %s), Expected iif: %s, " + "Found iif : %s, and Expected " + "regState :%s , Found regState: %s" % ( dut, src_address, grp_addr, - group_addr_json[src_address]["regState"], in_interface, group_addr_json[src_address]["inboundInterface"], + regState, + group_addr_json[src_address]["regState"], ) ) return errormsg |
