Class CommandSecurityCheckerTest

java.lang.Object
org.machanism.machai.ai.tools.CommandSecurityCheckerTest

class CommandSecurityCheckerTest extends Object
  • Constructor Details

    • CommandSecurityCheckerTest

      CommandSecurityCheckerTest()
  • Method Details

    • denyCheck_whenCustomRulesDenyRegex_throwsDenyException

      @Test void denyCheck_whenCustomRulesDenyRegex_throwsDenyException() throws Exception
      Throws:
      Exception
    • denyCheck_whenCustomRulesDenyKeyword_caseInsensitive_throwsDenyException

      @Test void denyCheck_whenCustomRulesDenyKeyword_caseInsensitive_throwsDenyException() throws Exception
      Throws:
      Exception
    • denyCheck_whenNoRuleMatches_doesNotThrow

      @Test void denyCheck_whenNoRuleMatches_doesNotThrow() throws Exception
      Throws:
      Exception
    • constructor_whenConfiguratorOverridesRuleString_formatIsApplied

      @Test void constructor_whenConfiguratorOverridesRuleString_formatIsApplied() throws Exception
      Throws:
      Exception
    • denyException_constructor_setsMessage

      @Test void denyException_constructor_setsMessage()
    • denyCheck_whenDenylistResourceLoaded_doesNotBreakOnBenignCommand

      @Test void denyCheck_whenDenylistResourceLoaded_doesNotBreakOnBenignCommand() throws Exception
      Throws:
      Exception