Sha256: f97e1c3b5c0e6cc6acc5c6078ab0b4cd272cecd390edc361aa3184c110ede393
Contents?: true
Size: 1.23 KB
Versions: 4
Compression:
Stored size: 1.23 KB
Contents
require File.expand_path('../support/helpers', __FILE__) require 'pathname' describe 'apache2::mod_auth_openid' do include Helpers::Apache it "installs the opekele library" do lib_dir = Pathname.new(node['apache']['lib_dir']).dirname.to_s file("#{lib_dir}/libopkele.so").must_exist end it "does not add the module to httpd.conf" do conffile = case node['platform'] when 'debian', 'ubuntu' "apache2.conf" when "redhat", "centos", "scientific", "fedora", "arch", "amazon" "conf/httpd.conf" when "freebsd" "httpd.conf" end httpd_config = File.read(File.join(node['apache']['dir'], conffile)) refute_match /^LoadModule authopenid_module /, httpd_config end it "creates a cache directory for the module" do directory(node['apache']['mod_auth_openid']['cache_dir']).must_exist.with(:owner, node['apache']['user']) end it "ensures the db file is writable by apache" do file(node['apache']['mod_auth_openid']['dblocation']).must_exist.with(:owner, node['apache']['user']).and(:mode, "644") end it 'enables authopenid_module' do apache_enabled_modules.must_include "authopenid_module" end end
Version data entries
4 entries across 3 versions & 3 rubygems