diff options
author | Dmitry Valter <d-valter@yandex-team.com> | 2024-03-11 10:38:46 +0000 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2024-07-12 15:43:24 +0000 |
commit | 34fa0ce8f70a341df432b0baa3deaa1e87c71b95 (patch) | |
tree | e9a282b8376dd6aa7fd904238768f77df137b35a /test/test_srv6_mobile.py | |
parent | 7b7bc045f83d0094aa927bfd44d1ac157005a34c (diff) |
tests: skip more excluded plugin tests
Check and skip VPP_EXCLUDED_PLUGINS tests for most of plugins.
Type: improvement
Signed-off-by: Dmitry Valter <d-valter@yandex-team.com>
Change-Id: I23fd3666729251c639aa8da72a676058e3f5bb4e
Diffstat (limited to 'test/test_srv6_mobile.py')
-rw-r--r-- | test/test_srv6_mobile.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_srv6_mobile.py b/test/test_srv6_mobile.py index 314dfc114e2..7a96e84e34f 100644 --- a/test/test_srv6_mobile.py +++ b/test/test_srv6_mobile.py @@ -4,6 +4,7 @@ from framework import VppTestCase from ipaddress import IPv4Address from ipaddress import IPv6Address from vpp_ip_route import VppIpRoute, VppRoutePath, FibPathProto, VppIpTable +from config import config from vpp_srv6_mobile import ( SRv6MobileNhtype, @@ -14,7 +15,12 @@ from vpp_srv6_mobile import ( from scapy.contrib.gtp import * from scapy.all import * +import unittest + +@unittest.skipIf( + "srv6-mobile" in config.excluded_plugins, "Exclude srv6-mobile plugin tests" +) class TestSRv6EndMGTP4E(VppTestCase): """SRv6 End.M.GTP4.E (SRv6 -> GTP-U)""" @@ -108,6 +114,9 @@ class TestSRv6EndMGTP4E(VppTestCase): self.assertEqual(pkt[GTP_U_Header].teid, 0xBBBBBBBB) +@unittest.skipIf( + "srv6-mobile" in config.excluded_plugins, "Exclude srv6-mobile plugin tests" +) class TestSRv6TMGTP4D(VppTestCase): """SRv6 T.M.GTP4.D (GTP-U -> SRv6)""" @@ -215,6 +224,9 @@ class TestSRv6TMGTP4D(VppTestCase): ) +@unittest.skipIf( + "srv6-mobile" in config.excluded_plugins, "Exclude srv6-mobile plugin tests" +) class TestSRv6EndMGTP6E(VppTestCase): """SRv6 End.M.GTP6.E""" @@ -306,6 +318,9 @@ class TestSRv6EndMGTP6E(VppTestCase): self.assertEqual(pkt[GTP_U_Header].teid, 0xBBBBBBBB) +@unittest.skipIf( + "srv6-mobile" in config.excluded_plugins, "Exclude srv6-mobile plugin tests" +) class TestSRv6EndMGTP6D(VppTestCase): """SRv6 End.M.GTP6.D""" |