adorsys / psd2-accelerator

PSD2 Compliant Sandbox Implementing the XS2A API
https://adorsys.com/en/products/modelbank/
Other
27 stars 8 forks source link

Test errors on sandox-core #131

Closed gabrielrra closed 4 years ago

gabrielrra commented 4 years ago

When I run the tests it gives me those 3 errors

1 -

Test set: de.adorsys.psd2.sandbox.xs2a.ais.CucumberAisTest

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.913 s <<< FAILURE! - in de.adorsys.psd2.sandbox.xs2a.ais.CucumberAisTest

Feature: AIS Time elapsed: 2.913 s <<< ERROR! java.lang.IllegalStateException: Failed to load ApplicationContext. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfiguration$LiquibaseConfiguration.class]: Invocation of init method failed; nested exception is com.zaxxer.hikari.pool.HikariPool\$PoolInitializationException: Failed to initialize pool: Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration

Caused by: com.zaxxer.hikari.pool.HikariPool\$PoolInitializationException: Failed to initialize pool: Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration.

Caused by: java.lang.IllegalStateException: Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration

2-

Test set: de.adorsys.psd2.sandbox.xs2a.piis.CucumberPiisTest

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.223 s <<< FAILURE! - in de.adorsys.psd2.sandbox.xs2a.piis.CucumberPiisTest

Feature: Payment Instrument Issuer Service Time elapsed: 3.222 s <<< ERROR!

java.lang.IllegalStateException: Failed to load ApplicationContext > Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfiguration$LiquibaseConfiguration.class]: Invocation of init method failed; nested exception is com.zaxxer.hikari.pool.HikariPool\$PoolInitializationException: Failed to initialize pool: Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration

Caused by: com.zaxxer.hikari.pool.HikariPool\$PoolInitializationException: Failed to initialize pool: Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration

Caused by: java.lang.IllegalStateException: Previous attempts to find a Docker environment failed. Will not retry. Please see logs and check configuration

3-

Test set: de.adorsys.psd2.sandbox.xs2a.pis.CucumberPisTest

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 37.517 s <<< FAILURE! - in de.adorsys.psd2.sandbox.xs2a.pis.CucumberPisTest

Feature: PIS Time elapsed: 37.517 s <<< ERROR! java.lang.IllegalStateException: Failed to load ApplicationContext Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfiguration$LiquibaseConfiguration.class]: Invocation of init method failed; nested exception is com.zaxxer.hikari.pool.HikariPool\$PoolInitializationException: Failed to initialize pool: Could not find a valid Docker environment. Please see logs and check configuration

Caused by: com.zaxxer.hikari.pool.HikariPool\$PoolInitializationException: Failed to initialize pool: Could not find a valid Docker environment. Please see logs and check configuration

Caused by: java.lang.IllegalStateException: Could not find a valid Docker environment. Please see logs and check configuration

I am using Ubuntu 20.04

gabrielrra commented 4 years ago

I had to use sudo make run to run the server, otherwise it gave me a Docker error:

$ make run
docker-compose up --build
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
make: *** [Makefile:21: run] Error 1