|
44 | 44 | }
|
45 | 45 | end
|
46 | 46 |
|
47 |
| - it { is_expected.to contain_file_line(format('powerdns-config-foo-%s', authoritative_config)) } |
48 |
| - it { is_expected.to contain_file_line(format('powerdns-config-foo-%s', authoritative_config)).with_ensure('present') } |
49 |
| - it { is_expected.to contain_file_line(format('powerdns-config-foo-%s', authoritative_config)).with_path(authoritative_config) } |
50 |
| - it { is_expected.to contain_file_line(format('powerdns-config-foo-%s', authoritative_config)).with_line('foo=bar') } |
51 |
| - it { is_expected.to contain_file_line(format('powerdns-config-foo-%s', authoritative_config)).with_match('^foo=') } |
52 |
| - it { is_expected.to contain_file_line(format('powerdns-config-foo-%s', authoritative_config)).that_notifies(format('Service[%s]', authoritative_service_name)) } |
| 47 | + it { is_expected.to contain_file_line(format('powerdns-config-foo-%<config>s', config: authoritative_config)) } |
| 48 | + it { is_expected.to contain_file_line(format('powerdns-config-foo-%<config>s', config: authoritative_config)).with_ensure('present') } |
| 49 | + it { is_expected.to contain_file_line(format('powerdns-config-foo-%<config>s', config: authoritative_config)).with_path(authoritative_config) } |
| 50 | + it { is_expected.to contain_file_line(format('powerdns-config-foo-%<config>s', config: authoritative_config)).with_line('foo=bar') } |
| 51 | + it { is_expected.to contain_file_line(format('powerdns-config-foo-%<config>s', config: authoritative_config)).with_match('^foo=') } |
| 52 | + it { is_expected.to contain_file_line(format('powerdns-config-foo-%<config>s', config: authoritative_config)).that_notifies(format('Service[%<service>s]', service: authoritative_service_name)) } |
53 | 53 | end
|
54 | 54 |
|
55 | 55 | context 'powerdns::config with recursor type' do
|
|
61 | 61 | }
|
62 | 62 | end
|
63 | 63 |
|
64 |
| - it { is_expected.to contain_file_line(format('powerdns-config-foo-%s', recursor_config)) } |
| 64 | + it { is_expected.to contain_file_line(format('powerdns-config-foo-%<config>s', config: recursor_config)) } |
65 | 65 | end
|
66 | 66 |
|
67 | 67 | # Test for empty values
|
|
72 | 72 | }
|
73 | 73 | end
|
74 | 74 |
|
75 |
| - it { is_expected.to contain_file_line(format('powerdns-config-gmysql-dnssec-%s', authoritative_config)) } |
| 75 | + it { is_expected.to contain_file_line(format('powerdns-config-gmysql-dnssec-%<config>s', config: authoritative_config)) } |
76 | 76 | end
|
77 | 77 |
|
78 | 78 | context 'powerdns::config with empty value for only-notify' do
|
|
82 | 82 | }
|
83 | 83 | end
|
84 | 84 |
|
85 |
| - it { is_expected.to contain_file_line(format('powerdns-config-only-notify-%s', authoritative_config)) } |
| 85 | + it { is_expected.to contain_file_line(format('powerdns-config-only-notify-%<config>s', config: authoritative_config)) } |
86 | 86 | end
|
87 | 87 |
|
88 | 88 | context 'powerdns::config with empty value' do
|
|
0 commit comments