Page MenuHomeSoftware Heritage

proxy_connect_spec.rb
No OneTemporary

proxy_connect_spec.rb

# 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

Mime Type
text/x-ruby
Expires
Jun 4 2025, 7:53 PM (14 w, 6 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3383968

Event Timeline