From 114d6e600da1eb42aa308084d385cecb102305ff Mon Sep 17 00:00:00 2001 From: Justin Ibarra <16747370+brokensound77@users.noreply.github.com> Date: Sun, 5 Mar 2023 10:01:43 -0900 Subject: [PATCH] [Test] Restrict host.os.type unit test to 8.3+ (#2615) Co-authored-by: brokensound77 --- tests/test_all_rules.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_all_rules.py b/tests/test_all_rules.py index 995d8cc74..5d3c9e60c 100644 --- a/tests/test_all_rules.py +++ b/tests/test_all_rules.py @@ -820,6 +820,8 @@ class TestOsqueryPluginNote(BaseRuleTest): class TestEndpointQuery(BaseRuleTest): """Test endpoint-specific rules.""" + @unittest.skipIf(PACKAGE_STACK_VERSION < Version.parse("8.3.0"), + "Test only applicable to 8.3+ stacks since query updates are min_stacked at 8.3.0") def test_os_and_platform_in_query(self): """Test that all endpoint rules have an os defined and linux includes platform.""" for rule in self.production_rules: