Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only run the passenger tests on non redhat #1381

Merged
merged 1 commit into from
Feb 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 12 additions & 28 deletions spec/acceptance/vhost_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1107,38 +1107,22 @@ class { 'apache': service_ensure => stopped, }
end

describe 'rack_base_uris' do
before :all do
pp = "if $::osfamily == 'RedHat' { include epel }"
apply_manifest(pp, :catch_failures => true)
end

it 'applies cleanly' do
test = lambda do
pp = <<-EOS
class { 'apache': }
host { 'test.server': ip => '127.0.0.1' }
apache::vhost { 'test.server':
docroot => '/tmp',
rack_base_uris => ['/test'],
}
EOS
apply_manifest(pp, :catch_failures => true)
end
if (fact('osfamily') == 'RedHat' and ! ['7','6','5'].include?(fact('operatingsystemmajrelease')))
pending("Passenger isn't even in EPEL on el-5, needs a kernel update on el-6, and needs selinux-policy >= 3.13.1-60 on el7 which is not available in official repos") do
test.call
if (fact('osfamily') != 'RedHat')
it 'applies cleanly' do
test = lambda do
pp = <<-EOS
class { 'apache': }
host { 'test.server': ip => '127.0.0.1' }
apache::vhost { 'test.server':
docroot => '/tmp',
rack_base_uris => ['/test'],
}
EOS
apply_manifest(pp, :catch_failures => true)
end
else
test.call
end
end

if (fact('osfamily') == 'RedHat' and ! ['7','6','5'].include?(fact('operatingsystemmajrelease')))
describe file("#{$vhost_dir}/25-test.server.conf") do
it { is_expected.to be_file }
it { is_expected.to contain 'RackBaseURI /test' }
end
end
end

describe 'no_proxy_uris' do
Expand Down