diff options
| author | Sam Livingston-Gray <geeksam@gmail.com> | 2009-07-13 15:18:57 -0700 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-07-14 21:15:15 +1000 |
| commit | 65b01375cedd878818f433a2c09fc8128f912d36 (patch) | |
| tree | b82c2601a13cee70737d4ccc6b59fe1fc3e20a35 | |
| parent | 74f5ad457a95580e7cef20fa850afd98eabaa6ed (diff) | |
| download | puppet-65b01375cedd878818f433a2c09fc8128f912d36.tar.gz puppet-65b01375cedd878818f433a2c09fc8128f912d36.tar.xz puppet-65b01375cedd878818f433a2c09fc8128f912d36.zip | |
Adding test for current auth config warning.
This is a step in fixing bug #2410.
| -rwxr-xr-x | spec/unit/network/rest_authconfig.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/network/rest_authconfig.rb b/spec/unit/network/rest_authconfig.rb index 48ec0cd5e..e019a0b85 100755 --- a/spec/unit/network/rest_authconfig.rb +++ b/spec/unit/network/rest_authconfig.rb @@ -121,6 +121,11 @@ describe Puppet::Network::RestAuthConfig do end end + it "should warn" do + Puppet.expects(:warning).at_least_once + @authconfig.insert_default_acl + end + it "should create a last catch-all deny all rule" do @authconfig.stubs(:mk_acl) @acl.expects(:newright).with("/") |
