Project

General

Profile

Download (972 Bytes) Statistics
| Branch: | Tag: | Revision:
require 'spec_helper'

describe 'pulp::apache_plugin' do
let :title do
'python'
end

let :pre_condition do
'service { "httpd": }'
end

context 'with default parameters' do
it { is_expected.to compile.with_all_deps }

it do
verify_exact_contents(catalogue, '/etc/httpd/conf.d/pulp_python.conf', [
'Alias /pulp/python /var/www/pub/python/',
'<Directory /var/www/pub/python>',
' Options FollowSymLinks Indexes',
'</Directory>',
])
end

it do
verify_exact_contents(catalogue, '/etc/pulp/vhosts80/python.conf', [])
end
end

context 'with parameters set to false' do
let :params do
{
:confd => false,
:vhosts80 => false,
}
end

it { is_expected.to compile.with_all_deps }
it { is_expected.not_to contain_file('/etc/httpd/conf.d/pulp_python.conf') }
it { is_expected.not_to contain_file('/etc/pulp/vhosts80/python.conf') }
end
end
(2-2/3)