Mercurial > repos > other > Puppet
view modules/apache/spec/acceptance/mod_mime_spec.rb @ 257:675c1cc61eaf
Update Apache module to get CentOS 8 support
Unfortunately it only fixes some bits. mod_wsgi still needs
other approaches
This also overrides the vhost modification to make them come last
in the import order (after module loading)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 22 Dec 2019 14:43:29 -0500 |
parents | 37675581a273 |
children |
line wrap: on
line source
require 'spec_helper_acceptance' require_relative './version.rb' describe 'apache::mod::mime class' do context "default mime config" do it 'succeeds in puppeting mime' do pp= <<-EOS class { 'apache': } include apache::mod::mime EOS apply_manifest(pp, :catch_failures => true) end describe service($service_name) do if (fact('operatingsystem') == 'Debian' && fact('operatingsystemmajrelease') == '8') pending 'Should be enabled - Bug 760616 on Debian 8' else it { should be_enabled } end it { is_expected.to be_running } end describe file("#{$mod_dir}/mime.conf") do it { is_expected.to contain "AddType application/x-compress .Z" } it { is_expected.to contain "AddHandler type-map var\n" } it { is_expected.to contain "AddType text/html .shtml\n" } it { is_expected.to contain "AddOutputFilter INCLUDES .shtml\n" } end end end