diff --git a/db/src/main/resources/test/db/default.yaml b/db/src/main/resources/test/db/default.yaml index 8843459..1777bff 100644 --- a/db/src/main/resources/test/db/default.yaml +++ b/db/src/main/resources/test/db/default.yaml @@ -1,7 +1,7 @@ jdbc: test: driverClassName: com.mysql.cj.jdbc.Driver - jdbcUrl: "jdbc:mysql://db:3306/test?connectTimeout=0&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8" + jdbcUrl: "jdbc:mysql://db:3306/test?connectTimeout=0&createDatabaseIfNotExist=true&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8" username: root password: test minimumIdle: 1 diff --git a/db/src/main/resources/test/db/local.yaml b/db/src/main/resources/test/db/local.yaml index f8ebfab..15d8a64 100644 --- a/db/src/main/resources/test/db/local.yaml +++ b/db/src/main/resources/test/db/local.yaml @@ -1,3 +1,3 @@ jdbc: test: - jdbcUrl: "jdbc:mysql://192.168.10.64:33006/test?connectTimeout=0&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8" + jdbcUrl: "jdbc:mysql://localhost:33006/test?connectTimeout=0&createDatabaseIfNotExist=true&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8" diff --git a/run-test.sh b/run-test.sh index 26285fe..aa53e5a 100755 --- a/run-test.sh +++ b/run-test.sh @@ -1,10 +1,13 @@ #!/bin/sh -if [ -z `docker volume ls -q | grep -i test-m2` ]; then docker volume create test-m2; fi +if [ -z `docker volume ls -q | grep -i test-m2` ]; then + docker volume create test-m2; +fi docker-compose up -d db -sleep 30s +echo Pausing for 20 seconds.. +sleep 20 docker-compose run --rm mvn-build docker-compose build docker-compose run --rm fail docker-compose run --rm happy -docker-compose down \ No newline at end of file +#docker-compose down \ No newline at end of file