Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8396478
proxy_connect_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
proxy_connect_spec.rb
View Options
# frozen_string_literal: true
require
'spec_helper'
describe
'apache::mod::proxy_connect'
,
type
:
:class
do
let
:pre_condition
do
[
'include apache::mod::proxy'
,
]
end
it_behaves_like
'a mod class, without including apache'
context
'on a Debian OS'
do
let
:facts
do
{
osfamily
:
'Debian'
,
operatingsystem
:
'Debian'
,
id
:
'root'
,
kernel
:
'Linux'
,
path
:
'/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
,
is_pe
:
false
,
}
end
context
'with Apache version < 2.2'
do
let
:facts
do
super
()
.
merge
(
operatingsystemrelease
:
'7.0'
,
lsbdistcodename
:
'wheezy'
)
end
let
:params
do
{
apache_version
:
'2.1'
,
}
end
it
{
is_expected
.
not_to
contain_apache__mod
(
'proxy_connect'
)
}
end
context
'with Apache version = 2.2'
do
let
:facts
do
super
()
.
merge
(
operatingsystemrelease
:
'7.0'
,
lsbdistcodename
:
'wheezy'
)
end
let
:params
do
{
apache_version
:
'2.2'
,
}
end
it
{
is_expected
.
to
contain_apache__mod
(
'proxy_connect'
)
}
end
context
'with Apache version >= 2.4'
do
let
:facts
do
super
()
.
merge
(
operatingsystemrelease
:
'8.0'
,
lsbdistcodename
:
'jessie'
)
end
let
:params
do
{
apache_version
:
'2.4'
,
}
end
it
{
is_expected
.
to
contain_apache__mod
(
'proxy_connect'
)
}
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jun 4 2025, 7:53 PM (14 w, 14 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3383968
Attached To
rSPAPA puppet-puppetlabs-apache
Event Timeline
Log In to Comment