|
64 | 64 | it { is_expected.to contain_apache_mod('cache_disk') } |
65 | 65 | it { |
66 | 66 | is_expected.to contain_file('disk_cache.conf') |
67 | | - .with(content: %r{CacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie}) |
| 67 | + .with(content: %r{CacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
68 | 68 | } |
69 | 69 | end |
70 | 70 | context 'with $default_cache_enable = true' do |
|
84 | 84 | it { is_expected.to contain_apache_mod('cache_disk') } |
85 | 85 | it { |
86 | 86 | is_expected.to contain_file('disk_cache.conf') |
87 | | - .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie}) |
| 87 | + .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
88 | 88 | } |
89 | 89 | end |
90 | 90 | context 'with $default_cache_enable = foo' do |
|
104 | 104 | it { is_expected.to contain_apache_mod('cache_disk') } |
105 | 105 | it { |
106 | 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\nCacheIgnoreHeaders Set-Cookie}) |
| 107 | + .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
108 | 108 | .to raise_error(Puppet::Error, 'default_cache_enable must be true or false') |
109 | 109 | } |
110 | 110 | end |
|
166 | 166 | it { is_expected.to contain_apache_mod('cache_disk') } |
167 | 167 | it { |
168 | 168 | is_expected.to contain_file('disk_cache.conf') |
169 | | - .with(content: %r{CacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie}) |
| 169 | + .with(content: %r{CacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
170 | 170 | } |
171 | 171 | end |
172 | 172 | context 'with $default_cache_enable = true' do |
|
186 | 186 | it { is_expected.to contain_apache_mod('cache_disk') } |
187 | 187 | it { |
188 | 188 | 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\nCacheIgnoreHeaders Set-Cookie}) |
| 189 | + .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
190 | 190 | } |
191 | 191 | end |
192 | 192 | context 'with $default_cache_enable = foo' do |
|
206 | 206 | it { is_expected.to contain_apache_mod('cache_disk') } |
207 | 207 | it { |
208 | 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\nCacheIgnoreHeaders Set-Cookie}) |
| 209 | + .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
210 | 210 | .to raise_error(Puppet::Error, 'default_cache_enable must be true or false') |
211 | 211 | } |
212 | 212 | end |
|
273 | 273 | it { is_expected.to contain_apache_mod('cache_disk') } |
274 | 274 | it { |
275 | 275 | is_expected.to contain_file('disk_cache.conf') |
276 | | - .with(content: %r{CacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie}) |
| 276 | + .with(content: %r{CacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
277 | 277 | } |
278 | 278 | end |
279 | 279 | context 'with $default_cache_enable = true' do |
|
293 | 293 | it { is_expected.to contain_apache_mod('cache_disk') } |
294 | 294 | it { |
295 | 295 | 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\nCacheIgnoreHeaders Set-Cookie}) |
| 296 | + .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
297 | 297 | } |
298 | 298 | end |
299 | 299 | context 'with $default_cache_enable = foo' do |
|
313 | 313 | it { is_expected.to contain_apache_mod('cache_disk') } |
314 | 314 | it { |
315 | 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\nCacheIgnoreHeaders Set-Cookie}) |
| 316 | + .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
317 | 317 | .to raise_error(Puppet::Error, 'default_cache_enable must be true or false') |
318 | 318 | } |
319 | 319 | end |
|
0 commit comments