|
26 | 26 |
|
27 | 27 | it { |
28 | 28 | is_expected.to contain_file('disk_cache.conf') |
29 | | - .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie}) |
| 29 | + .with(content: %r{CacheEnable disk /\nCacheRoot "/var/cache/apache2/mod_cache_disk"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie}) |
30 | 30 | } |
31 | 31 |
|
32 | 32 | context 'with $default_cache_enable = false' do |
|
39 | 39 |
|
40 | 40 | it { |
41 | 41 | is_expected.to contain_file('disk_cache.conf') |
42 | | - .with(content: %r{CacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
| 42 | + .with(content: %r{CacheRoot "/var/cache/apache2/mod_cache_disk"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
43 | 43 | } |
44 | 44 | end |
45 | 45 |
|
|
53 | 53 |
|
54 | 54 | it { |
55 | 55 | is_expected.to contain_file('disk_cache.conf') |
56 | | - .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
| 56 | + .with(content: %r{CacheEnable disk /\nCacheRoot "/var/cache/apache2/mod_cache_disk"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
57 | 57 | } |
58 | 58 | end |
59 | 59 |
|
|
84 | 84 |
|
85 | 85 | it { |
86 | 86 | is_expected.to contain_file('disk_cache.conf') |
87 | | - .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/httpd\/proxy\"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie}) |
| 87 | + .with(content: %r{CacheEnable disk /\nCacheRoot "/var/cache/httpd/proxy"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie}) |
88 | 88 | } |
89 | 89 |
|
90 | 90 | context 'with $default_cache_enable = false' do |
|
97 | 97 |
|
98 | 98 | it { |
99 | 99 | is_expected.to contain_file('disk_cache.conf') |
100 | | - .with(content: %r{CacheRoot \"\/var\/cache\/httpd\/proxy\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
| 100 | + .with(content: %r{CacheRoot "/var/cache/httpd/proxy"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
101 | 101 | } |
102 | 102 | end |
103 | 103 |
|
|
111 | 111 |
|
112 | 112 | it { |
113 | 113 | is_expected.to contain_file('disk_cache.conf') |
114 | | - .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/httpd\/proxy\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
| 114 | + .with(content: %r{CacheEnable disk /\nCacheRoot "/var/cache/httpd/proxy"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
115 | 115 | } |
116 | 116 | end |
117 | 117 |
|
|
145 | 145 |
|
146 | 146 | it { |
147 | 147 | is_expected.to contain_file('disk_cache.conf') |
148 | | - .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie}) |
| 148 | + .with(content: %r{CacheEnable disk /\nCacheRoot "/var/cache/mod_cache_disk"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie}) |
149 | 149 | } |
150 | 150 |
|
151 | 151 | context 'with $default_cache_enable = false' do |
|
158 | 158 |
|
159 | 159 | it { |
160 | 160 | is_expected.to contain_file('disk_cache.conf') |
161 | | - .with(content: %r{CacheRoot \"\/var\/cache\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
| 161 | + .with(content: %r{CacheRoot "/var/cache/mod_cache_disk"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
162 | 162 | } |
163 | 163 | end |
164 | 164 |
|
|
172 | 172 |
|
173 | 173 | it { |
174 | 174 | is_expected.to contain_file('disk_cache.conf') |
175 | | - .with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
| 175 | + .with(content: %r{CacheEnable disk /\nCacheRoot "/var/cache/mod_cache_disk"\nCacheDirLevels 2\nCacheDirLength 1\n}) |
176 | 176 | } |
177 | 177 | end |
178 | 178 |
|
|
0 commit comments