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
diff --git a/test/test_ipsec_tun_if_esp.py b/test/test_ipsec_tun_if_esp.py
index a7f91b9..a17e432 100644
--- a/test/test_ipsec_tun_if_esp.py
+++ b/test/test_ipsec_tun_if_esp.py
@@ -41,6 +41,7 @@
 from vpp_papi_provider import CliFailedCommandError
 from vpp_acl import AclRule, VppAcl, VppAclInterface
 from vpp_policer import PolicerAction, VppPolicer, Dir
+from config import config
 
 
 def config_tun_params(p, encryption_type, tun_if, src=None, dst=None):
@@ -1309,6 +1310,9 @@
             self.assertEqual(p.tun_if.get_tx_stats(), 127)
 
 
+@unittest.skipIf(
+    "gre" in config.excluded_plugins, "Exclude tests depending on GRE plugin"
+)
 class TestIpsecGreTebIfEsp(TemplateIpsec, IpsecTun4Tests):
     """Ipsec GRE TEB ESP - TUN tests"""
 
@@ -1433,6 +1437,9 @@
         super(TestIpsecGreTebIfEsp, self).tearDown()
 
 
+@unittest.skipIf(
+    "gre" in config.excluded_plugins, "Exclude tests depending on GRE plugin"
+)
 class TestIpsecGreTebVlanIfEsp(TemplateIpsec, IpsecTun4Tests):
     """Ipsec GRE TEB ESP - TUN tests"""
 
@@ -1568,6 +1575,9 @@
         self.pg1_11.remove_vpp_config()
 
 
+@unittest.skipIf(
+    "gre" in config.excluded_plugins, "Exclude tests depending on GRE plugin"
+)
 class TestIpsecGreTebIfEspTra(TemplateIpsec, IpsecTun4Tests):
     """Ipsec GRE TEB ESP - Tra tests"""
 
@@ -1686,6 +1696,9 @@
         super(TestIpsecGreTebIfEspTra, self).tearDown()
 
 
+@unittest.skipIf(
+    "gre" in config.excluded_plugins, "Exclude tests depending on GRE plugin"
+)
 class TestIpsecGreTebUdpIfEspTra(TemplateIpsec, IpsecTun4Tests):
     """Ipsec GRE TEB UDP ESP - Tra tests"""
 
@@ -1819,6 +1832,9 @@
         super(TestIpsecGreTebUdpIfEspTra, self).tearDown()
 
 
+@unittest.skipIf(
+    "gre" in config.excluded_plugins, "Exclude tests depending on GRE plugin"
+)
 class TestIpsecGreIfEsp(TemplateIpsec, IpsecTun4Tests):
     """Ipsec GRE ESP - TUN tests"""
 
@@ -1931,6 +1947,9 @@
         super(TestIpsecGreIfEsp, self).tearDown()
 
 
+@unittest.skipIf(
+    "gre" in config.excluded_plugins, "Exclude tests depending on GRE plugin"
+)
 class TestIpsecGreIfEspTra(TemplateIpsec, IpsecTun4Tests):
     """Ipsec GRE ESP - TRA tests"""
 
@@ -2060,6 +2079,9 @@
         self.assertEqual(err, 1)
 
 
+@unittest.skipIf(
+    "gre" in config.excluded_plugins, "Exclude tests depending on GRE plugin"
+)
 class TestIpsecGre6IfEspTra(TemplateIpsec, IpsecTun6Tests):
     """Ipsec GRE ESP - TRA tests"""
 
@@ -2174,6 +2196,9 @@
         super(TestIpsecGre6IfEspTra, self).tearDown()
 
 
+@unittest.skipIf(
+    "gre" in config.excluded_plugins, "Exclude tests depending on GRE plugin"
+)
 class TestIpsecMGreIfEspTra4(TemplateIpsec, IpsecTun4):
     """Ipsec mGRE ESP v4 TRA tests"""
 
@@ -2329,6 +2354,9 @@
             self.verify_tun_44(p, count=N_PKTS)
 
 
+@unittest.skipIf(
+    "gre" in config.excluded_plugins, "Exclude tests depending on GRE plugin"
+)
 class TestIpsecMGreIfEspTra6(TemplateIpsec, IpsecTun6):
     """Ipsec mGRE ESP v6 TRA tests"""
 
@@ -2591,6 +2619,9 @@
 
 
 @tag_fixme_vpp_workers
+@unittest.skipIf(
+    "acl" in config.excluded_plugins, "Exclude tests depending on ACL plugin"
+)
 class TestIpsec4TunProtectTun(TemplateIpsec, TemplateIpsec4TunProtect, IpsecTun4):
     """IPsec IPv4 Tunnel protect - tunnel mode"""
 
@@ -3607,6 +3638,9 @@
     """IPsec Interface IPv6 with TFC"""
 
 
+@unittest.skipIf(
+    "acl" in config.excluded_plugins, "Exclude tests depending on ACL plugin"
+)
 class TestIpsecMIfEsp4(TemplateIpsec, IpsecTun4):
     """Ipsec P2MP ESP v4 tests"""