From 9b12ae976ba2ff16d7577d2cb93c3609c8f38daf Mon Sep 17 00:00:00 2001 From: Daniel Bacher Date: Thu, 5 Nov 2020 13:04:11 +0100 Subject: [PATCH] add test case get_lldp_neighbors for sg300-10 --- .../SG300-10/expected_result.json | 14 ++++++++++++++ .../SG300-10/show_lldp_neighbors.txt | 10 ++++++++++ 2 files changed, 24 insertions(+) create mode 100644 test/unit/mocked_data/test_get_lldp_neighbors/SG300-10/expected_result.json create mode 100644 test/unit/mocked_data/test_get_lldp_neighbors/SG300-10/show_lldp_neighbors.txt diff --git a/test/unit/mocked_data/test_get_lldp_neighbors/SG300-10/expected_result.json b/test/unit/mocked_data/test_get_lldp_neighbors/SG300-10/expected_result.json new file mode 100644 index 0000000..707e144 --- /dev/null +++ b/test/unit/mocked_data/test_get_lldp_neighbors/SG300-10/expected_result.json @@ -0,0 +1,14 @@ +{ + "gi7": [ + { + "hostname": "switchcffeedd", + "port": "gi8" + } + ], + "gi8": [ + { + "hostname": "test-pc1", + "port": "en1" + } + ] +} diff --git a/test/unit/mocked_data/test_get_lldp_neighbors/SG300-10/show_lldp_neighbors.txt b/test/unit/mocked_data/test_get_lldp_neighbors/SG300-10/show_lldp_neighbors.txt new file mode 100644 index 0000000..355152c --- /dev/null +++ b/test/unit/mocked_data/test_get_lldp_neighbors/SG300-10/show_lldp_neighbors.txt @@ -0,0 +1,10 @@ + +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 +--------- ----------------- ------------- ----------------- ------------ ----- +gi7 00:a5:bf:ff:ee:dd gi8 switchcffeedd B, R 96 +gi8 f2:18:98:aa:bb:cc en1 test-pc1 B, W 118