Revision deb5ed35
Added by Ewoud Kohl van Wijngaarden about 4 years ago
spec/acceptance/foreman_journald_spec.rb | ||
---|---|---|
it { is_expected.to be_installed }
|
||
end
|
||
|
||
# Logging to the journal is broken on Travis and EL7 but works in Vagrant VMs
|
||
# and regular docker containers
|
||
describe command('journalctl -u foreman'), unless: ENV['TRAVIS'] == 'true' && os[:family] == 'redhat' && os[:release] =~ /^7\./ do
|
||
# Logging to the journal is broken on Docker 18+ and EL7 but works in Vagrant
|
||
# VMs (and EL7's Docker version)
|
||
broken_journald_logging = ENV['BEAKER_HYPERVISOR'] == 'docker' && os[:family] == 'redhat' && os[:release] =~ /^7\./
|
||
|
||
describe command('journalctl -u foreman'), unless: broken_journald_logging do
|
||
its(:stdout) { is_expected.to match(%r{Redirected to https://#{host_inventory['fqdn']}/users/login}) }
|
||
end
|
||
|
||
describe command('journalctl -u dynflow-sidekiq@orchestrator'), unless: ENV['TRAVIS'] == 'true' && os[:family] == 'redhat' && os[:release] =~ /^7\./ do
|
||
describe command('journalctl -u dynflow-sidekiq@orchestrator'), unless: broken_journald_logging do
|
||
its(:stdout) { is_expected.to match(%r{Everything ready for world: }) }
|
||
end
|
||
end
|
Also available in: Unified diff
Better deal with broken docker in acceptance