Revision f8a88f23
Added by Ewoud Kohl van Wijngaarden over 10 years ago
spec/classes/foreman_config_passenger_spec.rb | ||
---|---|---|
should contain_file('foreman_vhost').with({
|
||
:path => '/etc/httpd/conf.d/foreman.conf',
|
||
:mode => '0644',
|
||
:notify => 'Exec[reload-apache]',
|
||
:notify => 'Class[Foreman::Service]',
|
||
:require => 'Class[Foreman::Install]',
|
||
})
|
||
|
||
... | ... | |
|
||
should contain_file('foreman_vhost').with_content(/access plus 1 year/)
|
||
|
||
should contain_exec('restart_foreman').with({
|
||
:command => '/bin/touch /usr/share/foreman/tmp/restart.txt',
|
||
:refreshonly => true,
|
||
:cwd => '/usr/share/foreman',
|
||
:path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
|
||
})
|
||
|
||
should contain_file('/usr/share/foreman/config.ru').with({
|
||
:owner => 'foreman',
|
||
:require => 'Class[Foreman::Install]',
|
Also available in: Unified diff
Move passenger restart to foreman::service