|
4 | 4 |
|
5 | 5 | describe 'apache', type: :class do |
6 | 6 | context 'on a Debian OS' do |
7 | | - include_examples 'Debian 6' |
| 7 | + include_examples 'Debian 8' |
8 | 8 |
|
9 | 9 | it { is_expected.to contain_class('apache::params') } |
10 | 10 | it { |
|
17 | 17 | it { is_expected.to contain_group('www-data') } |
18 | 18 | it { is_expected.to contain_class('apache::service') } |
19 | 19 | it { |
20 | | - is_expected.to contain_file('/var/www').with( |
| 20 | + is_expected.to contain_file('/var/www/html').with( |
21 | 21 | 'ensure' => 'directory', |
22 | 22 | ) |
23 | 23 | } |
|
46 | 46 | ).that_notifies('Class[Apache::Service]') |
47 | 47 | } |
48 | 48 | # Assert that load files are placed and symlinked for these mods, but no conf file. |
49 | | - ['auth_basic', 'authn_file', 'authz_default', 'authz_groupfile', 'authz_host', 'authz_user', 'dav', 'env'].each do |modname| |
| 49 | + ['auth_basic', 'authn_file', 'authz_groupfile', 'authz_host', 'authz_user', 'dav', 'env'].each do |modname| |
50 | 50 | it { |
51 | 51 | is_expected.to contain_file("#{modname}.load").with( |
52 | 52 | 'path' => "/etc/apache2/mods-available/#{modname}.load", |
|
232 | 232 | end |
233 | 233 | end |
234 | 234 |
|
235 | | - context '8' do |
236 | | - include_examples 'Debian 8' |
237 | | - |
238 | | - it { |
239 | | - is_expected.to contain_file('/var/www/html').with( |
240 | | - 'ensure' => 'directory', |
241 | | - ) |
242 | | - } |
243 | | - describe 'Alternate mpm_modules when declaring mpm_module => prefork' do |
244 | | - let :params do |
245 | | - { mpm_module: 'worker' } |
246 | | - end |
247 | | - |
248 | | - it { is_expected.to contain_exec('/usr/sbin/a2dismod event') } |
249 | | - it { is_expected.to contain_exec('/usr/sbin/a2dismod prefork') } |
| 235 | + describe 'Alternate mpm_modules when declaring mpm_module => prefork' do |
| 236 | + let :params do |
| 237 | + { mpm_module: 'worker' } |
250 | 238 | end |
| 239 | + |
| 240 | + it { is_expected.to contain_exec('/usr/sbin/a2dismod event') } |
| 241 | + it { is_expected.to contain_exec('/usr/sbin/a2dismod prefork') } |
251 | 242 | end |
252 | 243 |
|
253 | 244 | context 'on Ubuntu 14.04' do |
|
0 commit comments