diff --git a/spec/defines/listen_on_spec.rb b/spec/defines/listen_on_spec.rb index bcc5776..616e8d0 100644 --- a/spec/defines/listen_on_spec.rb +++ b/spec/defines/listen_on_spec.rb @@ -17,6 +17,11 @@ .with_target('named.conf.options') .with_order('11') .with_address_match_list('127.0.0.1') + + is_expected.to contain_concat__fragment('bind::named.conf.options::listen-on') + .with_target('named.conf.options') + .with_order('11') + .with_content(" listen-on { 127.0.0.1; };\n\n") } end @@ -30,6 +35,11 @@ .with_target('named.conf.options') .with_order('12') .with_address_match_list('127.0.0.1') + + is_expected.to contain_concat__fragment('bind::named.conf.options::listen-on port 53') + .with_target('named.conf.options') + .with_order('12') + .with_content(" listen-on port 53 { 127.0.0.1; };\n\n") } end diff --git a/spec/defines/listen_on_v6_spec.rb b/spec/defines/listen_on_v6_spec.rb index 7138845..1b39258 100644 --- a/spec/defines/listen_on_v6_spec.rb +++ b/spec/defines/listen_on_v6_spec.rb @@ -17,6 +17,11 @@ .with_target('named.conf.options') .with_order('13') .with_address_match_list('::1') + + is_expected.to contain_concat__fragment('bind::named.conf.options::listen-on-v6') + .with_target('named.conf.options') + .with_order('13') + .with_content(" listen-on-v6 { ::1; };\n\n") } end @@ -30,6 +35,11 @@ .with_target('named.conf.options') .with_order('14') .with_address_match_list('::1') + + is_expected.to contain_concat__fragment('bind::named.conf.options::listen-on-v6 port 53') + .with_target('named.conf.options') + .with_order('14') + .with_content(" listen-on-v6 port 53 { ::1; };\n\n") } end