From 6af204ab3ee84bc50616dfaae18ae3d36879df7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20M=C3=A4rdian?= Date: Mon, 10 Jul 2023 12:46:29 +0200 Subject: [PATCH] tests:tunnels: make use of iface_json() iproute2 v6.4 changed its CLI output, the JSON output is expected to stay stable, so we should migrate to using iface_json() over time. https://bugs.debian.org/1040004 --- tests/integration/tunnels.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/integration/tunnels.py b/tests/integration/tunnels.py index 2c1b0c808..a915554f2 100644 --- a/tests/integration/tunnels.py +++ b/tests/integration/tunnels.py @@ -229,9 +229,13 @@ def test_tunnel_vxlan(self): ' l3miss ', ' ttl 64 ', ' ageing 100 ']) if self.backend == 'networkd': # checksums are not supported on the NetworkManager backend - self.assert_iface('vx0', [' udpcsum ', ' udp6zerocsumtx ', - ' udp6zerocsumrx ', ' remcsumtx ', - ' remcsumrx ']) + json = self.iface_json('vx0') + data = json.get('linkinfo', {}).get('info_data', {}) + self.assertTrue(data.get('udp_csum')) + self.assertTrue(data.get('udp_zero_csum6_tx')) + self.assertTrue(data.get('udp_zero_csum6_rx')) + self.assertTrue(data.get('remcsum_tx')) + self.assertTrue(data.get('remcsum_rx')) @unittest.skipIf("networkd" not in test_backends,