Examples of AuditEventRule


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

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

    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
Copyright © 2018 www.massapi.com. 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.