From 7a6250d00aec8f7d98037f6121927d4b0082b3bb Mon Sep 17 00:00:00 2001 From: Trevor Smith Date: Thu, 19 Mar 2015 12:14:28 -0400 Subject: [PATCH] change tests and hiera fixtures to allow tests to pass with the changes to the config path --- spec/classes/bind_spec.rb | 4 ++-- spec/fixtures/hiera/common.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/classes/bind_spec.rb b/spec/classes/bind_spec.rb index 9fada43..20568b7 100644 --- a/spec/classes/bind_spec.rb +++ b/spec/classes/bind_spec.rb @@ -11,8 +11,8 @@ describe 'bind' do }) } - it { should contain_file('_CONFDIR_/named.conf').that_requires('Package[bind]') } - it { should contain_file('_CONFDIR_/named.conf').that_notifies('Service[bind]') } + it { should contain_file('_NAMEDCONF_').that_requires('Package[bind]') } + it { should contain_file('_NAMEDCONF_').that_notifies('Service[bind]') } it { should contain_service('bind').with({ diff --git a/spec/fixtures/hiera/common.yaml b/spec/fixtures/hiera/common.yaml index 631d77d..12f29a7 100644 --- a/spec/fixtures/hiera/common.yaml +++ b/spec/fixtures/hiera/common.yaml @@ -1,2 +1,3 @@ --- bind::confdir: '_CONFDIR_' +bind::namedconf: '_NAMEDCONF_'