X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fapache%2Fspec%2Facceptance%2Fmod_mime_spec.rb;fp=3rdparty%2Fmodules%2Fapache%2Fspec%2Facceptance%2Fmod_mime_spec.rb;h=0000000000000000000000000000000000000000;hb=6e1426dc77fb4e5d51f07c187c6f2219431dc31e;hp=d1886c4bdea8d45a81178b5d06c95044040045eb;hpb=87423ba664cd5f2bb462ebadd08b1a90d0fe1c8d;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/apache/spec/acceptance/mod_mime_spec.rb b/3rdparty/modules/apache/spec/acceptance/mod_mime_spec.rb deleted file mode 100644 index d1886c4bd..000000000 --- a/3rdparty/modules/apache/spec/acceptance/mod_mime_spec.rb +++ /dev/null @@ -1,37 +0,0 @@ -require 'spec_helper_acceptance' - -describe 'apache::mod::mime class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do - case fact('osfamily') - when 'Debian' - mod_dir = '/etc/apache2/mods-available' - service_name = 'apache2' - when 'RedHat' - mod_dir = '/etc/httpd/conf.d' - service_name = 'httpd' - when 'FreeBSD' - mod_dir = '/usr/local/etc/apache24/Modules' - service_name = 'apache24' - when 'Gentoo' - mod_dir = '/etc/apache2/modules.d' - service_name = 'apache2' - end - - 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 - it { is_expected.to be_enabled } - it { is_expected.to be_running } - end - - describe file("#{mod_dir}/mime.conf") do - it { is_expected.to contain "AddType application/x-compress .Z" } - end - end -end