tkey-* additional parameters

- tkey-gssapi-credential
- tkey-domain
This commit is contained in:
Cedric DEFORTIS
2017-05-31 15:41:52 +02:00
parent e39b9b9db1
commit 81135efa23
3 changed files with 36 additions and 9 deletions
+19
View File
@@ -73,6 +73,11 @@ describe 'bind' do
end
it { is_expected.to contain_file(expected_named_conf).that_requires('Package[bind]') }
it { is_expected.to contain_file(expected_named_conf).that_notifies('Service[bind]') }
it do
is_expected.to contain_file(expected_named_conf)
.with_content(/^options {$/)
.without_content(/^\s+tkey-gssapi-credential/)
end
it do
is_expected.to contain_service('bind').with({
ensure: 'running',
@@ -80,6 +85,20 @@ describe 'bind' do
})
end
end
context 'with tkey-* parameters' do
let(:params) do
{
tkey_gssapi_credential: 'DNS/ds01.foobar.com',
tkey_domain: 'foobar.com'
}
end
it do
is_expected.to contain_file(expected_named_conf)
.with_content(/^options {$/)
.with_content(%r{^\s+tkey-gssapi-credential "DNS/ds01.foobar.com";$})
.with_content(%r{^\s+tkey-domain "foobar.com";$})
end
end
end
end
end