Package org.jwall.web.audit.rules

Examples of org.jwall.web.audit.rules.AuditEventRule


  }

 
  @Test
  public void testRuleID() throws Exception {
    AuditEventRule rule = new AuditEventRule();
    rule.add( new ConditionEQ( "RULE_ID", "960015" ) );
    rule.add( new MockAction() );
    Assert.assertTrue( rule.matches( event, null ) );
  }
View Full Code Here


    File test = new File( "/Users/chris/audit/larry-bugs/rule-id-audit.log" );
    if( test.canRead() ){
      AuditEventReader reader = new ModSecurity2AuditReader( test );
      event = reader.readNext();
      log.info( "ScriptEvent is: {}", event.getEventId() );
      AuditEventRule rule = new AuditEventRule();
      rule.add( new ConditionEQ( "RULE_ID", "113" ) );
      rule.add( new MockAction() );
      Assert.assertTrue( rule.matches( event, null ) );
    }   
  }
View Full Code Here

TOP

Related Classes of org.jwall.web.audit.rules.AuditEventRule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.