Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add tests for COOK-1738

  • Loading branch information...
commit 6403254147b2759d8bbb827327f9ab45c6675adb 1 parent f2381f4
@jtimberman jtimberman authored
View
15 files/default/tests/minitest/mod_include_test.rb
@@ -0,0 +1,15 @@
+require File.expand_path('../support/helpers', __FILE__)
+
+describe 'apache2::mod_include' do
+ include Helpers::Apache
+
+ it 'enables include_module' do
+ apache_enabled_modules.must_include "include_module"
+ end
+
+ it 'drops off the include module configuration' do
+ assert_match(/AddType text\/html .shtml/, File.read("#{node['apache']['dir']}/mods-enabled/include.conf"))
+ assert_match(/AddOutputFilter INCLUDES .shtml/, File.read("#{node['apache']['dir']}/mods-enabled/include.conf"))
+ end
+
+end
View
2  templates/default/mods/include.conf.erb
@@ -1,4 +1,4 @@
-<IfModule mod_include.c>
+<IfModule mod_include.c>
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>
View
1  test/kitchen/Kitchenfile
@@ -34,6 +34,7 @@ cookbook "apache2" do
configuration "mod_dav_svn"
configuration "mod_expires"
configuration "mod_fastcgi"
+ configuration "mod_include"
configuration "mod_perl"
configuration "mod_apreq2"
configuration "mod_php5"
View
1  test/kitchen/cookbooks/apache2_test/files/default/tests/minitest/modules_test.rb
@@ -13,7 +13,6 @@
expires
fcgid
headers
- include
ldap
proxy
proxy_balancer
View
1  test/kitchen/cookbooks/apache2_test/recipes/modules.rb
@@ -30,7 +30,6 @@
expires
fcgid
headers
- include
ldap
proxy
proxy_balancer
Please sign in to comment.
Something went wrong with that request. Please try again.