Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1797 from JAORMX/mod-auth-gssapi
Add mod::auth_gssapi manifest
- Loading branch information
Showing
4 changed files
with
107 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class apache::mod::auth_gssapi { | ||
include apache | ||
include apache::mod::authn_core | ||
apache::mod { 'auth_gssapi': } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
require 'spec_helper' | ||
|
||
describe 'apache::mod::auth_gssapi', type: :class do | ||
it_behaves_like 'a mod class, without including apache' | ||
|
||
context 'default configuration with parameters' do | ||
context 'on a Debian OS', :compile do | ||
let :facts do | ||
{ | ||
id: 'root', | ||
kernel: 'Linux', | ||
lsbdistcodename: 'squeeze', | ||
osfamily: 'Debian', | ||
operatingsystem: 'Debian', | ||
operatingsystemrelease: '6', | ||
path: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', | ||
concat_basedir: '/dne', | ||
is_pe: false, | ||
} | ||
end | ||
|
||
it { is_expected.to contain_class('apache::params') } | ||
it { is_expected.to contain_apache__mod('auth_gssapi') } | ||
it { is_expected.to contain_package('libapache2-mod-auth-gssapi') } | ||
end | ||
context 'on a RedHat OS', :compile do | ||
let :facts do | ||
{ | ||
id: 'root', | ||
kernel: 'Linux', | ||
osfamily: 'RedHat', | ||
operatingsystem: 'RedHat', | ||
operatingsystemrelease: '6', | ||
path: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', | ||
concat_basedir: '/dne', | ||
is_pe: false, | ||
} | ||
end | ||
|
||
it { is_expected.to contain_class('apache::params') } | ||
it { is_expected.to contain_apache__mod('auth_gssapi') } | ||
it { is_expected.to contain_package('mod_auth_gssapi') } | ||
end | ||
context 'on a FreeBSD OS', :compile do | ||
let :facts do | ||
{ | ||
id: 'root', | ||
kernel: 'FreeBSD', | ||
osfamily: 'FreeBSD', | ||
operatingsystem: 'FreeBSD', | ||
operatingsystemrelease: '9', | ||
path: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', | ||
concat_basedir: '/dne', | ||
is_pe: false, | ||
} | ||
end | ||
|
||
it { is_expected.to contain_class('apache::params') } | ||
it { is_expected.to contain_apache__mod('auth_gssapi') } | ||
it { is_expected.to contain_package('www/mod_auth_gssapi') } | ||
end | ||
context 'on a Gentoo OS', :compile do | ||
let :facts do | ||
{ | ||
id: 'root', | ||
kernel: 'Linux', | ||
osfamily: 'Gentoo', | ||
operatingsystem: 'Gentoo', | ||
path: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin', | ||
operatingsystemrelease: '3.16.1-gentoo', | ||
concat_basedir: '/dne', | ||
is_pe: false, | ||
} | ||
end | ||
|
||
it { is_expected.to contain_class('apache::params') } | ||
it { is_expected.to contain_apache__mod('auth_gssapi') } | ||
it { is_expected.to contain_package('www-apache/mod_auth_gssapi') } | ||
end | ||
end | ||
end |