1 require 'spec_helper_acceptance'
3 describe 'apache::mod::mime class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
6 mod_dir = '/etc/apache2/mods-available'
7 service_name = 'apache2'
9 mod_dir = '/etc/httpd/conf.d'
10 service_name = 'httpd'
12 mod_dir = '/usr/local/etc/apache24/Modules'
13 service_name = 'apache24'
15 mod_dir = '/etc/apache2/modules.d'
16 service_name = 'apache2'
19 context "default mime config" do
20 it 'succeeds in puppeting mime' do
23 include apache::mod::mime
25 apply_manifest(pp, :catch_failures => true)
28 describe service(service_name) do
29 it { is_expected.to be_enabled }
30 it { is_expected.to be_running }
33 describe file("#{mod_dir}/mime.conf") do
34 it { is_expected.to contain "AddType application/x-compress .Z" }