|
61 | 61 | it { is_expected.to compile } |
62 | 62 | it { is_expected.to contain_class('apache::mod::disk_cache') } |
63 | 63 | it { is_expected.to contain_class('apache::mod::cache').that_comes_before('Class[Apache::Mod::Disk_cache]') } |
64 | | - it { is_expected.to contain_apache_mod('cache_disk') } |
| 64 | + it { is_expected.to contain_apache__mod('cache_disk') } |
65 | 65 | it { |
66 | 66 | is_expected.to contain_file('disk_cache.conf') |
67 | 67 | .with(content: %r{CacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
|
81 | 81 | it { is_expected.to compile } |
82 | 82 | it { is_expected.to contain_class('apache::mod::disk_cache') } |
83 | 83 | it { is_expected.to contain_class('apache::mod::cache').that_comes_before('Class[Apache::Mod::Disk_cache]') } |
84 | | - it { is_expected.to contain_apache_mod('cache_disk') } |
| 84 | + it { is_expected.to contain_apache__mod('cache_disk') } |
85 | 85 | it { |
86 | 86 | is_expected.to contain_file('disk_cache.conf') |
87 | 87 | .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
|
98 | 98 |
|
99 | 99 | let(:params) { { 'default_cache_enable' => 'foo' } } |
100 | 100 |
|
101 | | - it { is_expected.to compile } |
102 | | - it { is_expected.to contain_class('apache::mod::disk_cache') } |
103 | | - it { is_expected.to contain_class('apache::mod::cache').that_comes_before('Class[Apache::Mod::Disk_cache]') } |
104 | | - it { is_expected.to contain_apache_mod('cache_disk') } |
105 | | - it { |
106 | | - is_expected.to raise_error(Puppet::Error, 'default_cache_enable must be true or false') |
107 | | - } |
| 101 | + it { is_expected.not_to compile } |
108 | 102 | end |
109 | 103 | end |
110 | 104 |
|
|
198 | 192 |
|
199 | 193 | let(:params) { { 'default_cache_enable' => 'foo' } } |
200 | 194 |
|
201 | | - it { is_expected.to compile } |
202 | | - it { is_expected.to contain_class('apache::mod::disk_cache') } |
203 | | - it { is_expected.to contain_class('apache::mod::cache').that_comes_before('Class[Apache::Mod::Disk_cache]') } |
204 | | - it { is_expected.to contain_apache_mod('cache_disk') } |
205 | | - it { |
206 | | - is_expected.to raise_error(Puppet::Error, 'default_cache_enable must be true or false') |
207 | | - } |
| 195 | + it { is_expected.not_to compile } |
208 | 196 | end |
209 | 197 | end |
210 | 198 | context 'on a FreeBSD OS' do |
|
266 | 254 | it { is_expected.to compile } |
267 | 255 | it { is_expected.to contain_class('apache::mod::disk_cache') } |
268 | 256 | it { is_expected.to contain_class('apache::mod::cache').that_comes_before('Class[Apache::Mod::Disk_cache]') } |
269 | | - it { is_expected.to contain_apache_mod('cache_disk') } |
| 257 | + it { is_expected.to contain_apache__mod('cache_disk') } |
270 | 258 | it { |
271 | 259 | is_expected.to contain_file('disk_cache.conf') |
272 | 260 | .with(content: %r{CacheRoot \"\/var\/cache\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
|
286 | 274 | it { is_expected.to compile } |
287 | 275 | it { is_expected.to contain_class('apache::mod::disk_cache') } |
288 | 276 | it { is_expected.to contain_class('apache::mod::cache').that_comes_before('Class[Apache::Mod::Disk_cache]') } |
289 | | - it { is_expected.to contain_apache_mod('cache_disk') } |
| 277 | + it { is_expected.to contain_apache__mod('cache_disk') } |
290 | 278 | it { |
291 | 279 | is_expected.to contain_file('disk_cache.conf') |
292 | 280 | .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
|
303 | 291 |
|
304 | 292 | let(:params) { { 'default_cache_enable' => 'foo' } } |
305 | 293 |
|
306 | | - it { is_expected.to compile } |
307 | | - it { is_expected.to contain_class('apache::mod::disk_cache') } |
308 | | - it { is_expected.to contain_class('apache::mod::cache').that_comes_before('Class[Apache::Mod::Disk_cache]') } |
309 | | - it { is_expected.to contain_apache_mod('cache_disk') } |
310 | | - it { |
311 | | - is_expected.to raise_error(Puppet::Error, 'default_cache_enable must be true or false') |
312 | | - } |
| 294 | + it { is_expected.not_to compile } |
313 | 295 | end |
314 | 296 | end |
315 | 297 | end |
0 commit comments