Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8396477
proxy_html_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
proxy_html_spec.rb
View Options
# frozen_string_literal: true
require
'spec_helper'
describe
'apache::mod::proxy_html'
,
type
:
:class
do
let
:pre_condition
do
[
'include apache::mod::proxy'
,
'include apache::mod::proxy_http'
,
]
end
it_behaves_like
'a mod class, without including apache'
context
'on a Debian OS'
do
shared_examples
'debian'
do
|
loadfiles
|
it
{
is_expected
.
to
contain_class
(
'apache::params'
)
}
it
{
is_expected
.
to
contain_apache__mod
(
'proxy_html'
)
.
with
(
loadfiles
:
loadfiles
)
}
end
include_examples
'Debian 11'
context
'on i386'
do
let
(
:facts
)
do
super
()
.
merge
(
hardwaremodel
:
'i686'
,
architecture
:
'i386'
)
end
it
{
is_expected
.
to
contain_apache__mod
(
'xml2enc'
)
.
with
(
loadfiles
:
nil
)
}
it_behaves_like
'debian'
,
[
'/usr/lib/i386-linux-gnu/libxml2.so.2'
]
end
context
'on x64'
do
let
(
:facts
)
do
super
()
.
merge
(
hardwaremodel
:
'x86_64'
,
architecture
:
'amd64'
)
end
it
{
is_expected
.
to
contain_apache__mod
(
'xml2enc'
)
.
with
(
loadfiles
:
nil
)
}
it_behaves_like
'debian'
,
[
'/usr/lib/x86_64-linux-gnu/libxml2.so.2'
]
end
end
context
'on a RedHat OS'
,
:compile
do
include_examples
'RedHat 6'
it
{
is_expected
.
to
contain_class
(
'apache::params'
)
}
it
{
is_expected
.
to
contain_apache__mod
(
'proxy_html'
)
.
with
(
loadfiles
:
nil
)
}
it
{
is_expected
.
to
contain_package
(
'mod_proxy_html'
)
}
it
{
is_expected
.
to
contain_apache__mod
(
'xml2enc'
)
.
with
(
loadfiles
:
nil
)
}
end
context
'on a FreeBSD OS'
,
:compile
do
include_examples
'FreeBSD 9'
it
{
is_expected
.
to
contain_class
(
'apache::params'
)
}
it
{
is_expected
.
to
contain_apache__mod
(
'proxy_html'
)
.
with
(
loadfiles
:
nil
)
}
it
{
is_expected
.
to
contain_apache__mod
(
'xml2enc'
)
.
with
(
loadfiles
:
nil
)
}
it
{
is_expected
.
to
contain_package
(
'www/mod_proxy_html'
)
}
end
context
'on a Gentoo OS'
,
:compile
do
include_examples
'Gentoo'
it
{
is_expected
.
to
contain_class
(
'apache::params'
)
}
it
{
is_expected
.
to
contain_apache__mod
(
'proxy_html'
)
.
with
(
loadfiles
:
nil
)
}
it
{
is_expected
.
to
contain_apache__mod
(
'xml2enc'
)
.
with
(
loadfiles
:
nil
)
}
it
{
is_expected
.
to
contain_package
(
'www-apache/mod_proxy_html'
)
}
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jun 4 2025, 7:53 PM (13 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3399431
Attached To
rSPAPA puppet-puppetlabs-apache
Event Timeline
Log In to Comment