Fix rubocop offenses

This commit is contained in:
Cédric Defortis 2017-05-02 14:58:14 +02:00
parent 8308595a57
commit 1254ab0026
3 changed files with 11 additions and 11 deletions

View File

@ -35,7 +35,7 @@ describe 'bind' do
algorithm: 'hmac-md5', algorithm: 'hmac-md5',
secret_bits: '512', secret_bits: '512',
keydir: expected_confdir, keydir: expected_confdir,
keyfile: 'rndc.key', keyfile: 'rndc.key'
) )
end end
it { is_expected.to contain_file('/usr/local/bin/rndc-helper') } it { is_expected.to contain_file('/usr/local/bin/rndc-helper') }

View File

@ -24,14 +24,14 @@ describe 'bind::key' do
is_expected.to contain_file("#{expected_confdir}/keys/foobar-key").with( is_expected.to contain_file("#{expected_confdir}/keys/foobar-key").with(
owner: 'root', owner: 'root',
group: expected_group, group: expected_group,
content: /^key foobar-key/, content: /^key foobar-key/
) )
end end
it do it do
is_expected.to contain_concat__fragment('bind-key-foobar-key').with( is_expected.to contain_concat__fragment('bind-key-foobar-key').with(
order: '10', order: '10',
target: "#{expected_confdir}/keys.conf", target: "#{expected_confdir}/keys.conf",
content: "include \"#{expected_confdir}\/keys\/foobar-key\";\n", content: "include \"#{expected_confdir}\/keys\/foobar-key\";\n"
) )
end end
end end

View File

@ -4,14 +4,14 @@ describe 'bind::zone' do
on_supported_os.each do |os, facts| on_supported_os.each do |os, facts|
context "on #{os}" do context "on #{os}" do
let (:facts) {facts} let (:facts) {facts}
case facts[:os]['family'] # case facts[:os]['family']
when 'Debian' # when 'Debian'
expected_confdir = '/etc/bind' # expected_confdir = '/etc/bind'
expected_group = 'bind' # expected_group = 'bind'
when 'RedHat' # when 'RedHat'
expected_confdir = '/etc/named' # expected_confdir = '/etc/named'
expected_group = 'named' # expected_group = 'named'
end # end
# Resource title: # Resource title:
let(:title) { 'foobar-zone' } let(:title) { 'foobar-zone' }
let(:params) do let(:params) do