Sha256: 69eee68859b57305075f666f8a2433d83840d48c83785bfad89f19f60755e9ee

Contents?: true

Size: 842 Bytes

Versions: 3

Compression:

Stored size: 842 Bytes

Contents

require File.expand_path('../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
    httpd_config = File.read("#{node['apache']['dir']}/conf/httpd.conf")
    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

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fast_food-0.1.2 chef/cookbooks/apache2/files/default/tests/minitest/mod_auth_openid_test.rb
fast_food-0.1.1 chef/cookbooks/apache2/files/default/tests/minitest/mod_auth_openid_test.rb
fast_food-0.1.0 chef/cookbooks/apache2/files/default/tests/minitest/mod_auth_openid_test.rb