Skip to content

Commit 0acfc1c

Browse files
authored
Merge pull request #1 from sanfrancrisko/feat/master/apreq2_mod_enhancements
(feat) Add package deps and tests for mod_apreq2 on Debian 9, 10
2 parents 641508b + 7e7b14d commit 0acfc1c

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

manifests/mod/apreq2.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# @see http://httpd.apache.org/apreq/docs/libapreq2/group__mod__apreq2.html for additional documentation.
55
#
6-
6+
# @note Unsupported platforms: CentOS: all; Debian: 8; OracleLinux: all; RedHat: all; Scientific: all; SLES: all; Ubuntu: all
77
class apache::mod::apreq2 {
88
::apache::mod { 'apreq2':
99
id => 'apreq_module',

manifests/params.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@
389389
default => '7.2', # Ubuntu Bionic, Cosmic and Disco
390390
}
391391
$mod_packages = {
392+
'apreq2' => 'libapache2-mod-apreq2',
392393
'auth_cas' => 'libapache2-mod-auth-cas',
393394
'auth_kerb' => 'libapache2-mod-auth-kerb',
394395
'auth_openidc' => 'libapache2-mod-auth-openidc',

spec/acceptance/mod_apreq2_spec.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
require 'spec_helper_acceptance'
2+
apache_hash = apache_settings_hash
3+
4+
describe 'apache::mod::apreq2', if: mod_supported_on_platform?('apache::mod::apreq2') do
5+
pp = <<-MANIFEST
6+
class { 'apache' : }
7+
class { 'apache::mod::apreq2': }
8+
MANIFEST
9+
10+
it 'succeeds in installing the mod_authnz_apreq2 module' do
11+
apply_manifest(pp, catch_failures: true)
12+
end
13+
end

0 commit comments

Comments
 (0)