Created
October 18, 2012 09:46
-
-
Save raphink/3910781 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rpinson@wrk4:~/dev/augeasproviders$ rspec spec/unit/puppet/nrpe_command_spec.rb | |
WARNING: SimpleCov is activated, but you're not running Ruby 1.9+ - no coverage analysis will happen | |
WARNING: SimpleCov is activated, but you're not running Ruby 1.9+ - no coverage analysis will happen | |
FFFFF | |
Failures: | |
1) Puppet::Type::Nrpe_command::ProviderAugeas with empty file should create new entry | |
Failure/Error: apply!(Puppet::Type.type(:nrpe_command).new( | |
Puppet::Error: | |
Invalid parameter value | |
# ./spec/unit/puppet/nrpe_command_spec.rb:13:in `new' | |
# ./spec/unit/puppet/nrpe_command_spec.rb:13 | |
2) Puppet::Type::Nrpe_command::ProviderAugeas with full file should list instances | |
Failure/Error: inst[4].should == {:name=>"check_total_procs", :ensure=>:present, :value=>"/usr/lib/nagios/plugins/check_procs -w 150 -c 200" } | |
expected: {:value=>"/usr/lib/nagios/plugins/check_procs -w 150 -c 200", :ensure=>:present, :name=>"check_total_procs"} | |
got: {:value=>"/usr/lib/nagios/plugins/check_procs -w 150 -c 200 ", :ensure=>:present, :name=>"check_total_procs"} (using ==) | |
Diff: | |
@@ -1,4 +1,4 @@ | |
:ensure => :present, | |
:name => "check_total_procs", | |
-:value => "/usr/lib/nagios/plugins/check_procs -w 150 -c 200" | |
+:value => "/usr/lib/nagios/plugins/check_procs -w 150 -c 200 " | |
# ./spec/unit/puppet/nrpe_command_spec.rb:46 | |
3) Puppet::Type::Nrpe_command::ProviderAugeas with full file should delete entries | |
Failure/Error: )) | |
expected: [] | |
got: [#<Puppet::Util::Log:0x7f36b8837818 @time=Thu Oct 18 11:46:21 +0200 2012, @message="change from present to absent failed: Could not set 'absent on ensure: /augeas/files/tmp/target20121018-11110-1082kis-0/error/path = /files/tmp/target20121018-11110-1082kis-0/command\n/augeas/files/tmp/target20121018-11110-1082kis-0/error/lens = /usr/share/augeas/lenses/dist/nrpe.aug:31.6-33.46:\n/augeas/files/tmp/target20121018-11110-1082kis-0/error/message = Failed to match \n { /[^]\\001-\\004\\n\\/]+/ = /[^\\001-\\004\\n]+/ }\n with tree\n ", @source="/Nrpe_command[check_test]/ensure", @level=:err, @tags=["err", "nrpe_command", "check_test"]>] (using ==) | |
Diff: | |
@@ -1,2 +1,8 @@ | |
-[] | |
+[#<Puppet::Util::Log:0x7f36b8837818 | |
+ @level=:err, | |
+ @message= | |
+ "change from present to absent failed: Could not set 'absent on ensure: /augeas/files/tmp/target20121018-11110-1082kis-0/error/path = /files/tmp/target20121018-11110-1082kis-0/command\n/augeas/files/tmp/target20121018-11110-1082kis-0/error/lens = /usr/share/augeas/lenses/dist/nrpe.aug:31.6-33.46:\n/augeas/files/tmp/target20121018-11110-1082kis-0/error/message = Failed to match \n { /[^]\\001-\\004\\n\\/]+/ = /[^\\001-\\004\\n]+/ }\n with tree\n ", | |
+ @source="/Nrpe_command[check_test]/ensure", | |
+ @tags=["err", "nrpe_command", "check_test"], | |
+ @time=Thu Oct 18 11:46:21 +0200 2012>] | |
# ./spec/lib/augeas_spec/fixtures.rb:28:in `apply!' | |
# ./spec/unit/puppet/nrpe_command_spec.rb:56 | |
4) Puppet::Type::Nrpe_command::ProviderAugeas with full file should update value | |
Failure/Error: apply!(Puppet::Type.type(:nrpe_command).new( | |
Puppet::Error: | |
Invalid parameter value | |
# ./spec/unit/puppet/nrpe_command_spec.rb:64:in `new' | |
# ./spec/unit/puppet/nrpe_command_spec.rb:64 | |
5) Puppet::Type::Nrpe_command::ProviderAugeas with broken file should fail to load | |
Failure/Error: txn = apply(Puppet::Type.type(:nrpe_command).new( | |
Puppet::Error: | |
Invalid parameter value | |
# ./spec/unit/puppet/nrpe_command_spec.rb:82:in `new' | |
# ./spec/unit/puppet/nrpe_command_spec.rb:82 | |
Finished in 0.03268 seconds | |
5 examples, 5 failures | |
Failed examples: | |
rspec ./spec/unit/puppet/nrpe_command_spec.rb:12 # Puppet::Type::Nrpe_command::ProviderAugeas with empty file should create new entry | |
rspec ./spec/unit/puppet/nrpe_command_spec.rb:31 # Puppet::Type::Nrpe_command::ProviderAugeas with full file should list instances | |
rspec ./spec/unit/puppet/nrpe_command_spec.rb:50 # Puppet::Type::Nrpe_command::ProviderAugeas with full file should delete entries | |
rspec ./spec/unit/puppet/nrpe_command_spec.rb:63 # Puppet::Type::Nrpe_command::ProviderAugeas with full file should update value | |
rspec ./spec/unit/puppet/nrpe_command_spec.rb:81 # Puppet::Type::Nrpe_command::ProviderAugeas with broken file should fail to load |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment