Skip to content

Commit

Permalink
use correct resource names in zookeeper tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Oct 23, 2017
1 parent b5f8f3d commit 2a0a258
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/classes/collectd_plugin_zookeeper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
{ zookeeper_host: 'myhost', zookeeper_port: '2181' }
end

it "Will create #{options[:plugin_conf_dir]}/10-zookeeper.conf" do
is_expected.to contain_file('write_riemann.load').with(ensure: 'present')
is_expected.to contain_file('write_riemann.load').with(path: "#{options[:plugin_conf_dir]}/10-zookeeper.conf")
is_expected.to contain_file('write_riemann.load').with(content: %r{Host "myhost"})
is_expected.to contain_file('write_riemann.load').with(content: %r{Port "2181"})
it "Will create #{options[:plugin_conf_dir]}/10-zookeeper.load" do
is_expected.to contain_file('zookeeper.load').with(ensure: 'present')
is_expected.to contain_file('zookeeper.load').with(path: "#{options[:plugin_conf_dir]}/10-zookeeper.conf")
is_expected.to contain_file('zookeeper.load').with(content: %r{Host "myhost"})
is_expected.to contain_file('zookeeper.load').with(content: %r{Port "2181"})
end
end

Expand Down

0 comments on commit 2a0a258

Please sign in to comment.