File tree Expand file tree Collapse file tree 2 files changed +17
-12
lines changed
docker_runtime_with_passbolt_php Expand file tree Collapse file tree 2 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 4141 'Env' => [
4242 "DATASOURCES_DEFAULT_HOST=#{ @mysql . json [ 'NetworkSettings' ] [ 'IPAddress' ] } "
4343 ] ,
44- 'Binds' => $binds. append (
45- "#{ FIXTURES_PATH + '/passbolt.php' } :#{ PASSBOLT_CONFIG_PATH + '/passbolt.php' } " ,
46- "#{ FIXTURES_PATH + '/public-test.key' } :#{ PASSBOLT_CONFIG_PATH + 'gpg/unsecure.key' } " ,
47- "#{ FIXTURES_PATH + '/private-test.key' } :#{ PASSBOLT_CONFIG_PATH + 'gpg/unsecure_private.key' } "
48- ) ,
44+ 'HostConfig' => {
45+ 'Binds' => $binds. append (
46+ "#{ FIXTURES_PATH + '/passbolt.php' } :#{ PASSBOLT_CONFIG_PATH + '/passbolt.php' } " ,
47+ "#{ FIXTURES_PATH + '/public-test.key' } :#{ PASSBOLT_CONFIG_PATH + 'gpg/unsecure.key' } " ,
48+ "#{ FIXTURES_PATH + '/private-test.key' } :#{ PASSBOLT_CONFIG_PATH + 'gpg/unsecure_private.key' } "
49+ )
50+ } ,
51+
4952 'Image' => @image . id
5053 )
5154
6164 @container . kill
6265 end
6366
64- let ( :passbolt_host ) { @container . json [ 'NetworkSettings' ] [ 'IPAddress' ] }
65- let ( :uri ) { '/install' }
66- let ( :curl ) { "curl -skL -H 'Host: passbolt.local' https://#{ passbolt_host } :#{ $https_port} /#{ uri } " }
67+ let ( :passbolt_host ) { @container . json [ 'NetworkSettings' ] [ 'IPAddress' ] }
6768
6869 describe 'php service' do
6970 it 'is running supervised' do
9192 end
9293 end
9394
94- describe 'passbolt install' do
95+ describe 'passbolt healthcheck' do
96+ let ( :uri ) { '/healthcheck/status.json' }
97+ let ( :curl ) { "curl -sk -o /dev/null -w '%{http_code}' -H 'Host: passbolt.local' https://#{ passbolt_host } :#{ $https_port} /#{ uri } " }
9598 it 'shows correctly' do
96- expect ( command ( curl ) . stdout ) . to match ( /.*Passbolt is not configured yet!.*/ )
99+ expect ( command ( curl ) . stdout ) . to eq '200'
97100 end
98101 end
99102
Original file line number Diff line number Diff line change 5858 'PASSBOLT_HEALTHCHECK_ERROR=true'
5959 ] ,
6060 'Image' => @image . id ,
61- 'Binds' => $binds. append (
61+ 'HostConfig' => {
62+ 'Binds' => $binds. append (
6263 "#{ FIXTURES_PATH + '/passbolt-no-fingerprint.php' } :#{ PASSBOLT_CONFIG_PATH + '/passbolt.php' } " ,
6364 "#{ FIXTURES_PATH + '/public-test.key' } :#{ PASSBOLT_CONFIG_PATH + 'gpg/unsecure.key' } " ,
6465 "#{ FIXTURES_PATH + '/private-test.key' } :#{ PASSBOLT_CONFIG_PATH + 'gpg/unsecure_private.key' } "
65- )
66+ )
67+ } ,
6668 )
6769
6870 @container . start
You can’t perform that action at this time.
0 commit comments