From cf9356d642ce131c6562fcd281c01e51af888ec3 Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Tue, 23 Jul 2024 01:28:19 -0400 Subject: tests: update scapy to version 2.4.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Required for Ubuntu 24.04 LTS jobs - temporarily disable TestIpsecEsp1 and TestIpsecAhAll tests until a patch can be added to fix them Type: test Change-Id: I1ae7b170117182c3252629bbbb770775e2c496c9 Signed-off-by: BenoƮt Ganne Signed-off-by: Dave Wallace --- test/test_wireguard.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'test/test_wireguard.py') diff --git a/test/test_wireguard.py b/test/test_wireguard.py index e809daec163..481aa558312 100644 --- a/test/test_wireguard.py +++ b/test/test_wireguard.py @@ -261,7 +261,7 @@ class VppWgPeer(VppObject): def mk_cookie(self, p, tx_itf, is_resp=False, is_ip6=False): self.verify_header(p, is_ip6) - wg_pkt = Wireguard(p[Raw]) + wg_pkt = Wireguard(bytes(p[Raw])) if is_resp: self._test.assertEqual(wg_pkt[Wireguard].message_type, 2) @@ -310,7 +310,7 @@ class VppWgPeer(VppObject): def consume_cookie(self, p, is_ip6=False): self.verify_header(p, is_ip6) - cookie_reply = Wireguard(p[Raw]) + cookie_reply = Wireguard(bytes(p[Raw])) self._test.assertEqual(cookie_reply[Wireguard].message_type, 3) self._test.assertEqual(cookie_reply[Wireguard].reserved_zero, 0) @@ -390,7 +390,7 @@ class VppWgPeer(VppObject): self.noise_init(self.itf.public_key) self.verify_header(p, is_ip6) - init = Wireguard(p[Raw]) + init = Wireguard(bytes(p[Raw])) self._test.assertEqual(init[Wireguard].message_type, 1) self._test.assertEqual(init[Wireguard].reserved_zero, 0) @@ -438,9 +438,7 @@ class VppWgPeer(VppObject): def consume_response(self, p, is_ip6=False): self.verify_header(p, is_ip6) - - resp = Wireguard(p[Raw]) - + resp = Wireguard(bytes(p[Raw])) self._test.assertEqual(resp[Wireguard].message_type, 2) self._test.assertEqual(resp[Wireguard].reserved_zero, 0) self._test.assertEqual( @@ -456,7 +454,7 @@ class VppWgPeer(VppObject): def decrypt_transport(self, p, is_ip6=False): self.verify_header(p, is_ip6) - p = Wireguard(p[Raw]) + p = Wireguard(bytes(p[Raw])) self._test.assertEqual(p[Wireguard].message_type, 4) self._test.assertEqual(p[Wireguard].reserved_zero, 0) self._test.assertEqual( @@ -501,7 +499,7 @@ class VppWgPeer(VppObject): def is_handshake_init(p): - wg_p = Wireguard(p[Raw]) + wg_p = Wireguard(bytes(p[Raw])) return wg_p[Wireguard].message_type == 1 -- cgit 1.2.3-korg