[Test] Restrict host.os.type unit test to 8.3+ (#2615)

Co-authored-by: brokensound77 <brokensound77@users.noreply.github.com>
This commit is contained in:
Justin Ibarra
2023-03-05 10:01:43 -09:00
committed by GitHub
parent 59da2da474
commit 114d6e600d
+2
View File
@@ -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: