Package org.machanism.machai.ai.tools
Class CommandSecurityCheckerTest
java.lang.Object
org.machanism.machai.ai.tools.CommandSecurityCheckerTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void
-
Constructor Details
-
CommandSecurityCheckerTest
CommandSecurityCheckerTest()
-
-
Method Details
-
denyCheck_whenCustomRulesDenyRegex_throwsDenyException
- Throws:
Exception
-
denyCheck_whenCustomRulesDenyKeyword_caseInsensitive_throwsDenyException
@Test void denyCheck_whenCustomRulesDenyKeyword_caseInsensitive_throwsDenyException() throws Exception- Throws:
Exception
-
denyCheck_whenNoRuleMatches_doesNotThrow
- Throws:
Exception
-
constructor_whenConfiguratorOverridesRuleString_formatIsApplied
- Throws:
Exception
-
denyException_constructor_setsMessage
@Test void denyException_constructor_setsMessage() -
denyCheck_whenDenylistResourceLoaded_doesNotBreakOnBenignCommand
- Throws:
Exception
-