diff --git a/actions-services.yml b/actions-services.yml index b619b49d..756fd699 100644 --- a/actions-services.yml +++ b/actions-services.yml @@ -20,15 +20,15 @@ services: - pwmanager.local - test-browser environment: + - MYSQL_HOST=db + - MYSQL_DATABASE=silauth + - MYSQL_USER=silauth + - MYSQL_PASSWORD=silauth - PROFILE_URL_FOR_TESTS=http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub - ADMIN_EMAIL=john_doe@there.com - ADMIN_PASS=b - SECRET_SALT=abc123 - IDP_NAME=x - - MYSQL_HOST=db - - MYSQL_DATABASE=silauth - - MYSQL_USER=silauth - - MYSQL_PASSWORD=silauth volumes: - ./dockerbuild/run-integration-tests.sh:/data/run-integration-tests.sh - ./dockerbuild/run-metadata-tests.sh:/data/run-metadata-tests.sh @@ -74,6 +74,8 @@ services: ssp-idp1.local: build: . + depends_on: + - db volumes: # Utilize custom certs - ./development/idp-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert @@ -118,6 +120,10 @@ services: SECURE_COOKIE: "false" SHOW_SAML_ERRORS: "true" THEME_USE: "default" + MYSQL_HOST: "db" + MYSQL_DATABASE: "silauth" + MYSQL_USER: "silauth" + MYSQL_PASSWORD: "silauth" BASE_URL_PATH: "http://ssp-idp1.local/" ssp-idp2.local: diff --git a/dockerbuild/run-integration-tests.sh b/dockerbuild/run-integration-tests.sh index 51d8fa04..f4ca4aa3 100755 --- a/dockerbuild/run-integration-tests.sh +++ b/dockerbuild/run-integration-tests.sh @@ -7,8 +7,8 @@ cd /data export COMPOSER_ALLOW_SUPERUSER=1; composer install whenavail "ssp-hub.local" 80 15 echo Hub ready -whenavail "ssp-idp1.local" 80 15 echo IDP 1 ready -whenavail "ssp-sp1.local" 80 15 echo SP 1 ready +whenavail "ssp-idp1.local" 80 5 echo IDP 1 ready +whenavail "ssp-sp1.local" 80 5 echo SP 1 ready ./vendor/bin/behat \ --no-interaction \