added tests for supervisor files to be present

This commit is contained in:
Diego Lendoiro 2018-08-13 17:43:32 +02:00
parent 46e6a42628
commit eca068724e
1 changed files with 11 additions and 0 deletions

View File

@ -19,6 +19,11 @@ describe 'Dockerfile' do
let(:nginx_conf) { '/etc/nginx/nginx.conf' } let(:nginx_conf) { '/etc/nginx/nginx.conf' }
let(:php_conf) { '/usr/local/etc/php-fpm.d/expose.conf' } let(:php_conf) { '/usr/local/etc/php-fpm.d/expose.conf' }
let(:site_conf) { '/etc/nginx/conf.d/default.conf' } let(:site_conf) { '/etc/nginx/conf.d/default.conf' }
let(:supervisor_conf) do
[ '/etc/supervisor/conf.d/nginx.conf',
'/etc/supervisor/conf.d/php.conf',
'/etc/supervisor/conf.d/cron.conf' ]
end
let(:passbolt_home) { '/var/www/passbolt' } let(:passbolt_home) { '/var/www/passbolt' }
let(:passbolt_tmp) { '/var/www/passbolt/tmp' } let(:passbolt_tmp) { '/var/www/passbolt/tmp' }
let(:passbolt_image) { '/var/www/passbolt/webroot/img/public' } let(:passbolt_image) { '/var/www/passbolt/webroot/img/public' }
@ -48,6 +53,12 @@ describe 'Dockerfile' do
it 'is installed' do it 'is installed' do
expect(package('supervisor')).to be_installed expect(package('supervisor')).to be_installed
end end
it 'has config files' do
supervisor_conf.each do |config|
expect(file(config)).to exist
end
end
end end
describe 'passbolt directory structure' do describe 'passbolt directory structure' do