check wait-for is on the image

This commit is contained in:
Diego Lendoiro 2019-03-29 11:27:19 +01:00
parent 62a681d657
commit 69cfe6cdfd
1 changed files with 7 additions and 0 deletions

View File

@ -34,6 +34,7 @@ describe 'Dockerfile' do
'curl', 'gd', 'intl', 'json', 'mcrypt', 'mysqlnd', 'xsl', 'phar',
'posix', 'xml', 'zlib', 'ctype', 'pdo', 'gnupg', 'pdo_mysql'
] }
let(:wait_for) { '/usr/bin/wait-for.sh' }
describe 'passbolt required php extensions' do
it 'has php extensions installed' do
@ -61,6 +62,12 @@ describe 'Dockerfile' do
end
end
describe 'wait-for' do
it 'is installed' do
expect(file(wait_for)).to exist and be_executable
end
end
describe 'passbolt directory structure' do
it 'must exist and be directories' do
expect(file(passbolt_home)).to be_a_directory