Changeset 49b8645cf26c988d8416168333196b86d7a99204

Show
Ignore:
Timestamp:
07/19/10 21:36:09 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1279575369 +0000
git-parent:

[68a5668794386efc593e280d7111deca068caa5d]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1279575369 +0000
Message:

filtersets are required

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • test/t/103_simple_noit.t

    rc35ae3a r49b8645  
    1717@r = $c->put("/checks/set/f7cea020-f19d-11dd-85a6-cb6d3a2207dc", 
    1818        qq{<?xml version="1.0" encoding="utf8"?> 
    19 <check><attributes><target>127.0.0.1</target><period>5000</period><timeout>1000</timeout><name>selfcheck</name><filterset/><module>selfcheck</module></attributes><config/></check>}); 
     19<check><attributes><target>127.0.0.1</target><period>5000</period><timeout>1000</timeout><name>selfcheck</name><filterset>allowall</filterset><module>selfcheck</module></attributes><config/></check>}); 
    2020 
    2121is($r[0], 200, 'add selfcheck'); 
  • test/t/107_rest_perms.t

    r64c8a57 r49b8645  
    2525@r = $c->put("/checks/set/f7cea020-f19d-11dd-85a6-cb6d3a2207dc", 
    2626        qq{<?xml version="1.0" encoding="utf8"?> 
    27 <check><attributes><target>127.0.0.1</target><period>5000</period><timeout>1000</timeout><name>selfcheck</name><filterset/><module>selfcheck</module></attributes><config/></check>}); 
     27<check><attributes><target>127.0.0.1</target><period>5000</period><timeout>1000</timeout><name>selfcheck</name><filterset>allowall</filerset><module>selfcheck</module></attributes><config/></check>}); 
    2828 
    2929is($r[0], 403, 'add selfcheck'); 
  • test/t/testconfig.pm

    r3739c78 r49b8645  
    2020             $MODULES_DIR $LUA_DIR $all_noit_modules $all_stratcon_modules); 
    2121 
     22our $default_filterset = { 
     23  allowall => [ { type => "allow" } ], 
     24}; 
    2225our $all_noit_modules = { 
    2326  'selfcheck' => { 'image' => 'selfcheck' }, 
     
    249252  $options->{cwd} ||= cwd(); 
    250253  $options->{modules} = $all_noit_modules unless exists($options->{modules}); 
     254  $options->{filtersets} = $default_filterset unless exists($options->{filtersets}); 
    251255  $options->{rest_acls} ||= [ { type => 'deny', rules => [ { type => 'allow' } ] } ]; 
    252256  my $cwd = $options->{cwd};