|
103 | 103 | it { is_expected.to contain_class('apache::mod::cache').that_comes_before('Class[Apache::Mod::Disk_cache]') } |
104 | 104 | it { is_expected.to contain_apache_mod('cache_disk') } |
105 | 105 | it { |
106 | | - is_expected.to contain_file('disk_cache.conf') |
107 | | - .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
108 | | - .to raise_error(Puppet::Error, 'default_cache_enable must be true or false') |
| 106 | + is_expected.to raise_error(Puppet::Error, 'default_cache_enable must be true or false') |
109 | 107 | } |
110 | 108 | end |
111 | 109 | end |
|
166 | 164 | it { is_expected.to contain_apache_mod('cache_disk') } |
167 | 165 | it { |
168 | 166 | is_expected.to contain_file('disk_cache.conf') |
169 | | - .with(content: %r{CacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
| 167 | + .with(content: %r{CacheRoot \"\/var\/cache\/httpd\/proxy\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
170 | 168 | } |
171 | 169 | end |
172 | 170 | context 'with $default_cache_enable = true' do |
|
186 | 184 | it { is_expected.to contain_apache_mod('cache_disk') } |
187 | 185 | it { |
188 | 186 | is_expected.to contain_file('disk_cache.conf') |
189 | | - .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
| 187 | + .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/httpd\/proxy\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
190 | 188 | } |
191 | 189 | end |
192 | 190 | context 'with $default_cache_enable = foo' do |
|
205 | 203 | it { is_expected.to contain_class('apache::mod::cache').that_comes_before('Class[Apache::Mod::Disk_cache]') } |
206 | 204 | it { is_expected.to contain_apache_mod('cache_disk') } |
207 | 205 | it { |
208 | | - is_expected.to contain_file('disk_cache.conf') |
209 | | - .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
210 | | - .to raise_error(Puppet::Error, 'default_cache_enable must be true or false') |
| 206 | + is_expected.to raise_error(Puppet::Error, 'default_cache_enable must be true or false') |
211 | 207 | } |
212 | 208 | end |
213 | 209 | end |
|
273 | 269 | it { is_expected.to contain_apache_mod('cache_disk') } |
274 | 270 | it { |
275 | 271 | is_expected.to contain_file('disk_cache.conf') |
276 | | - .with(content: %r{CacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
| 272 | + .with(content: %r{CacheRoot \"\/var\/cache\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
277 | 273 | } |
278 | 274 | end |
279 | 275 | context 'with $default_cache_enable = true' do |
|
293 | 289 | it { is_expected.to contain_apache_mod('cache_disk') } |
294 | 290 | it { |
295 | 291 | is_expected.to contain_file('disk_cache.conf') |
296 | | - .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
| 292 | + .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
297 | 293 | } |
298 | 294 | end |
299 | 295 | context 'with $default_cache_enable = foo' do |
|
312 | 308 | it { is_expected.to contain_class('apache::mod::cache').that_comes_before('Class[Apache::Mod::Disk_cache]') } |
313 | 309 | it { is_expected.to contain_apache_mod('cache_disk') } |
314 | 310 | it { |
315 | | - is_expected.to contain_file('disk_cache.conf') |
316 | | - .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
317 | | - .to raise_error(Puppet::Error, 'default_cache_enable must be true or false') |
| 311 | + is_expected.to raise_error(Puppet::Error, 'default_cache_enable must be true or false') |
318 | 312 | } |
319 | 313 | end |
320 | 314 | end |
|
0 commit comments