Skip to content
Snippets Groups Projects
  1. Jul 19, 2010
  2. Jul 09, 2010
  3. Mar 25, 2010
    • Mark Michelson's avatar
      Add unit test for testing ACL functionality. · 49e2cd42
      Mark Michelson authored
      There are two unit tests contained here.
      
      1. "Invalid ACL" This attempts to read a bunch of badly formatted ACL entries
      and add them to a host access rule. The goal of this test is to be sure that
      all invalid entries are rejected as they should be.
      
      2. "ACL" This sets up four ACLs. One is a permit all, one is a deny all, and
      the other two have specific rules about which subnets are allowed and which
      are not. Then a set of test addresses is used to determine whether we would
      allow those addresses to access us when each ACL is applied. This test, by the
      way, was what resulted in AST-2010-003's creation.
      
      Review: https://reviewboard.asterisk.org/r/532
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@254557 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      49e2cd42
Loading