From daeb208fe73ab512af3cea1f7549d31b444a00b7 Mon Sep 17 00:00:00 2001 From: Daniel Bacher Date: Mon, 9 Nov 2020 15:40:47 +0100 Subject: [PATCH] add test case get_lldp_neighbors for SG500-28-K9 see #38 --- .../SG500-28-K9/expected_result.json | 14 ++++++++++++++ .../SG500-28-K9/show_lldp_neighbors.txt | 13 +++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 test/unit/mocked_data/test_get_lldp_neighbors/SG500-28-K9/expected_result.json create mode 100644 test/unit/mocked_data/test_get_lldp_neighbors/SG500-28-K9/show_lldp_neighbors.txt diff --git a/test/unit/mocked_data/test_get_lldp_neighbors/SG500-28-K9/expected_result.json b/test/unit/mocked_data/test_get_lldp_neighbors/SG500-28-K9/expected_result.json new file mode 100644 index 0000000..b64c80f --- /dev/null +++ b/test/unit/mocked_data/test_get_lldp_neighbors/SG500-28-K9/expected_result.json @@ -0,0 +1,14 @@ +{ + "gi1/1/3" : [ { + "hostname" : "pc123.clients.test.net", + "port" : "00:23:24:02:66:e4" + } ], + "gi1/1/14" : [ { + "hostname" : "", + "port" : "dc:4a:3e:53:fd:af" + } ], + "gi1/1/26" : [ { + "hostname" : "", + "port" : "ge.1.1" + } ] +} diff --git a/test/unit/mocked_data/test_get_lldp_neighbors/SG500-28-K9/show_lldp_neighbors.txt b/test/unit/mocked_data/test_get_lldp_neighbors/SG500-28-K9/show_lldp_neighbors.txt new file mode 100644 index 0000000..69e33a0 --- /dev/null +++ b/test/unit/mocked_data/test_get_lldp_neighbors/SG500-28-K9/show_lldp_neighbors.txt @@ -0,0 +1,13 @@ + +System capability legend: +B - Bridge; R - Router; W - Wlan Access Point; T - telephone; +D - DOCSIS Cable Device; H - Host; r - Repeater; +TP - Two Ports MAC Relay; S - S-VLAN; C - C-VLAN; O - Other + + Port Device ID Port ID System Name Capabilities TTL +--------- ----------------- ------------- ----------------- ------------ ----- +gi1/1/3 00:23:24:02:66:e4 00:23:24:02:6 pc123.cli H 118 + 6:e4 ents.test.net +gi1/1/14 dc:4a:3e:53:fd:af dc:4a:3e:53:f O 3255 + d:af +gi1/1/26 d8:84:66:ab:ba:cd ge.1.1 O 114