spec/integration/defaults_spec.rb in puppet-2.6.11 vs spec/integration/defaults_spec.rb in puppet-2.6.12
- old
+ new
@@ -43,9 +43,20 @@
Puppet.settings[:node_name_fact] = "some_fact"
end.should_not raise_error
end
end
+ describe "when :certdnsnames is set" do
+ it "should not fail" do
+ expect { Puppet[:certdnsnames] = 'fred:wilma' }.should_not raise_error
+ end
+
+ it "should warn the value is ignored" do
+ Puppet.expects(:warning).with {|msg| msg =~ /CVE-2011-3872/ }
+ Puppet[:certdnsnames] = 'fred:wilma'
+ end
+ end
+
describe "when configuring the :crl" do
it "should warn if :cacrl is set to false" do
Puppet.expects(:warning)
Puppet.settings[:cacrl] = 'false'
end