From: Vincent Bernat Date: Sun, 15 Oct 2023 18:08:23 +0000 (+0200) Subject: tests/integration: also remove 802.3bt test X-Git-Tag: 1.0.18~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d18520ece5d4937ad398bd0a5f40331059ab456;p=thirdparty%2Flldpd.git tests/integration: also remove 802.3bt test --- diff --git a/tests/integration/data/8023bt.pcap b/tests/integration/data/8023bt.pcap deleted file mode 100644 index 932b593f..00000000 Binary files a/tests/integration/data/8023bt.pcap and /dev/null differ diff --git a/tests/integration/test_pcap.py b/tests/integration/test_pcap.py index 5dfe7207..3a61cea4 100644 --- a/tests/integration/test_pcap.py +++ b/tests/integration/test_pcap.py @@ -50,46 +50,6 @@ def test_cisco_sg200(request, lldpd1, lldpcli, namespaces): assert out == expected -@pytest.mark.skipif("'Dot3' not in config.lldpd.features", readon="Dot3 not supported") -def test_8023bt(lldpd1, lldpcli, namespaces): - with namespaces(2): - pytest.helpers.send_pcap("data/8023bt.pcap", "eth1") - with namespaces(1): - out = lldpcli("-f", "keyvalue", "show", "neighbors", "details") - for k in list(out.keys()): - if not k.startswith("lldp.eth0.port.power."): - del out[k] - assert out == { - "lldp.eth0.port.power.supported": "yes", - "lldp.eth0.port.power.enabled": "yes", - "lldp.eth0.port.power.paircontrol": "yes", - "lldp.eth0.port.power.device-type": "PSE", - "lldp.eth0.port.power.pairs": "signal", - "lldp.eth0.port.power.class": "class 4", - "lldp.eth0.port.power.power-type": "2", - "lldp.eth0.port.power.source": "PSE", - "lldp.eth0.port.power.priority": "low", - "lldp.eth0.port.power.requested": "71000", - "lldp.eth0.port.power.allocated": "51000", - "lldp.eth0.port.power.requested-a": "35500", - "lldp.eth0.port.power.requested-b": "35500", - "lldp.eth0.port.power.allocated-a": "25500", - "lldp.eth0.port.power.allocated-b": "25500", - "lldp.eth0.port.power.pse-powering-status": "4-pair powering single-signature PD", - "lldp.eth0.port.power.pd-powering-status": "Unknown", - "lldp.eth0.port.power.power-pairs-ext": "Both alternatives", - "lldp.eth0.port.power.power-class-ext-a": "Class 4", - "lldp.eth0.port.power.power-class-ext-b": "Class 4", - "lldp.eth0.port.power.power-class-ext": "Dual-signature PD", - "lldp.eth0.port.power.power-type-ext": "Type 3 PSE", - "lldp.eth0.port.power.pd-load": ( - "PD is single- or dual-signature and power " - "is not electrically isolated" - ), - "lldp.eth0.port.power.max-power": "51000", - } - - @pytest.mark.skipif( "'LLDP-MED' not in config.lldpd.features", readon="LLDP-MED not supported" )