pairing with luke, nagios_command provider skeleton
[vinpup.git] / spec / unit / ral / provider / nagios_command / naginator.rb
blob097ee09bddd2e18d196baec120446ef259c5faa7
1 require File.dirname(__FILE__) + '/../../../../spec_helper'
2 require 'puppet/provider/nagios_command/naginator'
4 describe Puppet::Type.type(:nagios_command).provider(:naginator) do
5     before do
6         @provider_class = Puppet::Type.type(:nagios_command).provider(:naginator)
7     end
8     
9     it 'should have a default target' do
10         @provider_class.default_target.should == '/etc/nagios/nagios_command.cfg'
11     end
13     it 'should add provider instances to target file whose ensure value is present'
14     
15     it 'should remove provider instances to target file whose ensure value is absent'
16     
17     it 'should do nothing to provider instances that are and should be present'
19     it 'should ignore provider instances that are and should be absent'
20     
21     it 'should move provider instances from one file to another if the current value is different from the desired value'
22     
24     it 'should change attrs of provider instances on file to match desired values'
26     it 'should add specified attrs of provider instances to file when missing from file'
27     
28     it 'should remove unspecified attrs of provider instances from file'
29     
30     it 'should be able to return a list of all provider instances from the default target'
31     
32     it 'should prefetch attr values from all targets of all given resources'
34     it 'should have a toplevel hook that writes all providers to disk'
35 end