From 65b01375cedd878818f433a2c09fc8128f912d36 Mon Sep 17 00:00:00 2001 From: Sam Livingston-Gray Date: Mon, 13 Jul 2009 15:18:57 -0700 Subject: Adding test for current auth config warning. This is a step in fixing bug #2410. --- spec/unit/network/rest_authconfig.rb | 5 +++++ 1 file changed, 5 insertions(+) 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("/") -- cgit