From 2e2ea43f60186313c03a1f45b6b8ff176db53c77 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Wed, 7 Sep 2016 09:56:29 +0200 Subject: [PATCH 001/119] MOTECH-2895: Migrate PR jobs to Travis --- .travis.yml | 25 +++++++++++++++++++++++++ config_services.sh | 15 +++++++++++++++ pom.xml | 1 + run_build.sh | 10 ++++++++++ 4 files changed, 51 insertions(+) create mode 100644 .travis.yml create mode 100644 config_services.sh create mode 100644 run_build.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..3954c929f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: java +jdk: + - oraclejdk8 + +env: + - DB=mysql + - DB=psql + +services: + - mysql + - postgresql + +before_install: + - sudo chmod +x ./config_services.sh + - ./config_services.sh + +install: true + +script: + - sudo chmod +x ./run_build.sh + - ./run_build.sh + +cache: + directories: + - $HOME/.m2 \ No newline at end of file diff --git a/config_services.sh b/config_services.sh new file mode 100644 index 000000000..7c5f09da4 --- /dev/null +++ b/config_services.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +sudo apt-get update -qq + +#Installation and configuration of ActiveMQ +sudo apt-get install -y activemq -qq +sudo ln -s /etc/activemq/instances-available/main /etc/activemq/instances-enabled/main +sudo sed -e 's/ copy-dependencies + package runtime true diff --git a/run_build.sh b/run_build.sh new file mode 100644 index 000000000..6853089a8 --- /dev/null +++ b/run_build.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then + if [ "$DB" = "mysql" ]; then + echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root + mvn clean install -PIT -U -q + elif [ "$DB" = "psql" ]; then + mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U + fi +fi \ No newline at end of file From 6922949b0b0a5fbb394305553f628293645d546a Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Wed, 7 Sep 2016 11:53:51 +0200 Subject: [PATCH 002/119] MOTECH-2895: 2nd try --- .travis.yml | 2 +- config_services.sh | 6 ------ run_build.sh | 4 ++-- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3954c929f..d8a5614d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,4 +22,4 @@ script: cache: directories: - - $HOME/.m2 \ No newline at end of file + - $HOME/.m2 diff --git a/config_services.sh b/config_services.sh index 7c5f09da4..362376b3a 100644 --- a/config_services.sh +++ b/config_services.sh @@ -7,9 +7,3 @@ sudo apt-get install -y activemq -qq sudo ln -s /etc/activemq/instances-available/main /etc/activemq/instances-enabled/main sudo sed -e 's/ Date: Wed, 7 Sep 2016 13:16:24 +0200 Subject: [PATCH 003/119] MOTECH-2895: 3rd try --- config_services.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config_services.sh b/config_services.sh index 362376b3a..ccdd74c98 100644 --- a/config_services.sh +++ b/config_services.sh @@ -7,3 +7,5 @@ sudo apt-get install -y activemq -qq sudo ln -s /etc/activemq/instances-available/main /etc/activemq/instances-enabled/main sudo sed -e 's/ Date: Wed, 7 Sep 2016 13:24:48 +0200 Subject: [PATCH 004/119] MOTECH-2895: 4rth try --- config_services.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config_services.sh b/config_services.sh index ccdd74c98..d014d0172 100644 --- a/config_services.sh +++ b/config_services.sh @@ -8,4 +8,5 @@ sudo ln -s /etc/activemq/instances-available/main /etc/activemq/instances-enable sudo sed -e 's/ Date: Wed, 7 Sep 2016 13:30:03 +0200 Subject: [PATCH 005/119] MOTECH-2895: 4rth try --- config_services.sh | 3 --- run_build.sh | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/config_services.sh b/config_services.sh index d014d0172..362376b3a 100644 --- a/config_services.sh +++ b/config_services.sh @@ -7,6 +7,3 @@ sudo apt-get install -y activemq -qq sudo ln -s /etc/activemq/instances-available/main /etc/activemq/instances-enabled/main sudo sed -e 's/ Date: Wed, 7 Sep 2016 13:37:06 +0200 Subject: [PATCH 006/119] MOTECH-2895: 5th try --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d8a5614d0..415151814 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: java jdk: - - oraclejdk8 + - oraclejdk7 env: - DB=mysql From 95ba5df5eacb24698ad8665966c07f50a60373b4 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Wed, 7 Sep 2016 13:44:24 +0200 Subject: [PATCH 007/119] MOTECH-2895: 6th try --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 415151814..d8a5614d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: java jdk: - - oraclejdk7 + - oraclejdk8 env: - DB=mysql From 6a6072820d1f24dfce5b54f92ac5141cdb19e898 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Wed, 7 Sep 2016 13:52:10 +0200 Subject: [PATCH 008/119] MOTECH-2895: 8th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 02e91ffe0..82fe10919 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,7 +3,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root - mvn clean install -PIT -U + mvn clean install -PIT -U -q elif [ "$DB" = "psql" ]; then mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U -q fi From c8bb65e0d296c32f6583ce2569451eaf03349425 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Wed, 7 Sep 2016 13:55:56 +0200 Subject: [PATCH 009/119] MOTECH-2895: 9th try --- .travis.yml | 2 +- pom.xml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d8a5614d0..3954c929f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,4 +22,4 @@ script: cache: directories: - - $HOME/.m2 + - $HOME/.m2 \ No newline at end of file diff --git a/pom.xml b/pom.xml index ec6ef641d..6f4df2102 100644 --- a/pom.xml +++ b/pom.xml @@ -854,7 +854,6 @@ copy-dependencies - package runtime true From 829a073d8c83c5d4f794347f06524051e16eec4c Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Wed, 7 Sep 2016 14:02:58 +0200 Subject: [PATCH 010/119] MOTECH-2895: 10th try --- run_build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_build.sh b/run_build.sh index 82fe10919..f81ab6d72 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,8 +3,8 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root - mvn clean install -PIT -U -q + sudo mvn clean install -PIT -U -q elif [ "$DB" = "psql" ]; then - mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U -q + sudo mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U -q fi fi From a299ad85c5e135226b6756a3dbb6ce5f889c99f4 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Wed, 7 Sep 2016 14:08:13 +0200 Subject: [PATCH 011/119] MOTECH-2895: 11th try --- run_build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_build.sh b/run_build.sh index f81ab6d72..82fe10919 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,8 +3,8 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root - sudo mvn clean install -PIT -U -q + mvn clean install -PIT -U -q elif [ "$DB" = "psql" ]; then - sudo mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U -q + mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U -q fi fi From ff68025233afc8a9742f155f8edada7c67dac22f Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Wed, 7 Sep 2016 14:44:20 +0200 Subject: [PATCH 012/119] MOTECH-2895: 12th try --- run_build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run_build.sh b/run_build.sh index 82fe10919..8ef090d3f 100644 --- a/run_build.sh +++ b/run_build.sh @@ -1,10 +1,11 @@ #!/usr/bin/env bash if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then + ./tx/generate-config.sh if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root - mvn clean install -PIT -U -q + mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then - mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U -q + mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi fi From 4815e039fb47e3cdbdaccafd21b86ee3bfbd2e4b Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Wed, 7 Sep 2016 15:09:19 +0200 Subject: [PATCH 013/119] MOTECH-2895: 13th try --- .travis.yml | 2 ++ run_build.sh | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3954c929f..927d5c12c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,8 @@ services: - mysql - postgresql +sudo: required + before_install: - sudo chmod +x ./config_services.sh - ./config_services.sh diff --git a/run_build.sh b/run_build.sh index 8ef090d3f..25b1b6122 100644 --- a/run_build.sh +++ b/run_build.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then - ./tx/generate-config.sh if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root mvn clean install -PIT -U From 3b01a03afe75ad3f927ffe815f724b7c7e7b3479 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Wed, 7 Sep 2016 15:20:12 +0200 Subject: [PATCH 014/119] MOTECH-2895: 14th try --- run_build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run_build.sh b/run_build.sh index 25b1b6122..c570c12fc 100644 --- a/run_build.sh +++ b/run_build.sh @@ -2,9 +2,11 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then + mv ./testdata/mysql/bootstrap.properties . echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then + mv ./testdata/psql/bootstrap.properties . mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi fi From 7d83f29ecfc5a2d7731eef2f23973bbae025f419 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Wed, 7 Sep 2016 15:24:57 +0200 Subject: [PATCH 015/119] MOTECH-2895: 15th try --- run_build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run_build.sh b/run_build.sh index c570c12fc..c18984874 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,10 +3,14 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then mv ./testdata/mysql/bootstrap.properties . + ls + sudo chmod +r ./bootstrap.properties echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then mv ./testdata/psql/bootstrap.properties . + ll + chmod +r ./bootstrap.properties mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi fi From 6e7e370eedd39e590ba4ac69aca4398dec3b7967 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Wed, 7 Sep 2016 15:30:32 +0200 Subject: [PATCH 016/119] MOTECH-2895: 16th try --- run_build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index c18984874..94ceacda8 100644 --- a/run_build.sh +++ b/run_build.sh @@ -4,12 +4,13 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then mv ./testdata/mysql/bootstrap.properties . ls + ls ../../ + ls $HOME sudo chmod +r ./bootstrap.properties echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then mv ./testdata/psql/bootstrap.properties . - ll chmod +r ./bootstrap.properties mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi From 1a1eb59659b266b2629c03dbd4a951ae62744991 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Wed, 7 Sep 2016 15:33:53 +0200 Subject: [PATCH 017/119] MOTECH-2895: 17th try --- config_services.sh | 8 ++++---- run_build.sh | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/config_services.sh b/config_services.sh index 362376b3a..7b3a38253 100644 --- a/config_services.sh +++ b/config_services.sh @@ -3,7 +3,7 @@ sudo apt-get update -qq #Installation and configuration of ActiveMQ -sudo apt-get install -y activemq -qq -sudo ln -s /etc/activemq/instances-available/main /etc/activemq/instances-enabled/main -sudo sed -e 's/ Date: Wed, 7 Sep 2016 15:38:06 +0200 Subject: [PATCH 018/119] MOTECH-2895: 18th try --- run_build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run_build.sh b/run_build.sh index 061f6dbb6..9b404101f 100644 --- a/run_build.sh +++ b/run_build.sh @@ -9,6 +9,10 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then ls ../ echo "2 wstecz" ls ../../ + echo "3 wstecz" + ls ../../../ + echo "$ wstecz" + ls ../../../../ echo "dom" ls $HOME sudo chmod +r ./bootstrap.properties From a24f68ca8acb1f6e23bcf8d8e4ee2117b84902fd Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Wed, 7 Sep 2016 15:45:17 +0200 Subject: [PATCH 019/119] MOTECH-2895: 19th try --- run_build.sh | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/run_build.sh b/run_build.sh index 9b404101f..5bd2daf39 100644 --- a/run_build.sh +++ b/run_build.sh @@ -2,25 +2,13 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then - mv ./testdata/mysql/bootstrap.properties . - echo "Tutej" - ls - echo "1 wstecz" - ls ../ - echo "2 wstecz" - ls ../../ - echo "3 wstecz" - ls ../../../ - echo "$ wstecz" - ls ../../../../ - echo "dom" - ls $HOME - sudo chmod +r ./bootstrap.properties + mv ./testdata/mysql/bootstrap.properties ./testdata/ + sudo chmod +r ./testdata/bootstrap.properties echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then - mv ./testdata/psql/bootstrap.properties . - chmod +r ./bootstrap.properties + mv ./testdata/psql/bootstrap.properties ./testdata/ + chmod +r ./testdata/bootstrap.properties mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi fi From 00ea6404a8b391c164114a5cfa7ccf8a9cf942fe Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Wed, 7 Sep 2016 15:59:59 +0200 Subject: [PATCH 020/119] MOTECH-2895: 20th try --- .travis.yml | 2 -- run_build.sh | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 927d5c12c..3954c929f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,8 +10,6 @@ services: - mysql - postgresql -sudo: required - before_install: - sudo chmod +x ./config_services.sh - ./config_services.sh diff --git a/run_build.sh b/run_build.sh index 5bd2daf39..30fd378e9 100644 --- a/run_build.sh +++ b/run_build.sh @@ -2,13 +2,13 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then - mv ./testdata/mysql/bootstrap.properties ./testdata/ - sudo chmod +r ./testdata/bootstrap.properties + mv ./testdata/mysql/bootstrap.properties $HOME/.motech/config/ + chmod +r $HOME/.motech/config/bootstrap.properties echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then - mv ./testdata/psql/bootstrap.properties ./testdata/ - chmod +r ./testdata/bootstrap.properties + mv ./testdata/psql/bootstrap.properties $HOME/.motech/config/ + chmod +r $HOME/.motech/config/bootstrap.properties mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi fi From 59aef0e72896256d2b8a1dfa5aa03bb4b0b82a4c Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Wed, 7 Sep 2016 16:07:39 +0200 Subject: [PATCH 021/119] MOTECH-2895: 21th try --- run_build.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/run_build.sh b/run_build.sh index 30fd378e9..936f7bbf2 100644 --- a/run_build.sh +++ b/run_build.sh @@ -2,13 +2,11 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then - mv ./testdata/mysql/bootstrap.properties $HOME/.motech/config/ - chmod +r $HOME/.motech/config/bootstrap.properties + chmod +r ./testdata/mysql/bootstrap.properties echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then - mv ./testdata/psql/bootstrap.properties $HOME/.motech/config/ - chmod +r $HOME/.motech/config/bootstrap.properties + chmod +r ./testdata/psql/bootstrap.properties mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi fi From 421b504dfbc53bac286ff4e2468d5f349fc7f2cf Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 08:22:00 +0200 Subject: [PATCH 022/119] MOTECH-2895: 23th try --- run_build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/run_build.sh b/run_build.sh index 936f7bbf2..e189947d6 100644 --- a/run_build.sh +++ b/run_build.sh @@ -2,11 +2,14 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then - chmod +r ./testdata/mysql/bootstrap.properties + chmod a+r ./testdata/mysql/bootstrap.properties + cp ./testdata/mysql/bootstrap.properties . echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then - chmod +r ./testdata/psql/bootstrap.properties + chmod a+r ./testdata/psql/bootstrap.properties + cp ./testdata/mysql/bootstrap.properties . + chmod a+r ./bootstrap.properties mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi fi From 2e225571d0aab859f774db37eb0d4e580d98f636 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 08:22:34 +0200 Subject: [PATCH 023/119] MOTECH-2895: 23th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index e189947d6..44e6cf9c0 100644 --- a/run_build.sh +++ b/run_build.sh @@ -8,7 +8,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then chmod a+r ./testdata/psql/bootstrap.properties - cp ./testdata/mysql/bootstrap.properties . + cp ./testdata/psql/bootstrap.properties . chmod a+r ./bootstrap.properties mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi From 38db810c2334e347fa9cd309efa25d46423ef304 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 08:26:03 +0200 Subject: [PATCH 024/119] MOTECH-2895: 24th try --- run_build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run_build.sh b/run_build.sh index 44e6cf9c0..8d2940c52 100644 --- a/run_build.sh +++ b/run_build.sh @@ -4,6 +4,9 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then chmod a+r ./testdata/mysql/bootstrap.properties cp ./testdata/mysql/bootstrap.properties . + touch ~/.motech/config + cp ./bootstrap.properties ~/.motech/config/ + chmod a+r ~/.motech/config/bootstrap.properties echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then From a97bb24006f5bdb28140fd5d7f02ad400fbe681d Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 08:39:43 +0200 Subject: [PATCH 025/119] MOTECH-2895: 25th try --- run_build.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/run_build.sh b/run_build.sh index 8d2940c52..596356c21 100644 --- a/run_build.sh +++ b/run_build.sh @@ -2,12 +2,8 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then - chmod a+r ./testdata/mysql/bootstrap.properties - cp ./testdata/mysql/bootstrap.properties . - touch ~/.motech/config - cp ./bootstrap.properties ~/.motech/config/ - chmod a+r ~/.motech/config/bootstrap.properties - echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root + echo "create database motechquartz;\ncreate database motechschema;\ncreate database motechdata;\n" | mysql -u root + echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then chmod a+r ./testdata/psql/bootstrap.properties From 5d0355a521e0a02ebcb2317be2d508bf0c886815 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 08:41:44 +0200 Subject: [PATCH 026/119] MOTECH-2895: 26th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 596356c21..e1deade50 100644 --- a/run_build.sh +++ b/run_build.sh @@ -2,7 +2,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then - echo "create database motechquartz;\ncreate database motechschema;\ncreate database motechdata;\n" | mysql -u root + echo "create database motechquartz;\ncreate database motechschema;\ncreate database motechdata;\nshow databases;\n" | mysql -u root echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then From 6a468aede8d0fbcff4e8afb8fe217aebed9bc6ee Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 08:54:46 +0200 Subject: [PATCH 027/119] MOTECH-2895: 27th try --- alerts/pom.xml | 3 ++- config_services.sh | 2 +- run_build.sh | 4 ---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/alerts/pom.xml b/alerts/pom.xml index a41474487..a77b34ea7 100644 --- a/alerts/pom.xml +++ b/alerts/pom.xml @@ -122,7 +122,8 @@ target/failsafe-reports/failsafe-summary-it.xml - always + 1 + false ${modules.root.dir}/maven.properties diff --git a/config_services.sh b/config_services.sh index 7b3a38253..25ea5d2f4 100644 --- a/config_services.sh +++ b/config_services.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -sudo apt-get update -qq +#sudo apt-get update -qq #Installation and configuration of ActiveMQ #sudo apt-get install -y activemq -qq diff --git a/run_build.sh b/run_build.sh index e1deade50..853df8a20 100644 --- a/run_build.sh +++ b/run_build.sh @@ -2,13 +2,9 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then - echo "create database motechquartz;\ncreate database motechschema;\ncreate database motechdata;\nshow databases;\n" | mysql -u root echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then - chmod a+r ./testdata/psql/bootstrap.properties - cp ./testdata/psql/bootstrap.properties . - chmod a+r ./bootstrap.properties mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi fi From 7a9b5c4be70255a3129bf8c9333dea706eaf673a Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 08:56:44 +0200 Subject: [PATCH 028/119] MOTECH-2895: 28th try --- run_build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_build.sh b/run_build.sh index 853df8a20..79a6b1033 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,8 +3,8 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U + mvn clean install -PIT -U -B elif [ "$DB" = "psql" ]; then - mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U + mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U -B fi fi From eddc0664f5f93b80642182fa7ac2d9e441a041b6 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 09:04:08 +0200 Subject: [PATCH 029/119] MOTECH-2895: 28th try --- .travis.yml | 2 -- alerts/pom.xml | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3954c929f..8cde5efb4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,8 +14,6 @@ before_install: - sudo chmod +x ./config_services.sh - ./config_services.sh -install: true - script: - sudo chmod +x ./run_build.sh - ./run_build.sh diff --git a/alerts/pom.xml b/alerts/pom.xml index a77b34ea7..a41474487 100644 --- a/alerts/pom.xml +++ b/alerts/pom.xml @@ -122,8 +122,7 @@ target/failsafe-reports/failsafe-summary-it.xml - 1 - false + always ${modules.root.dir}/maven.properties From 40576cecc0839530af56de61e96572e2308798cf Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 09:09:43 +0200 Subject: [PATCH 030/119] MOTECH-2895: 29th try --- .travis.yml | 2 ++ pom.xml | 1 - run_build.sh | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8cde5efb4..3954c929f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,8 @@ before_install: - sudo chmod +x ./config_services.sh - ./config_services.sh +install: true + script: - sudo chmod +x ./run_build.sh - ./run_build.sh diff --git a/pom.xml b/pom.xml index 6f4df2102..e97b4ca83 100644 --- a/pom.xml +++ b/pom.xml @@ -1075,7 +1075,6 @@ copy-test-config-files - pre-integration-test copy-resources diff --git a/run_build.sh b/run_build.sh index 79a6b1033..853df8a20 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,8 +3,8 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U -B + mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then - mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U -B + mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi fi From 35c6fa3f684e3764be813e592c8b7c8d78c1b029 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 09:16:23 +0200 Subject: [PATCH 031/119] MOTECH-2895: 29th try --- pom.xml | 1 + run_build.sh | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/pom.xml b/pom.xml index e97b4ca83..6f4df2102 100644 --- a/pom.xml +++ b/pom.xml @@ -1075,6 +1075,7 @@ copy-test-config-files + pre-integration-test copy-resources diff --git a/run_build.sh b/run_build.sh index 853df8a20..2876aa8a1 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,6 +3,12 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root + echo "DOM" + ls $HOME + echo ".MOTECH" + ls ~/.motech + echo "config" + ls ~/.motech/config/ mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U From 5c560e267b1ae15dfcc4aceab0d0b5c759f696ee Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 09:20:50 +0200 Subject: [PATCH 032/119] MOTECH-2895: 20th try --- run_build.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/run_build.sh b/run_build.sh index 2876aa8a1..b313d891a 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,13 +3,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - echo "DOM" - ls $HOME - echo ".MOTECH" - ls ~/.motech - echo "config" - ls ~/.motech/config/ - mvn clean install -PIT -U + sudo mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi From 3fa9908cc8e07bd7c027763508f2e97c24d430f0 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 09:22:08 +0200 Subject: [PATCH 033/119] MOTECH-2895: 30th try --- .travis.yml | 2 ++ run_build.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3954c929f..f49c03daf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,8 @@ script: - sudo chmod +x ./run_build.sh - ./run_build.sh +sudo: required + cache: directories: - $HOME/.m2 \ No newline at end of file diff --git a/run_build.sh b/run_build.sh index b313d891a..853df8a20 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,7 +3,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - sudo mvn clean install -PIT -U + mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi From e029950d332a0b82197cf318c80e4952975f8e09 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 09:28:02 +0200 Subject: [PATCH 034/119] MOTECH-2895: 31th try --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f49c03daf..15bd283d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ install: true script: - sudo chmod +x ./run_build.sh - - ./run_build.sh + - sudo ./run_build.sh sudo: required From 765e17506e8e6df6d5e69b2e69aa1aa11e9529be Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 09:32:01 +0200 Subject: [PATCH 035/119] MOTECH-2895: 32th try --- testdata/config-locations.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testdata/config-locations.properties b/testdata/config-locations.properties index 984104662..4cd914e1c 100644 --- a/testdata/config-locations.properties +++ b/testdata/config-locations.properties @@ -1 +1 @@ -config.location=${sys:user.home}/.motech/configtest/, ${sys:user.home}/.motech/config/, /etc/motech/ +config.location=${sys:user.home}/.motech/configtest/, ${sys:user.home}/.motech/config/, /etc/motech/ \ No newline at end of file From e0e433fb48bf44787af8781e416fd2afe74abf77 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 09:34:55 +0200 Subject: [PATCH 036/119] MOTECH-2895: 33th try --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 15bd283d2..f49c03daf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ install: true script: - sudo chmod +x ./run_build.sh - - sudo ./run_build.sh + - ./run_build.sh sudo: required From 830fc4a874c4b9e5e7ea04b6f20431441c0cb6b3 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 10:04:14 +0200 Subject: [PATCH 037/119] MOTECH-2895: 34th try --- .travis.yml | 4 +--- run_build.sh | 5 ++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index f49c03daf..d8a5614d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,8 +20,6 @@ script: - sudo chmod +x ./run_build.sh - ./run_build.sh -sudo: required - cache: directories: - - $HOME/.m2 \ No newline at end of file + - $HOME/.m2 diff --git a/run_build.sh b/run_build.sh index 853df8a20..8bee3aea9 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,7 +3,10 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U + mvn clean install -PIT -U & + sleep 5 + cp ./testdata/mysql/bootstrap.properties ~/.motech/config/ + cp ./testdata/mysql/bootstrap.properties ~/ elif [ "$DB" = "psql" ]; then mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi From 65e8fc69998b714c75180303e1a01e173f9f9a02 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 10:07:09 +0200 Subject: [PATCH 038/119] MOTECH-2895: 35th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 8bee3aea9..8259a221d 100644 --- a/run_build.sh +++ b/run_build.sh @@ -4,7 +4,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn clean install -PIT -U & - sleep 5 + sleep 20 cp ./testdata/mysql/bootstrap.properties ~/.motech/config/ cp ./testdata/mysql/bootstrap.properties ~/ elif [ "$DB" = "psql" ]; then From f472fe4697aa215aaabb72feecdffcaa0f140baf Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 10:07:44 +0200 Subject: [PATCH 039/119] MOTECH-2895: 36th try --- run_build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/run_build.sh b/run_build.sh index 8259a221d..d8567438e 100644 --- a/run_build.sh +++ b/run_build.sh @@ -8,6 +8,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then cp ./testdata/mysql/bootstrap.properties ~/.motech/config/ cp ./testdata/mysql/bootstrap.properties ~/ elif [ "$DB" = "psql" ]; then + cp ./testdata/mysql/bootstrap.properties ~/ mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi fi From 013d262243c582b0afe9cb860c32e228eec18c55 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 10:11:08 +0200 Subject: [PATCH 040/119] MOTECH-2895: 37th try --- run_build.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/run_build.sh b/run_build.sh index d8567438e..d1750e611 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,12 +3,10 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U & - sleep 20 - cp ./testdata/mysql/bootstrap.properties ~/.motech/config/ - cp ./testdata/mysql/bootstrap.properties ~/ + cp ./testdata/mysql/bootstrap.properties . + mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then - cp ./testdata/mysql/bootstrap.properties ~/ + cp ./testdata/psql/bootstrap.properties . mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi fi From c809506cc5878734e20c6b877191ae2ad4c65558 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 10:15:46 +0200 Subject: [PATCH 041/119] MOTECH-2895: 38th try --- run_build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/run_build.sh b/run_build.sh index d1750e611..d0627c5cf 100644 --- a/run_build.sh +++ b/run_build.sh @@ -4,6 +4,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root cp ./testdata/mysql/bootstrap.properties . + chmod a+r ./bootstrap.properties mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties . From 47910b9a4f9b1b25a6b8ed013cb4bfe4f64d5996 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 10:20:57 +0200 Subject: [PATCH 042/119] MOTECH-2895: 39th try --- run_build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/run_build.sh b/run_build.sh index d0627c5cf..38584395a 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,9 +3,10 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - cp ./testdata/mysql/bootstrap.properties . - chmod a+r ./bootstrap.properties - mvn clean install -PIT -U + touch ~/.motech/config + cp ./testdata/mysql/bootstrap.properties ~/.motech/config/ + chmod a+r ~/.motech/config/bootstrap.properties + mvn install -PIT -U elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties . mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U From 65d762661108063ae7eaca4cdc57bb662c7a6838 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 10:25:18 +0200 Subject: [PATCH 043/119] MOTECH-2895: 40th try --- run_build.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/run_build.sh b/run_build.sh index 38584395a..d4d964b5a 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,10 +3,9 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - touch ~/.motech/config - cp ./testdata/mysql/bootstrap.properties ~/.motech/config/ - chmod a+r ~/.motech/config/bootstrap.properties - mvn install -PIT -U + cp ./testdata/mysql/bootstrap.properties . + chmod 777 ./bootstrap.properties + mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties . mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U From cf49bbe91fe306048ea60d85a924eae40cebc205 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 10:26:39 +0200 Subject: [PATCH 044/119] MOTECH-2895: 41th try --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6f4df2102..867b0e3e9 100644 --- a/pom.xml +++ b/pom.xml @@ -575,7 +575,7 @@ org.apache.servicemix.bundles.velocity 1.6.4_4 - + org.apache.servicemix.bundles org.apache.servicemix.bundles.velocity-tools 2.0_1 From 7025d18397b709dd177b534a44b9c5361fce6827 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 10:53:06 +0200 Subject: [PATCH 045/119] MOTECH-2895: 42th try --- pom.xml | 2 +- run_build.sh | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 867b0e3e9..63d690641 100644 --- a/pom.xml +++ b/pom.xml @@ -1075,7 +1075,7 @@ copy-test-config-files - pre-integration-test + validate copy-resources diff --git a/run_build.sh b/run_build.sh index d4d964b5a..bb3f6ebb3 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,8 +3,6 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - cp ./testdata/mysql/bootstrap.properties . - chmod 777 ./bootstrap.properties mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties . From 9a03d538f02f54590ad88a9010e915e542732f63 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 11:22:38 +0200 Subject: [PATCH 046/119] MOTECH-2895: 43th try --- log.txt | 782 +++++++++++++++++++++++++++ pom.xml | 2 +- testdata/config-locations.properties | 2 +- 3 files changed, 784 insertions(+), 2 deletions(-) create mode 100644 log.txt diff --git a/log.txt b/log.txt new file mode 100644 index 000000000..0481f833d --- /dev/null +++ b/log.txt @@ -0,0 +1,782 @@ +[INFO] Scanning for projects... +[INFO] ------------------------------------------------------------------------ +[INFO] Reactor Build Order: +[INFO] +[INFO] MOTECH Modules +[INFO] Alerts Module +[INFO] Appointments Module +[INFO] CMS Lite Module +[INFO] CommCare Module +[INFO] Event Logging Module +[INFO] Hindi Transliteration +[INFO] Http Agent Module +[INFO] mTraining Module +[INFO] SMS Module +[INFO] MOTECH Message Campaign +[INFO] OpenMRS +[INFO] Pill Reminder Module +[INFO] Schedule Tracking Modules +[INFO] MOTECH Batch +[INFO] MOTECH Hub +[INFO] IVR Module +[INFO] DHIS2 module +[INFO] Care Services Discovery +[INFO] Metrics +[INFO] ODK Module +[INFO] IHE Interop Module +[INFO] Atom Client +[INFO] RapidPro Module +[INFO] +[INFO] ------------------------------------------------------------------------ +[INFO] Building MOTECH Modules 0.30-SNAPSHOT +[INFO] ------------------------------------------------------------------------ +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-pax-it/0.30-SNAPSHOT/maven-metadata.xml +780/780 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-pax-it/0.30-SNAPSHOT/maven-metadata.xml (780 B at 2.6 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech/0.30-SNAPSHOT/maven-metadata.xml +600/600 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech/0.30-SNAPSHOT/maven-metadata.xml (600 B at 5.6 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-pax-it-container/0.30-SNAPSHOT/maven-metadata.xml +790/790 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-pax-it-container/0.30-SNAPSHOT/maven-metadata.xml (790 B at 7.3 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-osgi-platform/0.30-SNAPSHOT/maven-metadata.xml +787/787 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-osgi-platform/0.30-SNAPSHOT/maven-metadata.xml (787 B at 7.3 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-testing-utils/0.30-SNAPSHOT/maven-metadata.xml +787/787 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-testing-utils/0.30-SNAPSHOT/maven-metadata.xml (787 B at 7.3 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-commons-date/0.30-SNAPSHOT/maven-metadata.xml +795/795 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-commons-date/0.30-SNAPSHOT/maven-metadata.xml (795 B at 6.9 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-commons-api/0.30-SNAPSHOT/maven-metadata.xml +794/794 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-commons-api/0.30-SNAPSHOT/maven-metadata.xml (794 B at 7.0 KB/sec) +[INFO] +[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ modules --- +[INFO] Deleting /home/user/repos/modules/target +[INFO] +[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-dependency-convergence) @ modules --- +[INFO] +[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ modules --- +[INFO] +[INFO] --- maven-dependency-plugin:2.8:resolve (list-dependencies) @ modules --- +[INFO] +[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (copy-osgi-dependencies) @ modules --- +[INFO] org.apache.servicemix.bundles.spring-beans-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-core-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] org.eclipse.gemini.blueprint.io-1.0.2.RELEASE.jar already exists in destination. +[INFO] org.eclipse.gemini.blueprint.core-1.0.2.RELEASE.jar already exists in destination. +[INFO] org.eclipse.osgi.services-3.3.0.v20110513.jar already exists in destination. +[INFO] log4j-1.2.17.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-context-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] jcl-over-slf4j-1.7.7.jar already exists in destination. +[INFO] slf4j-api-1.7.7.jar already exists in destination. +[INFO] org.osgi.compendium-5.0.0.jar already exists in destination. +[INFO] slf4j-log4j12-1.7.7.jar already exists in destination. +[INFO] +[INFO] >>> maven-pmd-plugin:3.5:check (default) > :pmd @ modules >>> +[INFO] +[INFO] --- maven-pmd-plugin:3.5:pmd (pmd) @ modules --- +[INFO] +[INFO] <<< maven-pmd-plugin:3.5:check (default) < :pmd @ modules <<< +[INFO] +[INFO] --- maven-pmd-plugin:3.5:check (default) @ modules --- +[INFO] +[INFO] >>> maven-pmd-plugin:3.5:cpd-check (default) > :cpd @ modules >>> +[INFO] +[INFO] --- maven-pmd-plugin:3.5:cpd (cpd) @ modules --- +[INFO] +[INFO] <<< maven-pmd-plugin:3.5:cpd-check (default) < :cpd @ modules <<< +[INFO] +[INFO] --- maven-pmd-plugin:3.5:cpd-check (default) @ modules --- +[INFO] +[INFO] --- maven-checkstyle-plugin:2.10:check (default) @ modules --- +[INFO] Starting audit... +Audit done. + +[INFO] +[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-test-config-files) @ modules --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] Copying 1 resource +[INFO] Copying 1 resource +[INFO] +[INFO] --- sql-maven-plugin:1.5:execute (drop-db) @ modules --- +[INFO] Skipping sql execution for project with packaging type 'pom' +[INFO] +[INFO] --- sql-maven-plugin:1.5:execute (create-db) @ modules --- +[INFO] Skipping sql execution for project with packaging type 'pom' +[INFO] +[INFO] --- maven-failsafe-plugin:2.17:integration-test (integration-test) @ modules --- +[INFO] No tests to run. +[INFO] +[INFO] --- maven-clean-plugin:2.5:clean (clean-test-config-files) @ modules --- +[INFO] Deleting /home/user/.motech/config (includes = [bootstrap.properties, motech-settings.properties, datanucleus_data.properties, datanucleus_schema.properties, flyway_data.properties, flyway_schema.properties], excludes = []) +[INFO] +[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-no-package-cycles) @ modules --- +[INFO] Directory /home/user/repos/modules/target/classes could not be found. +[INFO] Directory /home/user/repos/modules/target/test-classes could not be found. +[INFO] No directories with classes to check for cycles found. +[INFO] +[INFO] --- maven-failsafe-plugin:2.17:verify (verify) @ modules --- +[INFO] No tests to run. +[INFO] +[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ modules --- +[INFO] Installing /home/user/repos/modules/pom.xml to /home/user/.m2/repository/org/motechproject/modules/0.30-SNAPSHOT/modules-0.30-SNAPSHOT.pom +[INFO] +[INFO] ------------------------------------------------------------------------ +[INFO] Building Alerts Module 0.30-SNAPSHOT +[INFO] ------------------------------------------------------------------------ +Downloading: http://nexus.motechproject.org/content/repositories/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml +Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml +820/820 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml (820 B at 6.7 KB/sec) +623/623 B Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml (623 B at 0.9 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml +Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml +709/709 B Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml (709 B at 12.1 KB/sec) +906/906 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml (906 B at 8.0 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-server-config/0.30-SNAPSHOT/maven-metadata.xml +796/796 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-server-config/0.30-SNAPSHOT/maven-metadata.xml (796 B at 7.5 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-dataservices/0.30-SNAPSHOT/maven-metadata.xml +795/795 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-dataservices/0.30-SNAPSHOT/maven-metadata.xml (795 B at 7.4 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-commons-sql/0.30-SNAPSHOT/maven-metadata.xml +794/794 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-commons-sql/0.30-SNAPSHOT/maven-metadata.xml (794 B at 7.4 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-config-core/0.30-SNAPSHOT/maven-metadata.xml +794/794 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-config-core/0.30-SNAPSHOT/maven-metadata.xml (794 B at 7.4 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-osgi-web-util/0.30-SNAPSHOT/maven-metadata.xml +796/796 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-osgi-web-util/0.30-SNAPSHOT/maven-metadata.xml (796 B at 7.4 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-osgi-extender-fragment/0.30-SNAPSHOT/maven-metadata.xml +805/805 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-osgi-extender-fragment/0.30-SNAPSHOT/maven-metadata.xml (805 B at 7.6 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-dataservices-migration/0.30-SNAPSHOT/maven-metadata.xml +805/805 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-dataservices-migration/0.30-SNAPSHOT/maven-metadata.xml (805 B at 7.3 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-event/0.30-SNAPSHOT/maven-metadata.xml +788/788 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-event/0.30-SNAPSHOT/maven-metadata.xml (788 B at 7.2 KB/sec) +[INFO] +[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ alerts --- +[INFO] Deleting /home/user/repos/modules/alerts/target +[INFO] +[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-dependency-convergence) @ alerts --- +[INFO] +[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ alerts --- +[INFO] +[INFO] --- maven-dependency-plugin:2.8:resolve (list-dependencies) @ alerts --- +[INFO] +[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (copy-osgi-dependencies) @ alerts --- +[INFO] paranamer-2.6-sources.jar already exists in destination. +[INFO] kahadb-5.4.2.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-context-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] org.apache.servicemix.specs.saaj-api-1.3-2.2.0.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.paranamer-2.6_1.jar already exists in destination. +[INFO] aopalliance-1.0.jar already exists in destination. +[INFO] org.apache.felix.eventadmin-1.3.2.jar already exists in destination. +[INFO] quartz-2.2.1.jar already exists in destination. +[INFO] datanucleus-core-4.0.1.jar already exists in destination. +[INFO] maven-scm-provider-svnexe-1.4.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.saaj-impl-1.3.25_1.jar already exists in destination. +[INFO] motech-platform-dataservices-migration-0.30-SNAPSHOT.jar already exists in destination. +[INFO] javax.management.j2ee-api-1.1.1.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-expression-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] datanucleus-rdbms-4.0.1.jar already exists in destination. +[INFO] datanucleus-java8-4.0.5.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-aop-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] mimepull-1.9.jar already exists in destination. +[INFO] asm-commons-5.0.3.jar already exists in destination. +[INFO] commons-digester-2.1.jar already exists in destination. +[INFO] org.eclipse.gemini.blueprint.core-1.0.2.RELEASE.jar already exists in destination. +[INFO] motech-platform-commons-date-0.30-SNAPSHOT.jar already exists in destination. +[INFO] commons-logging-1.1.1.jar already exists in destination. +[INFO] commons-io-2.4.jar already exists in destination. +[INFO] commons-beanutils-1.9.2.jar already exists in destination. +[INFO] flyway-core-2.3.1.jar already exists in destination. +[INFO] spring-security-web-3.2.8.RELEASE.jar already exists in destination. +[INFO] motech-osgi-platform-0.30-SNAPSHOT.jar already exists in destination. +[INFO] time-api-0.6.3.jar already exists in destination. +[INFO] com.springsource.javax.servlet-2.5.0.jar already exists in destination. +[INFO] super-csv-2.2.0.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.jsch-0.1.51_1.jar already exists in destination. +[INFO] org.apache.bval.bundle-0.5.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-web-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.c3p0-0.9.1.2_1.jar already exists in destination. +[INFO] joda-time-2.9.1.jar already exists in destination. +[INFO] regexp-1.3.jar already exists in destination. +[INFO] spring-security-core-3.2.8.RELEASE.jar already exists in destination. +[INFO] asm-5.0.3.jar already exists in destination. +[INFO] bval-core-0.5.jar already exists in destination. +[INFO] motech-platform-event-0.30-SNAPSHOT.jar already exists in destination. +[INFO] maven-scm-api-1.4.jar already exists in destination. +[INFO] spring-orm-3.2.16.RELEASE.jar already exists in destination. +[INFO] commons-lang-2.6.jar already exists in destination. +[INFO] activation-1.1.jar already exists in destination. +[INFO] commons-vfs2-2.0.jar already exists in destination. +[INFO] com.springsource.org.apache.commons.httpclient-3.1.0.jar already exists in destination. +[INFO] motech-platform-dataservices-0.30-SNAPSHOT.jar already exists in destination. +[INFO] commons-codec-1.10.jar already exists in destination. +[INFO] javassist-3.18.1-GA.jar already exists in destination. +[INFO] motech-platform-config-core-0.30-SNAPSHOT.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.velocity-1.6.4_4.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-core-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-context-support-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-security-config-3.2.8.RELEASE_1.jar already exists in destination. +[INFO] org.apache.servicemix.specs.activation-api-1.1-2.4.0.jar already exists in destination. +[INFO] jta-1.1.jar already exists in destination. +[INFO] ow2-ejb-3.1-spec-1.0.13.jar already exists in destination. +[INFO] stax-api-1.0-2.jar already exists in destination. +[INFO] javax.xml.rpc-api-1.1.1.jar already exists in destination. +[INFO] guava-18.0.jar already exists in destination. +[INFO] org.motechproject.spring-orm-3.2.16.RELEASE_1-r033.jar already exists in destination. +[INFO] org.eclipse.gemini.blueprint.io-1.0.2.RELEASE.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.howl-1.0.1-1_3.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-webmvc-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] motech-platform-commons-api-0.30-SNAPSHOT.jar already exists in destination. +[INFO] motech-platform-osgi-extender-fragment-0.30-SNAPSHOT.jar already exists in destination. +[INFO] jdo-api-3.0.1.jar already exists in destination. +[INFO] oro-2.0.8.jar already exists in destination. +[INFO] slf4j-api-1.7.7.jar already exists in destination. +[INFO] org.osgi.compendium-5.0.0.jar already exists in destination. +[INFO] com.springsource.javax.transaction-1.1.0.jar already exists in destination. +[INFO] org.motechproject.reflections-0.9.9-r033.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-beans-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] postgresql-9.1-901.jdbc4.jar already exists in destination. +[INFO] org.motechproject.org.codehaus.jackson-1.9.7-r033.jar already exists in destination. +[INFO] com.springsource.javax.jms-1.1.0.jar already exists in destination. +[INFO] datanucleus-api-jdo-4.0.1.jar already exists in destination. +[INFO] annotations-2.0.1.jar already exists in destination. +[INFO] mysql-connector-java-5.1.32.jar already exists in destination. +[INFO] log4j-1.2.17.jar already exists in destination. +[INFO] org.motechproject.com.google.code.gson-1.7.1-r033.jar already exists in destination. +[INFO] maven-scm-provider-svn-commons-1.4.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.aopalliance-1.0_6.jar already exists in destination. +[INFO] spring-integration-core-2.1.0.RELEASE.jar already exists in destination. +[INFO] itextpdf-5.5.6.jar already exists in destination. +[INFO] motech-platform-osgi-web-util-0.30-SNAPSHOT.jar already exists in destination. +[INFO] datanucleus-jodatime-4.0.6.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-tx-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] org.eclipse.gemini.blueprint.extender-1.0.2.RELEASE.jar already exists in destination. +[INFO] org.motechproject.javax.time-0.6.3-r033.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.aspectj-1.8.5_1.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.hamcrest-1.3_1.jar already exists in destination. +[INFO] commons-net-3.2.jar already exists in destination. +[INFO] bval-jsr303-0.5.jar already exists in destination. +[INFO] jcl-over-slf4j-1.7.7.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-jdbc-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] org.motechproject.org.apache.activemq-5.4.2-r033.jar already exists in destination. +[INFO] motech-platform-commons-sql-0.30-SNAPSHOT.jar already exists in destination. +[INFO] commons-lang3-3.1.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-jms-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] paranamer-2.6.jar already exists in destination. +[INFO] commons-configuration-1.10.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.dom4j-1.6.1_5.jar already exists in destination. +[INFO] org.motechproject.org.postgresql-9.1-901.jdbc4-r033.jar already exists in destination. +[INFO] stax-ex-1.7.4.jar already exists in destination. +[INFO] motech-platform-server-config-0.30-SNAPSHOT.jar already exists in destination. +[INFO] commons-beanutils-core-1.8.3.jar already exists in destination. +[INFO] org.motechproject.com.googlecode.lambdaj-2.3.3-r033.jar already exists in destination. +[INFO] objenesis-2.1.jar already exists in destination. +[INFO] jackrabbit-webdav-2.9.1.jar already exists in destination. +[INFO] commons-validator-1.4.1.jar already exists in destination. +[INFO] asm-tree-5.0.3.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.cglib-2.2.2_1.jar already exists in destination. +[INFO] spring-integration-jms-2.1.0.RELEASE.jar already exists in destination. +[INFO] commons-collections-3.2.2.jar already exists in destination. +[INFO] slf4j-log4j12-1.7.7.jar already exists in destination. +[INFO] com.springsource.javax.validation-1.0.0.GA.jar already exists in destination. +[INFO] org.eclipse.osgi.services-3.3.0.v20110513.jar already exists in destination. +[INFO] reflections-0.9.9.jar already exists in destination. +[INFO] commons-httpclient-3.1.jar already exists in destination. +[INFO] +[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ alerts --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] Copying 3 resources +[INFO] +[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ alerts --- +[INFO] Compiling 18 source files to /home/user/repos/modules/alerts/target/classes +[INFO] +[INFO] >>> maven-pmd-plugin:3.5:check (default) > :pmd @ alerts >>> +[INFO] +[INFO] --- maven-pmd-plugin:3.5:pmd (pmd) @ alerts --- +[INFO] +[INFO] <<< maven-pmd-plugin:3.5:check (default) < :pmd @ alerts <<< +[INFO] +[INFO] --- maven-pmd-plugin:3.5:check (default) @ alerts --- +[INFO] +[INFO] +[INFO] >>> maven-pmd-plugin:3.5:cpd-check (default) > :cpd @ alerts >>> +[INFO] +[INFO] --- maven-pmd-plugin:3.5:cpd (cpd) @ alerts --- +[INFO] +[INFO] <<< maven-pmd-plugin:3.5:cpd-check (default) < :cpd @ alerts <<< +[INFO] +[INFO] --- maven-pmd-plugin:3.5:cpd-check (default) @ alerts --- +[INFO] +[INFO] +[INFO] --- maven-checkstyle-plugin:2.10:check (default) @ alerts --- +[INFO] Starting audit... +Audit done. + +[INFO] +[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ alerts --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] Copying 1 resource +[INFO] +[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ alerts --- +[INFO] Compiling 11 source files to /home/user/repos/modules/alerts/target/test-classes +[INFO] +[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ alerts --- +[INFO] Surefire report directory: /home/user/repos/modules/alerts/target/surefire-reports +[INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider +[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Java HotSpot(TM) 64-Bit Server VM warning: ignoring option UseSplitVerifier; support was removed in 8.0 +Running org.motechproject.alerts.contract.CriterionTest +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.444 sec - in org.motechproject.alerts.contract.CriterionTest +Running org.motechproject.alerts.service.AlertServiceImplTest +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec - in org.motechproject.alerts.service.AlertServiceImplTest +Running org.motechproject.alerts.service.AlertFilterTest +Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.025 sec - in org.motechproject.alerts.service.AlertFilterTest +Running org.motechproject.alerts.service.AlertEventHandlerTest +Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec - in org.motechproject.alerts.service.AlertEventHandlerTest + +Results : + +Tests run: 10, Failures: 0, Errors: 0, Skipped: 0 + +[INFO] +[INFO] --- maven-bundle-plugin:2.5.3:bundle (default-bundle) @ alerts --- +[INFO] +[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-bundles) @ alerts --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] Copying 1 resource +[INFO] +[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-test-config-files) @ alerts --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] Copying 1 resource +[INFO] Copying 1 resource +[INFO] +[INFO] --- sql-maven-plugin:1.5:execute (drop-db) @ alerts --- +[INFO] Executing commands +[INFO] 3 of 3 SQL statements executed successfully +[INFO] +[INFO] --- sql-maven-plugin:1.5:execute (create-db) @ alerts --- +[INFO] Executing commands +[INFO] 3 of 3 SQL statements executed successfully +[INFO] +[INFO] --- maven-failsafe-plugin:2.17:integration-test (integration-test) @ alerts --- +[WARNING] The parameter forkMode is deprecated since version 2.14. Use forkCount and reuseForks instead. +[INFO] Failsafe report directory: /home/user/repos/modules/alerts/target/failsafe-reports + +------------------------------------------------------- + T E S T S +------------------------------------------------------- + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Running org.motechproject.alerts.it.AlertsIntegrationTests +2016-09-08 10:59:06,764 WARN [org.motechproject.server.osgi.PlatformActivator] Felix http bundle unavailable, http endpoints will not be active +[INFO] Started jetty 6.1.x at port(s) HTTP:8181 +2016-09-08 10:59:10,096 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] datanucleus_data.properties file in the location /home/user/.motech/config/ is not READABLE. +2016-09-08 10:59:10,096 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] datanucleus_data.properties file in the location /etc/motech/ is not READABLE. +2016-09-08 10:59:10,097 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] datanucleus_data.properties file in the location \/home/user/.motech/config/ is not READABLE. +2016-09-08 10:59:10,097 WARN [org.motechproject.config.core.datanucleus.impl.DbConfigManagerImpl] datanucleus_data.properties file is not READABLE from any of the default locations. Searched directories: /home/user/.motech/config/ /etc/motech/ \/home/user/.motech/config/ . +[INFO] Initializing Spring FrameworkServlet 'servlet_1' +2016-09-08 10:59:10,334 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] datanucleus_schema.properties file in the location /home/user/.motech/config/ is not READABLE. +2016-09-08 10:59:10,337 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] datanucleus_schema.properties file in the location /etc/motech/ is not READABLE. +2016-09-08 10:59:10,340 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] datanucleus_schema.properties file in the location \/home/user/.motech/config/ is not READABLE. +2016-09-08 10:59:10,346 WARN [org.motechproject.config.core.datanucleus.impl.DbConfigManagerImpl] datanucleus_schema.properties file is not READABLE from any of the default locations. Searched directories: /home/user/.motech/config/ /etc/motech/ \/home/user/.motech/config/ . +[INFO] Initialized servlet for org.motechproject.motech-platform-osgi-web-util [101] +2016-09-08 10:59:10,610 WARN [org.motechproject.osgi.web.tracker.UIServiceTrackers] Bean moduleRegistrationData not found in org.motechproject.motech-platform-osgi-web-util +2016-09-08 10:59:11,352 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] flyway_schema.properties file in the location /home/user/.motech/config/ is not READABLE. +2016-09-08 10:59:11,352 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] flyway_schema.properties file in the location /etc/motech/ is not READABLE. +2016-09-08 10:59:11,353 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] flyway_schema.properties file in the location \/home/user/.motech/config/ is not READABLE. +2016-09-08 10:59:11,353 WARN [org.motechproject.config.core.datanucleus.impl.DbConfigManagerImpl] flyway_schema.properties file is not READABLE from any of the default locations. Searched directories: /home/user/.motech/config/ /etc/motech/ \/home/user/.motech/config/ . +2016-09-08 11:00:23,342 WARN [org.motechproject.mds.annotations.internal.UIDisplayableProcessor] The annotation has the position value which is greater than total number of fields. +2016-09-08 11:00:37,848 WARN [org.motechproject.mds.osgi.EntitiesBundleMonitor] No entities bundle to stop +2016-09-08 11:00:45,110 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] flyway_data.properties file in the location /home/user/.motech/config/ is not READABLE. +2016-09-08 11:00:45,110 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] flyway_data.properties file in the location /etc/motech/ is not READABLE. +2016-09-08 11:00:45,111 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] flyway_data.properties file in the location \/home/user/.motech/config/ is not READABLE. +2016-09-08 11:00:45,111 WARN [org.motechproject.config.core.datanucleus.impl.DbConfigManagerImpl] flyway_data.properties file is not READABLE from any of the default locations. Searched directories: /home/user/.motech/config/ /etc/motech/ \/home/user/.motech/config/ . +[INFO] Initializing Spring FrameworkServlet 'servlet_3' +[INFO] Initialized servlet for org.motechproject.motech-platform-dataservices [60] +2016-09-08 11:01:21,253 WARN [org.motechproject.osgi.web.tracker.UIServiceTrackers] Bean moduleRegistrationData not found in org.motechproject.motech-platform-dataservices +[INFO] Initializing Spring FrameworkServlet 'servlet_4' +[INFO] Initialized servlet for org.motechproject.alerts [13] +2016-09-08 11:01:23,634 WARN [org.motechproject.osgi.web.tracker.UIServiceTrackers] Bean moduleRegistrationData not found in org.motechproject.alerts +[INFO] Destroying Spring FrameworkServlet 'servlet_4' +[INFO] Destroying Spring FrameworkServlet 'servlet_3' +[INFO] Destroying Spring FrameworkServlet 'servlet_1' +Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 152.554 sec - in org.motechproject.alerts.it.AlertsIntegrationTests + +Results : + +Tests run: 16, Failures: 0, Errors: 0, Skipped: 0 + +[INFO] +[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-no-package-cycles) @ alerts --- +[INFO] Adding directory /home/user/repos/modules/alerts/target/classes for package cycles search. +[INFO] Adding directory /home/user/repos/modules/alerts/target/test-classes for package cycles search. +[INFO] +[INFO] --- maven-failsafe-plugin:2.17:verify (verify) @ alerts --- +[INFO] Failsafe report directory: /home/user/repos/modules/alerts/target/failsafe-reports +[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! +[INFO] +[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ alerts --- +[INFO] Installing /home/user/repos/modules/alerts/target/alerts-0.30-SNAPSHOT.jar to /home/user/.m2/repository/org/motechproject/alerts/0.30-SNAPSHOT/alerts-0.30-SNAPSHOT.jar +[INFO] Installing /home/user/repos/modules/alerts/pom.xml to /home/user/.m2/repository/org/motechproject/alerts/0.30-SNAPSHOT/alerts-0.30-SNAPSHOT.pom +[INFO] +[INFO] --- maven-bundle-plugin:2.5.3:install (default-install) @ alerts --- +[INFO] Installing org/motechproject/alerts/0.30-SNAPSHOT/alerts-0.30-SNAPSHOT.jar +[INFO] Writing OBR metadata +[INFO] +[INFO] ------------------------------------------------------------------------ +[INFO] Building Appointments Module 0.30-SNAPSHOT +[INFO] ------------------------------------------------------------------------ +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-web-security/0.30-SNAPSHOT/maven-metadata.xml +795/795 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-web-security/0.30-SNAPSHOT/maven-metadata.xml (795 B at 3.6 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-scheduler/0.30-SNAPSHOT/maven-metadata.xml +783/783 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-scheduler/0.30-SNAPSHOT/maven-metadata.xml (783 B at 7.4 KB/sec) +Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-scheduler-migration/0.30-SNAPSHOT/maven-metadata.xml +793/793 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-scheduler-migration/0.30-SNAPSHOT/maven-metadata.xml (793 B at 7.4 KB/sec) +[INFO] +[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ appointments --- +[INFO] Deleting /home/user/repos/modules/appointments/target +[INFO] +[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-dependency-convergence) @ appointments --- +[INFO] +[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ appointments --- +[INFO] +[INFO] --- maven-dependency-plugin:2.8:resolve (list-dependencies) @ appointments --- +[INFO] +[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (copy-osgi-dependencies) @ appointments --- +[INFO] paranamer-2.6-sources.jar already exists in destination. +[INFO] jcip-annotations-1.0.jar already exists in destination. +[INFO] kahadb-5.4.2.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-context-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.paranamer-2.6_1.jar already exists in destination. +[INFO] org.apache.servicemix.specs.saaj-api-1.3-2.2.0.jar already exists in destination. +[INFO] aopalliance-1.0.jar already exists in destination. +[INFO] quartz-2.2.1.jar already exists in destination. +[INFO] datanucleus-core-4.0.1.jar already exists in destination. +[INFO] org.apache.felix.eventadmin-1.3.2.jar already exists in destination. +[INFO] maven-scm-provider-svnexe-1.4.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.saaj-impl-1.3.25_1.jar already exists in destination. +[INFO] motech-platform-dataservices-migration-0.30-SNAPSHOT.jar already exists in destination. +[INFO] javax.management.j2ee-api-1.1.1.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-expression-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] datanucleus-rdbms-4.0.1.jar already exists in destination. +[INFO] datanucleus-java8-4.0.5.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-aop-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] mimepull-1.9.jar already exists in destination. +[INFO] xml-apis-1.4.01.jar already exists in destination. +[INFO] asm-commons-5.0.3.jar already exists in destination. +[INFO] commons-digester-2.1.jar already exists in destination. +[INFO] org.eclipse.gemini.blueprint.core-1.0.2.RELEASE.jar already exists in destination. +[INFO] motech-platform-commons-date-0.30-SNAPSHOT.jar already exists in destination. +[INFO] commons-logging-1.1.1.jar already exists in destination. +[INFO] commons-io-2.4.jar already exists in destination. +[INFO] commons-beanutils-1.9.2.jar already exists in destination. +[INFO] commons-dbcp-1.4.jar already exists in destination. +[INFO] flyway-core-2.3.1.jar already exists in destination. +[INFO] nekohtml-1.9.20.jar already exists in destination. +[INFO] spring-security-web-3.2.8.RELEASE.jar already exists in destination. +[INFO] motech-osgi-platform-0.30-SNAPSHOT.jar already exists in destination. +[INFO] time-api-0.6.3.jar already exists in destination. +[INFO] com.springsource.javax.servlet-2.5.0.jar already exists in destination. +[INFO] super-csv-2.2.0.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.jsch-0.1.51_1.jar already exists in destination. +[INFO] org.apache.bval.bundle-0.5.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-web-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] motech-platform-web-security-0.30-SNAPSHOT.jar already exists in destination. +[INFO] motech-scheduler-0.30-SNAPSHOT.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.c3p0-0.9.1.2_1.jar already exists in destination. +[INFO] guice-2.0.jar already exists in destination. +[INFO] joda-time-2.9.1.jar already exists in destination. +[INFO] regexp-1.3.jar already exists in destination. +[INFO] com.springsource.com.google.inject-2.0.0.jar already exists in destination. +[INFO] spring-security-core-3.2.8.RELEASE.jar already exists in destination. +[INFO] asm-5.0.3.jar already exists in destination. +[INFO] bval-core-0.5.jar already exists in destination. +[INFO] motech-platform-event-0.30-SNAPSHOT.jar already exists in destination. +[INFO] maven-scm-api-1.4.jar already exists in destination. +[INFO] spring-orm-3.2.16.RELEASE.jar already exists in destination. +[INFO] commons-lang-2.6.jar already exists in destination. +[INFO] activation-1.1.jar already exists in destination. +[INFO] commons-vfs2-2.0.jar already exists in destination. +[INFO] com.springsource.org.apache.commons.httpclient-3.1.0.jar already exists in destination. +[INFO] motech-platform-dataservices-0.30-SNAPSHOT.jar already exists in destination. +[INFO] commons-codec-1.10.jar already exists in destination. +[INFO] org.apache.felix.http.api-2.2.0.jar already exists in destination. +[INFO] javassist-3.18.1-GA.jar already exists in destination. +[INFO] openid4java-nodeps-0.9.6.jar already exists in destination. +[INFO] motech-platform-config-core-0.30-SNAPSHOT.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.velocity-1.6.4_4.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-core-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-context-support-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.xmlresolver-1.2_1.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-security-config-3.2.8.RELEASE_1.jar already exists in destination. +[INFO] jta-1.1.jar already exists in destination. +[INFO] org.apache.servicemix.specs.activation-api-1.1-2.4.0.jar already exists in destination. +[INFO] ow2-ejb-3.1-spec-1.0.13.jar already exists in destination. +[INFO] stax-api-1.0-2.jar already exists in destination. +[INFO] javax.xml.rpc-api-1.1.1.jar already exists in destination. +[INFO] com.springsource.org.openid4java-0.9.5.jar already exists in destination. +[INFO] guava-18.0.jar already exists in destination. +[INFO] org.motechproject.spring-orm-3.2.16.RELEASE_1-r033.jar already exists in destination. +[INFO] org.eclipse.gemini.blueprint.io-1.0.2.RELEASE.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.howl-1.0.1-1_3.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-webmvc-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] motech-platform-commons-api-0.30-SNAPSHOT.jar already exists in destination. +[INFO] motech-platform-osgi-extender-fragment-0.30-SNAPSHOT.jar already exists in destination. +[INFO] jdo-api-3.0.1.jar already exists in destination. +[INFO] oro-2.0.8.jar already exists in destination. +[INFO] slf4j-api-1.7.7.jar already exists in destination. +[INFO] xercesImpl-2.10.0.jar already exists in destination. +[INFO] org.osgi.compendium-5.0.0.jar already exists in destination. +[INFO] com.springsource.javax.transaction-1.1.0.jar already exists in destination. +[INFO] org.motechproject.reflections-0.9.9-r033.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-beans-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] postgresql-9.1-901.jdbc4.jar already exists in destination. +[INFO] org.motechproject.org.codehaus.jackson-1.9.7-r033.jar already exists in destination. +[INFO] com.springsource.javax.jms-1.1.0.jar already exists in destination. +[INFO] datanucleus-api-jdo-4.0.1.jar already exists in destination. +[INFO] annotations-2.0.1.jar already exists in destination. +[INFO] mysql-connector-java-5.1.32.jar already exists in destination. +[INFO] log4j-1.2.17.jar already exists in destination. +[INFO] org.motechproject.com.google.code.gson-1.7.1-r033.jar already exists in destination. +[INFO] maven-scm-provider-svn-commons-1.4.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.aopalliance-1.0_6.jar already exists in destination. +[INFO] spring-integration-core-2.1.0.RELEASE.jar already exists in destination. +[INFO] itextpdf-5.5.6.jar already exists in destination. +[INFO] com.springsource.org.cyberneko.html-1.9.13.jar already exists in destination. +[INFO] motech-platform-osgi-web-util-0.30-SNAPSHOT.jar already exists in destination. +[INFO] datanucleus-jodatime-4.0.6.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-tx-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] org.motechproject.javax.time-0.6.3-r033.jar already exists in destination. +[INFO] org.eclipse.gemini.blueprint.extender-1.0.2.RELEASE.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.aspectj-1.8.5_1.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.hamcrest-1.3_1.jar already exists in destination. +[INFO] bval-jsr303-0.5.jar already exists in destination. +[INFO] commons-net-3.2.jar already exists in destination. +[INFO] jcl-over-slf4j-1.7.7.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-jdbc-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] org.motechproject.org.apache.activemq-5.4.2-r033.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.xerces-2.10.0_1.jar already exists in destination. +[INFO] motech-platform-commons-sql-0.30-SNAPSHOT.jar already exists in destination. +[INFO] commons-lang3-3.1.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.spring-jms-3.2.16.RELEASE_1.jar already exists in destination. +[INFO] motech-scheduler-migration-0.30-SNAPSHOT.jar already exists in destination. +[INFO] paranamer-2.6.jar already exists in destination. +[INFO] commons-configuration-1.10.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.dom4j-1.6.1_5.jar already exists in destination. +[INFO] org.motechproject.org.postgresql-9.1-901.jdbc4-r033.jar already exists in destination. +[INFO] stax-ex-1.7.4.jar already exists in destination. +[INFO] commons-pool-1.6.jar already exists in destination. +[INFO] motech-platform-server-config-0.30-SNAPSHOT.jar already exists in destination. +[INFO] commons-beanutils-core-1.8.3.jar already exists in destination. +[INFO] org.motechproject.com.googlecode.lambdaj-2.3.3-r033.jar already exists in destination. +[INFO] objenesis-2.1.jar already exists in destination. +[INFO] jackrabbit-webdav-2.9.1.jar already exists in destination. +[INFO] commons-validator-1.4.1.jar already exists in destination. +[INFO] asm-tree-5.0.3.jar already exists in destination. +[INFO] org.apache.servicemix.bundles.cglib-2.2.2_1.jar already exists in destination. +[INFO] spring-integration-jms-2.1.0.RELEASE.jar already exists in destination. +[INFO] commons-collections-3.2.2.jar already exists in destination. +[INFO] slf4j-log4j12-1.7.7.jar already exists in destination. +[INFO] com.springsource.javax.validation-1.0.0.GA.jar already exists in destination. +[INFO] motech-c3p0-fragment-bundle-0.16-r033.jar already exists in destination. +[INFO] org.eclipse.osgi.services-3.3.0.v20110513.jar already exists in destination. +[INFO] reflections-0.9.9.jar already exists in destination. +[INFO] spring-security-openid-3.2.8.RELEASE.jar already exists in destination. +[INFO] commons-httpclient-3.1.jar already exists in destination. +[INFO] +[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ appointments --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] Copying 2 resources +[INFO] +[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ appointments --- +[INFO] Changes detected - recompiling the module! +[INFO] Compiling 10 source files to /home/user/repos/modules/appointments/target/classes +[INFO] +[INFO] >>> maven-pmd-plugin:3.5:check (default) > :pmd @ appointments >>> +[INFO] +[INFO] --- maven-pmd-plugin:3.5:pmd (pmd) @ appointments --- +[INFO] +[INFO] <<< maven-pmd-plugin:3.5:check (default) < :pmd @ appointments <<< +[INFO] +[INFO] --- maven-pmd-plugin:3.5:check (default) @ appointments --- +[INFO] +[INFO] +[INFO] >>> maven-pmd-plugin:3.5:cpd-check (default) > :cpd @ appointments >>> +[INFO] +[INFO] --- maven-pmd-plugin:3.5:cpd (cpd) @ appointments --- +[INFO] +[INFO] <<< maven-pmd-plugin:3.5:cpd-check (default) < :cpd @ appointments <<< +[INFO] +[INFO] --- maven-pmd-plugin:3.5:cpd-check (default) @ appointments --- +[INFO] +[INFO] +[INFO] --- maven-checkstyle-plugin:2.10:check (default) @ appointments --- +[INFO] Starting audit... +Audit done. + +[INFO] +[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ appointments --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] Copying 2 resources +[INFO] +[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ appointments --- +[INFO] Changes detected - recompiling the module! +[INFO] Compiling 2 source files to /home/user/repos/modules/appointments/target/test-classes +[INFO] +[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ appointments --- +[INFO] +[INFO] --- maven-bundle-plugin:2.5.3:bundle (default-bundle) @ appointments --- +[INFO] +[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-bundles) @ appointments --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] Copying 1 resource +[INFO] +[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-test-config-files) @ appointments --- +[INFO] Using 'UTF-8' encoding to copy filtered resources. +[INFO] Copying 1 resource +[INFO] Copying 1 resource +[INFO] +[INFO] --- sql-maven-plugin:1.5:execute (drop-db) @ appointments --- +[INFO] Executing commands +[INFO] 3 of 3 SQL statements executed successfully +[INFO] +[INFO] --- sql-maven-plugin:1.5:execute (create-db) @ appointments --- +[INFO] Executing commands +[INFO] 3 of 3 SQL statements executed successfully +[INFO] +[INFO] --- maven-failsafe-plugin:2.17:integration-test (integration-test) @ appointments --- +[INFO] Failsafe report directory: /home/user/repos/modules/appointments/target/failsafe-reports + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Running org.motechproject.appointments.service.it.AppointmentsIntegrationTests +[INFO] Started jetty 6.1.x at port(s) HTTP:8181 +[INFO] Initializing Spring FrameworkServlet 'servlet_1' +[INFO] Initialized servlet for org.motechproject.motech-platform-osgi-web-util [65] +2016-09-08 11:05:01,652 EclipseGeminiBlueprintExtenderThread-12 DEBUG [org.motechproject.appointments.domain.mdsserviceimpl.AppointmentChangeRecordServiceImpl] Initializing org.motechproject.appointments.domain.mdsserviceimpl.AppointmentChangeRecordServiceImpl +2016-09-08 11:05:01,656 EclipseGeminiBlueprintExtenderThread-12 DEBUG [org.motechproject.appointments.domain.mdsserviceimpl.AppointmentChangeRecordServiceImpl] org.motechproject.appointments.domain.mdsserviceimpl.AppointmentChangeRecordServiceImpl ready +2016-09-08 11:05:01,795 EclipseGeminiBlueprintExtenderThread-12 DEBUG [org.motechproject.appointments.domain.mdsserviceimpl.AppointmentServiceImpl] Initializing org.motechproject.appointments.domain.mdsserviceimpl.AppointmentServiceImpl +2016-09-08 11:05:01,799 EclipseGeminiBlueprintExtenderThread-12 DEBUG [org.motechproject.appointments.domain.mdsserviceimpl.AppointmentServiceImpl] org.motechproject.appointments.domain.mdsserviceimpl.AppointmentServiceImpl ready +[INFO] Initializing Spring FrameworkServlet 'servlet_3' +[INFO] Initializing Spring FrameworkServlet 'servlet_4' +[INFO] Initialized servlet for org.motechproject.motech-platform-dataservices [46] +[INFO] Initializing Spring FrameworkServlet 'servlet_7' +[INFO] Initialized servlet for org.motechproject.appointments [13] +[INFO] Initializing Spring FrameworkServlet 'servlet_9' +2016-09-08 11:05:51,024 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] toggleReminders +2016-09-08 11:05:51,452 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] deleteAppointment +2016-09-08 11:05:51,722 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] deleteAppointmentException +2016-09-08 11:05:51,729 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] addAppointment +2016-09-08 11:05:51,853 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] addAppointmentDuplicate +2016-09-08 11:05:51,991 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] addMultiple +2016-09-08 11:05:52,177 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] findAppointmentsByExternalId +2016-09-08 11:05:52,406 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] testAppointmentService +2016-09-08 11:05:52,410 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] findAppointmentsByExternalIdAndStatus +2016-09-08 11:05:52,567 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] updateAppointment +2016-09-08 11:05:53,035 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] updateAppointmentException +[INFO] Initialized servlet for org.motechproject.motech-scheduler [104] +[INFO] Destroying Spring FrameworkServlet 'servlet_7' +ERROR: Bundle org.motechproject.motech-platform-osgi-web-util [65] EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext) +ERROR: Bundle org.motechproject.motech-platform-web-security [103] EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext) +[INFO] Destroying Spring FrameworkServlet 'servlet_4' +ERROR: Bundle org.motechproject.motech-platform-event [41] EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext) +[INFO] Destroying Spring FrameworkServlet 'servlet_1' +[INFO] Destroying Spring FrameworkServlet 'servlet_9' +[INFO] Destroying Spring FrameworkServlet 'servlet_3' +Tests run: 12, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 242.961 sec <<< FAILURE! - in org.motechproject.appointments.service.it.AppointmentsIntegrationTests +getAppointment(org.motechproject.appointments.service.it.AppointmentServiceBundleIT) Time elapsed: 225.152 sec <<< ERROR! +org.ops4j.pax.exam.TestContainerException: Framework not ready after 225000 ms + at org.motechproject.testing.osgi.container.MotechNativeTestContainer.waitForTestedBundle(MotechNativeTestContainer.java:134) + at org.motechproject.testing.osgi.container.MotechNativeTestContainer.call(MotechNativeTestContainer.java:103) + at org.ops4j.pax.exam.spi.reactors.SingletonStagedReactor.invoke(SingletonStagedReactor.java:114) + at org.ops4j.pax.exam.spi.reactors.PerSuiteStagedReactor.invoke(PerSuiteStagedReactor.java:47) + at org.ops4j.pax.exam.junit.impl.ProbeRunner$2.evaluate(ProbeRunner.java:264) + at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) + at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) + at org.junit.runners.ParentRunner.run(ParentRunner.java:309) + at org.ops4j.pax.exam.junit.impl.ProbeRunner.run(ProbeRunner.java:98) + at org.ops4j.pax.exam.junit.PaxExam.run(PaxExam.java:93) + at org.junit.runners.Suite.runChild(Suite.java:127) + at org.junit.runners.Suite.runChild(Suite.java:26) + at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) + at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) + at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) + at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) + at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) + at org.junit.runners.ParentRunner.run(ParentRunner.java:309) + at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) + at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) + at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) + + +Results : + +Tests in error: + AppointmentServiceBundleIT.getAppointment » TestContainer Framework not ready ... + +Tests run: 12, Failures: 0, Errors: 1, Skipped: 0 + +[INFO] +[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-no-package-cycles) @ appointments --- +[INFO] Adding directory /home/user/repos/modules/appointments/target/classes for package cycles search. +[INFO] Adding directory /home/user/repos/modules/appointments/target/test-classes for package cycles search. +[INFO] +[INFO] --- maven-failsafe-plugin:2.17:verify (verify) @ appointments --- +[INFO] Failsafe report directory: /home/user/repos/modules/appointments/target/failsafe-reports +[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! +[INFO] ------------------------------------------------------------------------ +[INFO] Reactor Summary: +[INFO] +[INFO] MOTECH Modules ..................................... SUCCESS [ 6.720 s] +[INFO] Alerts Module ...................................... SUCCESS [03:01 min] +[INFO] Appointments Module ................................ FAILURE [04:20 min] +[INFO] CMS Lite Module .................................... SKIPPED +[INFO] CommCare Module .................................... SKIPPED +[INFO] Event Logging Module ............................... SKIPPED +[INFO] Hindi Transliteration .............................. SKIPPED +[INFO] Http Agent Module .................................. SKIPPED +[INFO] mTraining Module ................................... SKIPPED +[INFO] SMS Module ......................................... SKIPPED +[INFO] MOTECH Message Campaign ............................ SKIPPED +[INFO] OpenMRS ............................................ SKIPPED +[INFO] Pill Reminder Module ............................... SKIPPED +[INFO] Schedule Tracking Modules .......................... SKIPPED +[INFO] MOTECH Batch ....................................... SKIPPED +[INFO] MOTECH Hub ......................................... SKIPPED +[INFO] IVR Module ......................................... SKIPPED +[INFO] DHIS2 module ....................................... SKIPPED +[INFO] Care Services Discovery ............................ SKIPPED +[INFO] Metrics ............................................ SKIPPED +[INFO] ODK Module ......................................... SKIPPED +[INFO] IHE Interop Module ................................. SKIPPED +[INFO] Atom Client ........................................ SKIPPED +[INFO] RapidPro Module .................................... SKIPPED +[INFO] ------------------------------------------------------------------------ +[INFO] BUILD FAILURE +[INFO] ------------------------------------------------------------------------ +[INFO] Total time: 07:31 min +[INFO] Finished at: 2016-09-08T11:05:56+02:00 +[INFO] Final Memory: 99M/935M +[INFO] ------------------------------------------------------------------------ +[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.17:verify (verify) on project appointments: There are test failures. +[ERROR] +[ERROR] Please refer to /home/user/repos/modules/appointments/target/failsafe-reports for the individual test results. +[ERROR] -> [Help 1] +[ERROR] +[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. +[ERROR] Re-run Maven using the -X switch to enable full debug logging. +[ERROR] +[ERROR] For more information about the errors and possible solutions, please read the following articles: +[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException +[ERROR] +[ERROR] After correcting the problems, you can resume the build with the command +[ERROR] mvn -rf :appointments diff --git a/pom.xml b/pom.xml index 63d690641..867b0e3e9 100644 --- a/pom.xml +++ b/pom.xml @@ -1075,7 +1075,7 @@ copy-test-config-files - validate + pre-integration-test copy-resources diff --git a/testdata/config-locations.properties b/testdata/config-locations.properties index 4cd914e1c..3c3461c13 100644 --- a/testdata/config-locations.properties +++ b/testdata/config-locations.properties @@ -1 +1 @@ -config.location=${sys:user.home}/.motech/configtest/, ${sys:user.home}/.motech/config/, /etc/motech/ \ No newline at end of file +config.location=${sys:user.home}/.motech/configtest/config/, ${sys:user.home}/.motech/config/, /etc/motech/ \ No newline at end of file From ab9c7dc1f84024036ba800f0c0433b33924cdd64 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 11:26:17 +0200 Subject: [PATCH 047/119] MOTECH-2895: 44th try --- testdata/config-locations.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testdata/config-locations.properties b/testdata/config-locations.properties index 3c3461c13..984104662 100644 --- a/testdata/config-locations.properties +++ b/testdata/config-locations.properties @@ -1 +1 @@ -config.location=${sys:user.home}/.motech/configtest/config/, ${sys:user.home}/.motech/config/, /etc/motech/ \ No newline at end of file +config.location=${sys:user.home}/.motech/configtest/, ${sys:user.home}/.motech/config/, /etc/motech/ From 1277f1a932710fa91ad617427e6a1ae350bdf059 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 11:32:46 +0200 Subject: [PATCH 048/119] MOTECH-2895: 45th try --- log.txt | 782 --------------------------------------------------- run_build.sh | 2 +- 2 files changed, 1 insertion(+), 783 deletions(-) delete mode 100644 log.txt diff --git a/log.txt b/log.txt deleted file mode 100644 index 0481f833d..000000000 --- a/log.txt +++ /dev/null @@ -1,782 +0,0 @@ -[INFO] Scanning for projects... -[INFO] ------------------------------------------------------------------------ -[INFO] Reactor Build Order: -[INFO] -[INFO] MOTECH Modules -[INFO] Alerts Module -[INFO] Appointments Module -[INFO] CMS Lite Module -[INFO] CommCare Module -[INFO] Event Logging Module -[INFO] Hindi Transliteration -[INFO] Http Agent Module -[INFO] mTraining Module -[INFO] SMS Module -[INFO] MOTECH Message Campaign -[INFO] OpenMRS -[INFO] Pill Reminder Module -[INFO] Schedule Tracking Modules -[INFO] MOTECH Batch -[INFO] MOTECH Hub -[INFO] IVR Module -[INFO] DHIS2 module -[INFO] Care Services Discovery -[INFO] Metrics -[INFO] ODK Module -[INFO] IHE Interop Module -[INFO] Atom Client -[INFO] RapidPro Module -[INFO] -[INFO] ------------------------------------------------------------------------ -[INFO] Building MOTECH Modules 0.30-SNAPSHOT -[INFO] ------------------------------------------------------------------------ -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-pax-it/0.30-SNAPSHOT/maven-metadata.xml -780/780 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-pax-it/0.30-SNAPSHOT/maven-metadata.xml (780 B at 2.6 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech/0.30-SNAPSHOT/maven-metadata.xml -600/600 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech/0.30-SNAPSHOT/maven-metadata.xml (600 B at 5.6 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-pax-it-container/0.30-SNAPSHOT/maven-metadata.xml -790/790 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-pax-it-container/0.30-SNAPSHOT/maven-metadata.xml (790 B at 7.3 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-osgi-platform/0.30-SNAPSHOT/maven-metadata.xml -787/787 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-osgi-platform/0.30-SNAPSHOT/maven-metadata.xml (787 B at 7.3 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-testing-utils/0.30-SNAPSHOT/maven-metadata.xml -787/787 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-testing-utils/0.30-SNAPSHOT/maven-metadata.xml (787 B at 7.3 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-commons-date/0.30-SNAPSHOT/maven-metadata.xml -795/795 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-commons-date/0.30-SNAPSHOT/maven-metadata.xml (795 B at 6.9 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-commons-api/0.30-SNAPSHOT/maven-metadata.xml -794/794 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-commons-api/0.30-SNAPSHOT/maven-metadata.xml (794 B at 7.0 KB/sec) -[INFO] -[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ modules --- -[INFO] Deleting /home/user/repos/modules/target -[INFO] -[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-dependency-convergence) @ modules --- -[INFO] -[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ modules --- -[INFO] -[INFO] --- maven-dependency-plugin:2.8:resolve (list-dependencies) @ modules --- -[INFO] -[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (copy-osgi-dependencies) @ modules --- -[INFO] org.apache.servicemix.bundles.spring-beans-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-core-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] org.eclipse.gemini.blueprint.io-1.0.2.RELEASE.jar already exists in destination. -[INFO] org.eclipse.gemini.blueprint.core-1.0.2.RELEASE.jar already exists in destination. -[INFO] org.eclipse.osgi.services-3.3.0.v20110513.jar already exists in destination. -[INFO] log4j-1.2.17.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-context-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] jcl-over-slf4j-1.7.7.jar already exists in destination. -[INFO] slf4j-api-1.7.7.jar already exists in destination. -[INFO] org.osgi.compendium-5.0.0.jar already exists in destination. -[INFO] slf4j-log4j12-1.7.7.jar already exists in destination. -[INFO] -[INFO] >>> maven-pmd-plugin:3.5:check (default) > :pmd @ modules >>> -[INFO] -[INFO] --- maven-pmd-plugin:3.5:pmd (pmd) @ modules --- -[INFO] -[INFO] <<< maven-pmd-plugin:3.5:check (default) < :pmd @ modules <<< -[INFO] -[INFO] --- maven-pmd-plugin:3.5:check (default) @ modules --- -[INFO] -[INFO] >>> maven-pmd-plugin:3.5:cpd-check (default) > :cpd @ modules >>> -[INFO] -[INFO] --- maven-pmd-plugin:3.5:cpd (cpd) @ modules --- -[INFO] -[INFO] <<< maven-pmd-plugin:3.5:cpd-check (default) < :cpd @ modules <<< -[INFO] -[INFO] --- maven-pmd-plugin:3.5:cpd-check (default) @ modules --- -[INFO] -[INFO] --- maven-checkstyle-plugin:2.10:check (default) @ modules --- -[INFO] Starting audit... -Audit done. - -[INFO] -[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-test-config-files) @ modules --- -[INFO] Using 'UTF-8' encoding to copy filtered resources. -[INFO] Copying 1 resource -[INFO] Copying 1 resource -[INFO] -[INFO] --- sql-maven-plugin:1.5:execute (drop-db) @ modules --- -[INFO] Skipping sql execution for project with packaging type 'pom' -[INFO] -[INFO] --- sql-maven-plugin:1.5:execute (create-db) @ modules --- -[INFO] Skipping sql execution for project with packaging type 'pom' -[INFO] -[INFO] --- maven-failsafe-plugin:2.17:integration-test (integration-test) @ modules --- -[INFO] No tests to run. -[INFO] -[INFO] --- maven-clean-plugin:2.5:clean (clean-test-config-files) @ modules --- -[INFO] Deleting /home/user/.motech/config (includes = [bootstrap.properties, motech-settings.properties, datanucleus_data.properties, datanucleus_schema.properties, flyway_data.properties, flyway_schema.properties], excludes = []) -[INFO] -[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-no-package-cycles) @ modules --- -[INFO] Directory /home/user/repos/modules/target/classes could not be found. -[INFO] Directory /home/user/repos/modules/target/test-classes could not be found. -[INFO] No directories with classes to check for cycles found. -[INFO] -[INFO] --- maven-failsafe-plugin:2.17:verify (verify) @ modules --- -[INFO] No tests to run. -[INFO] -[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ modules --- -[INFO] Installing /home/user/repos/modules/pom.xml to /home/user/.m2/repository/org/motechproject/modules/0.30-SNAPSHOT/modules-0.30-SNAPSHOT.pom -[INFO] -[INFO] ------------------------------------------------------------------------ -[INFO] Building Alerts Module 0.30-SNAPSHOT -[INFO] ------------------------------------------------------------------------ -Downloading: http://nexus.motechproject.org/content/repositories/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml -Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml -820/820 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml (820 B at 6.7 KB/sec) -623/623 B Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml (623 B at 0.9 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml -Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml -709/709 B Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml (709 B at 12.1 KB/sec) -906/906 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml (906 B at 8.0 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-server-config/0.30-SNAPSHOT/maven-metadata.xml -796/796 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-server-config/0.30-SNAPSHOT/maven-metadata.xml (796 B at 7.5 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-dataservices/0.30-SNAPSHOT/maven-metadata.xml -795/795 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-dataservices/0.30-SNAPSHOT/maven-metadata.xml (795 B at 7.4 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-commons-sql/0.30-SNAPSHOT/maven-metadata.xml -794/794 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-commons-sql/0.30-SNAPSHOT/maven-metadata.xml (794 B at 7.4 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-config-core/0.30-SNAPSHOT/maven-metadata.xml -794/794 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-config-core/0.30-SNAPSHOT/maven-metadata.xml (794 B at 7.4 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-osgi-web-util/0.30-SNAPSHOT/maven-metadata.xml -796/796 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-osgi-web-util/0.30-SNAPSHOT/maven-metadata.xml (796 B at 7.4 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-osgi-extender-fragment/0.30-SNAPSHOT/maven-metadata.xml -805/805 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-osgi-extender-fragment/0.30-SNAPSHOT/maven-metadata.xml (805 B at 7.6 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-dataservices-migration/0.30-SNAPSHOT/maven-metadata.xml -805/805 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-dataservices-migration/0.30-SNAPSHOT/maven-metadata.xml (805 B at 7.3 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-event/0.30-SNAPSHOT/maven-metadata.xml -788/788 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-event/0.30-SNAPSHOT/maven-metadata.xml (788 B at 7.2 KB/sec) -[INFO] -[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ alerts --- -[INFO] Deleting /home/user/repos/modules/alerts/target -[INFO] -[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-dependency-convergence) @ alerts --- -[INFO] -[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ alerts --- -[INFO] -[INFO] --- maven-dependency-plugin:2.8:resolve (list-dependencies) @ alerts --- -[INFO] -[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (copy-osgi-dependencies) @ alerts --- -[INFO] paranamer-2.6-sources.jar already exists in destination. -[INFO] kahadb-5.4.2.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-context-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] org.apache.servicemix.specs.saaj-api-1.3-2.2.0.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.paranamer-2.6_1.jar already exists in destination. -[INFO] aopalliance-1.0.jar already exists in destination. -[INFO] org.apache.felix.eventadmin-1.3.2.jar already exists in destination. -[INFO] quartz-2.2.1.jar already exists in destination. -[INFO] datanucleus-core-4.0.1.jar already exists in destination. -[INFO] maven-scm-provider-svnexe-1.4.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.saaj-impl-1.3.25_1.jar already exists in destination. -[INFO] motech-platform-dataservices-migration-0.30-SNAPSHOT.jar already exists in destination. -[INFO] javax.management.j2ee-api-1.1.1.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-expression-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] datanucleus-rdbms-4.0.1.jar already exists in destination. -[INFO] datanucleus-java8-4.0.5.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-aop-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] mimepull-1.9.jar already exists in destination. -[INFO] asm-commons-5.0.3.jar already exists in destination. -[INFO] commons-digester-2.1.jar already exists in destination. -[INFO] org.eclipse.gemini.blueprint.core-1.0.2.RELEASE.jar already exists in destination. -[INFO] motech-platform-commons-date-0.30-SNAPSHOT.jar already exists in destination. -[INFO] commons-logging-1.1.1.jar already exists in destination. -[INFO] commons-io-2.4.jar already exists in destination. -[INFO] commons-beanutils-1.9.2.jar already exists in destination. -[INFO] flyway-core-2.3.1.jar already exists in destination. -[INFO] spring-security-web-3.2.8.RELEASE.jar already exists in destination. -[INFO] motech-osgi-platform-0.30-SNAPSHOT.jar already exists in destination. -[INFO] time-api-0.6.3.jar already exists in destination. -[INFO] com.springsource.javax.servlet-2.5.0.jar already exists in destination. -[INFO] super-csv-2.2.0.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.jsch-0.1.51_1.jar already exists in destination. -[INFO] org.apache.bval.bundle-0.5.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-web-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.c3p0-0.9.1.2_1.jar already exists in destination. -[INFO] joda-time-2.9.1.jar already exists in destination. -[INFO] regexp-1.3.jar already exists in destination. -[INFO] spring-security-core-3.2.8.RELEASE.jar already exists in destination. -[INFO] asm-5.0.3.jar already exists in destination. -[INFO] bval-core-0.5.jar already exists in destination. -[INFO] motech-platform-event-0.30-SNAPSHOT.jar already exists in destination. -[INFO] maven-scm-api-1.4.jar already exists in destination. -[INFO] spring-orm-3.2.16.RELEASE.jar already exists in destination. -[INFO] commons-lang-2.6.jar already exists in destination. -[INFO] activation-1.1.jar already exists in destination. -[INFO] commons-vfs2-2.0.jar already exists in destination. -[INFO] com.springsource.org.apache.commons.httpclient-3.1.0.jar already exists in destination. -[INFO] motech-platform-dataservices-0.30-SNAPSHOT.jar already exists in destination. -[INFO] commons-codec-1.10.jar already exists in destination. -[INFO] javassist-3.18.1-GA.jar already exists in destination. -[INFO] motech-platform-config-core-0.30-SNAPSHOT.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.velocity-1.6.4_4.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-core-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-context-support-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-security-config-3.2.8.RELEASE_1.jar already exists in destination. -[INFO] org.apache.servicemix.specs.activation-api-1.1-2.4.0.jar already exists in destination. -[INFO] jta-1.1.jar already exists in destination. -[INFO] ow2-ejb-3.1-spec-1.0.13.jar already exists in destination. -[INFO] stax-api-1.0-2.jar already exists in destination. -[INFO] javax.xml.rpc-api-1.1.1.jar already exists in destination. -[INFO] guava-18.0.jar already exists in destination. -[INFO] org.motechproject.spring-orm-3.2.16.RELEASE_1-r033.jar already exists in destination. -[INFO] org.eclipse.gemini.blueprint.io-1.0.2.RELEASE.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.howl-1.0.1-1_3.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-webmvc-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] motech-platform-commons-api-0.30-SNAPSHOT.jar already exists in destination. -[INFO] motech-platform-osgi-extender-fragment-0.30-SNAPSHOT.jar already exists in destination. -[INFO] jdo-api-3.0.1.jar already exists in destination. -[INFO] oro-2.0.8.jar already exists in destination. -[INFO] slf4j-api-1.7.7.jar already exists in destination. -[INFO] org.osgi.compendium-5.0.0.jar already exists in destination. -[INFO] com.springsource.javax.transaction-1.1.0.jar already exists in destination. -[INFO] org.motechproject.reflections-0.9.9-r033.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-beans-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] postgresql-9.1-901.jdbc4.jar already exists in destination. -[INFO] org.motechproject.org.codehaus.jackson-1.9.7-r033.jar already exists in destination. -[INFO] com.springsource.javax.jms-1.1.0.jar already exists in destination. -[INFO] datanucleus-api-jdo-4.0.1.jar already exists in destination. -[INFO] annotations-2.0.1.jar already exists in destination. -[INFO] mysql-connector-java-5.1.32.jar already exists in destination. -[INFO] log4j-1.2.17.jar already exists in destination. -[INFO] org.motechproject.com.google.code.gson-1.7.1-r033.jar already exists in destination. -[INFO] maven-scm-provider-svn-commons-1.4.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.aopalliance-1.0_6.jar already exists in destination. -[INFO] spring-integration-core-2.1.0.RELEASE.jar already exists in destination. -[INFO] itextpdf-5.5.6.jar already exists in destination. -[INFO] motech-platform-osgi-web-util-0.30-SNAPSHOT.jar already exists in destination. -[INFO] datanucleus-jodatime-4.0.6.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-tx-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] org.eclipse.gemini.blueprint.extender-1.0.2.RELEASE.jar already exists in destination. -[INFO] org.motechproject.javax.time-0.6.3-r033.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.aspectj-1.8.5_1.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.hamcrest-1.3_1.jar already exists in destination. -[INFO] commons-net-3.2.jar already exists in destination. -[INFO] bval-jsr303-0.5.jar already exists in destination. -[INFO] jcl-over-slf4j-1.7.7.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-jdbc-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] org.motechproject.org.apache.activemq-5.4.2-r033.jar already exists in destination. -[INFO] motech-platform-commons-sql-0.30-SNAPSHOT.jar already exists in destination. -[INFO] commons-lang3-3.1.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-jms-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] paranamer-2.6.jar already exists in destination. -[INFO] commons-configuration-1.10.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.dom4j-1.6.1_5.jar already exists in destination. -[INFO] org.motechproject.org.postgresql-9.1-901.jdbc4-r033.jar already exists in destination. -[INFO] stax-ex-1.7.4.jar already exists in destination. -[INFO] motech-platform-server-config-0.30-SNAPSHOT.jar already exists in destination. -[INFO] commons-beanutils-core-1.8.3.jar already exists in destination. -[INFO] org.motechproject.com.googlecode.lambdaj-2.3.3-r033.jar already exists in destination. -[INFO] objenesis-2.1.jar already exists in destination. -[INFO] jackrabbit-webdav-2.9.1.jar already exists in destination. -[INFO] commons-validator-1.4.1.jar already exists in destination. -[INFO] asm-tree-5.0.3.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.cglib-2.2.2_1.jar already exists in destination. -[INFO] spring-integration-jms-2.1.0.RELEASE.jar already exists in destination. -[INFO] commons-collections-3.2.2.jar already exists in destination. -[INFO] slf4j-log4j12-1.7.7.jar already exists in destination. -[INFO] com.springsource.javax.validation-1.0.0.GA.jar already exists in destination. -[INFO] org.eclipse.osgi.services-3.3.0.v20110513.jar already exists in destination. -[INFO] reflections-0.9.9.jar already exists in destination. -[INFO] commons-httpclient-3.1.jar already exists in destination. -[INFO] -[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ alerts --- -[INFO] Using 'UTF-8' encoding to copy filtered resources. -[INFO] Copying 3 resources -[INFO] -[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ alerts --- -[INFO] Compiling 18 source files to /home/user/repos/modules/alerts/target/classes -[INFO] -[INFO] >>> maven-pmd-plugin:3.5:check (default) > :pmd @ alerts >>> -[INFO] -[INFO] --- maven-pmd-plugin:3.5:pmd (pmd) @ alerts --- -[INFO] -[INFO] <<< maven-pmd-plugin:3.5:check (default) < :pmd @ alerts <<< -[INFO] -[INFO] --- maven-pmd-plugin:3.5:check (default) @ alerts --- -[INFO] -[INFO] -[INFO] >>> maven-pmd-plugin:3.5:cpd-check (default) > :cpd @ alerts >>> -[INFO] -[INFO] --- maven-pmd-plugin:3.5:cpd (cpd) @ alerts --- -[INFO] -[INFO] <<< maven-pmd-plugin:3.5:cpd-check (default) < :cpd @ alerts <<< -[INFO] -[INFO] --- maven-pmd-plugin:3.5:cpd-check (default) @ alerts --- -[INFO] -[INFO] -[INFO] --- maven-checkstyle-plugin:2.10:check (default) @ alerts --- -[INFO] Starting audit... -Audit done. - -[INFO] -[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ alerts --- -[INFO] Using 'UTF-8' encoding to copy filtered resources. -[INFO] Copying 1 resource -[INFO] -[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ alerts --- -[INFO] Compiling 11 source files to /home/user/repos/modules/alerts/target/test-classes -[INFO] -[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ alerts --- -[INFO] Surefire report directory: /home/user/repos/modules/alerts/target/surefire-reports -[INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider -[INFO] parallel='none', perCoreThreadCount=true, threadCount=0, useUnlimitedThreads=false, threadCountSuites=0, threadCountClasses=0, threadCountMethods=0, parallelOptimized=true - -------------------------------------------------------- - T E S T S -------------------------------------------------------- -Java HotSpot(TM) 64-Bit Server VM warning: ignoring option UseSplitVerifier; support was removed in 8.0 -Running org.motechproject.alerts.contract.CriterionTest -Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.444 sec - in org.motechproject.alerts.contract.CriterionTest -Running org.motechproject.alerts.service.AlertServiceImplTest -Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec - in org.motechproject.alerts.service.AlertServiceImplTest -Running org.motechproject.alerts.service.AlertFilterTest -Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.025 sec - in org.motechproject.alerts.service.AlertFilterTest -Running org.motechproject.alerts.service.AlertEventHandlerTest -Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec - in org.motechproject.alerts.service.AlertEventHandlerTest - -Results : - -Tests run: 10, Failures: 0, Errors: 0, Skipped: 0 - -[INFO] -[INFO] --- maven-bundle-plugin:2.5.3:bundle (default-bundle) @ alerts --- -[INFO] -[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-bundles) @ alerts --- -[INFO] Using 'UTF-8' encoding to copy filtered resources. -[INFO] Copying 1 resource -[INFO] -[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-test-config-files) @ alerts --- -[INFO] Using 'UTF-8' encoding to copy filtered resources. -[INFO] Copying 1 resource -[INFO] Copying 1 resource -[INFO] -[INFO] --- sql-maven-plugin:1.5:execute (drop-db) @ alerts --- -[INFO] Executing commands -[INFO] 3 of 3 SQL statements executed successfully -[INFO] -[INFO] --- sql-maven-plugin:1.5:execute (create-db) @ alerts --- -[INFO] Executing commands -[INFO] 3 of 3 SQL statements executed successfully -[INFO] -[INFO] --- maven-failsafe-plugin:2.17:integration-test (integration-test) @ alerts --- -[WARNING] The parameter forkMode is deprecated since version 2.14. Use forkCount and reuseForks instead. -[INFO] Failsafe report directory: /home/user/repos/modules/alerts/target/failsafe-reports - -------------------------------------------------------- - T E S T S -------------------------------------------------------- - -------------------------------------------------------- - T E S T S -------------------------------------------------------- -Running org.motechproject.alerts.it.AlertsIntegrationTests -2016-09-08 10:59:06,764 WARN [org.motechproject.server.osgi.PlatformActivator] Felix http bundle unavailable, http endpoints will not be active -[INFO] Started jetty 6.1.x at port(s) HTTP:8181 -2016-09-08 10:59:10,096 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] datanucleus_data.properties file in the location /home/user/.motech/config/ is not READABLE. -2016-09-08 10:59:10,096 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] datanucleus_data.properties file in the location /etc/motech/ is not READABLE. -2016-09-08 10:59:10,097 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] datanucleus_data.properties file in the location \/home/user/.motech/config/ is not READABLE. -2016-09-08 10:59:10,097 WARN [org.motechproject.config.core.datanucleus.impl.DbConfigManagerImpl] datanucleus_data.properties file is not READABLE from any of the default locations. Searched directories: /home/user/.motech/config/ /etc/motech/ \/home/user/.motech/config/ . -[INFO] Initializing Spring FrameworkServlet 'servlet_1' -2016-09-08 10:59:10,334 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] datanucleus_schema.properties file in the location /home/user/.motech/config/ is not READABLE. -2016-09-08 10:59:10,337 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] datanucleus_schema.properties file in the location /etc/motech/ is not READABLE. -2016-09-08 10:59:10,340 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] datanucleus_schema.properties file in the location \/home/user/.motech/config/ is not READABLE. -2016-09-08 10:59:10,346 WARN [org.motechproject.config.core.datanucleus.impl.DbConfigManagerImpl] datanucleus_schema.properties file is not READABLE from any of the default locations. Searched directories: /home/user/.motech/config/ /etc/motech/ \/home/user/.motech/config/ . -[INFO] Initialized servlet for org.motechproject.motech-platform-osgi-web-util [101] -2016-09-08 10:59:10,610 WARN [org.motechproject.osgi.web.tracker.UIServiceTrackers] Bean moduleRegistrationData not found in org.motechproject.motech-platform-osgi-web-util -2016-09-08 10:59:11,352 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] flyway_schema.properties file in the location /home/user/.motech/config/ is not READABLE. -2016-09-08 10:59:11,352 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] flyway_schema.properties file in the location /etc/motech/ is not READABLE. -2016-09-08 10:59:11,353 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] flyway_schema.properties file in the location \/home/user/.motech/config/ is not READABLE. -2016-09-08 10:59:11,353 WARN [org.motechproject.config.core.datanucleus.impl.DbConfigManagerImpl] flyway_schema.properties file is not READABLE from any of the default locations. Searched directories: /home/user/.motech/config/ /etc/motech/ \/home/user/.motech/config/ . -2016-09-08 11:00:23,342 WARN [org.motechproject.mds.annotations.internal.UIDisplayableProcessor] The annotation has the position value which is greater than total number of fields. -2016-09-08 11:00:37,848 WARN [org.motechproject.mds.osgi.EntitiesBundleMonitor] No entities bundle to stop -2016-09-08 11:00:45,110 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] flyway_data.properties file in the location /home/user/.motech/config/ is not READABLE. -2016-09-08 11:00:45,110 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] flyway_data.properties file in the location /etc/motech/ is not READABLE. -2016-09-08 11:00:45,111 WARN [org.motechproject.config.core.utils.ConfigPropertiesUtils] flyway_data.properties file in the location \/home/user/.motech/config/ is not READABLE. -2016-09-08 11:00:45,111 WARN [org.motechproject.config.core.datanucleus.impl.DbConfigManagerImpl] flyway_data.properties file is not READABLE from any of the default locations. Searched directories: /home/user/.motech/config/ /etc/motech/ \/home/user/.motech/config/ . -[INFO] Initializing Spring FrameworkServlet 'servlet_3' -[INFO] Initialized servlet for org.motechproject.motech-platform-dataservices [60] -2016-09-08 11:01:21,253 WARN [org.motechproject.osgi.web.tracker.UIServiceTrackers] Bean moduleRegistrationData not found in org.motechproject.motech-platform-dataservices -[INFO] Initializing Spring FrameworkServlet 'servlet_4' -[INFO] Initialized servlet for org.motechproject.alerts [13] -2016-09-08 11:01:23,634 WARN [org.motechproject.osgi.web.tracker.UIServiceTrackers] Bean moduleRegistrationData not found in org.motechproject.alerts -[INFO] Destroying Spring FrameworkServlet 'servlet_4' -[INFO] Destroying Spring FrameworkServlet 'servlet_3' -[INFO] Destroying Spring FrameworkServlet 'servlet_1' -Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 152.554 sec - in org.motechproject.alerts.it.AlertsIntegrationTests - -Results : - -Tests run: 16, Failures: 0, Errors: 0, Skipped: 0 - -[INFO] -[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-no-package-cycles) @ alerts --- -[INFO] Adding directory /home/user/repos/modules/alerts/target/classes for package cycles search. -[INFO] Adding directory /home/user/repos/modules/alerts/target/test-classes for package cycles search. -[INFO] -[INFO] --- maven-failsafe-plugin:2.17:verify (verify) @ alerts --- -[INFO] Failsafe report directory: /home/user/repos/modules/alerts/target/failsafe-reports -[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! -[INFO] -[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ alerts --- -[INFO] Installing /home/user/repos/modules/alerts/target/alerts-0.30-SNAPSHOT.jar to /home/user/.m2/repository/org/motechproject/alerts/0.30-SNAPSHOT/alerts-0.30-SNAPSHOT.jar -[INFO] Installing /home/user/repos/modules/alerts/pom.xml to /home/user/.m2/repository/org/motechproject/alerts/0.30-SNAPSHOT/alerts-0.30-SNAPSHOT.pom -[INFO] -[INFO] --- maven-bundle-plugin:2.5.3:install (default-install) @ alerts --- -[INFO] Installing org/motechproject/alerts/0.30-SNAPSHOT/alerts-0.30-SNAPSHOT.jar -[INFO] Writing OBR metadata -[INFO] -[INFO] ------------------------------------------------------------------------ -[INFO] Building Appointments Module 0.30-SNAPSHOT -[INFO] ------------------------------------------------------------------------ -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-web-security/0.30-SNAPSHOT/maven-metadata.xml -795/795 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-platform-web-security/0.30-SNAPSHOT/maven-metadata.xml (795 B at 3.6 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-scheduler/0.30-SNAPSHOT/maven-metadata.xml -783/783 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-scheduler/0.30-SNAPSHOT/maven-metadata.xml (783 B at 7.4 KB/sec) -Downloading: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-scheduler-migration/0.30-SNAPSHOT/maven-metadata.xml -793/793 B Downloaded: http://nexus.motechproject.org/content/repositories/public/org/motechproject/motech-scheduler-migration/0.30-SNAPSHOT/maven-metadata.xml (793 B at 7.4 KB/sec) -[INFO] -[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ appointments --- -[INFO] Deleting /home/user/repos/modules/appointments/target -[INFO] -[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-dependency-convergence) @ appointments --- -[INFO] -[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ appointments --- -[INFO] -[INFO] --- maven-dependency-plugin:2.8:resolve (list-dependencies) @ appointments --- -[INFO] -[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (copy-osgi-dependencies) @ appointments --- -[INFO] paranamer-2.6-sources.jar already exists in destination. -[INFO] jcip-annotations-1.0.jar already exists in destination. -[INFO] kahadb-5.4.2.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-context-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.paranamer-2.6_1.jar already exists in destination. -[INFO] org.apache.servicemix.specs.saaj-api-1.3-2.2.0.jar already exists in destination. -[INFO] aopalliance-1.0.jar already exists in destination. -[INFO] quartz-2.2.1.jar already exists in destination. -[INFO] datanucleus-core-4.0.1.jar already exists in destination. -[INFO] org.apache.felix.eventadmin-1.3.2.jar already exists in destination. -[INFO] maven-scm-provider-svnexe-1.4.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.saaj-impl-1.3.25_1.jar already exists in destination. -[INFO] motech-platform-dataservices-migration-0.30-SNAPSHOT.jar already exists in destination. -[INFO] javax.management.j2ee-api-1.1.1.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-expression-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] datanucleus-rdbms-4.0.1.jar already exists in destination. -[INFO] datanucleus-java8-4.0.5.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-aop-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] mimepull-1.9.jar already exists in destination. -[INFO] xml-apis-1.4.01.jar already exists in destination. -[INFO] asm-commons-5.0.3.jar already exists in destination. -[INFO] commons-digester-2.1.jar already exists in destination. -[INFO] org.eclipse.gemini.blueprint.core-1.0.2.RELEASE.jar already exists in destination. -[INFO] motech-platform-commons-date-0.30-SNAPSHOT.jar already exists in destination. -[INFO] commons-logging-1.1.1.jar already exists in destination. -[INFO] commons-io-2.4.jar already exists in destination. -[INFO] commons-beanutils-1.9.2.jar already exists in destination. -[INFO] commons-dbcp-1.4.jar already exists in destination. -[INFO] flyway-core-2.3.1.jar already exists in destination. -[INFO] nekohtml-1.9.20.jar already exists in destination. -[INFO] spring-security-web-3.2.8.RELEASE.jar already exists in destination. -[INFO] motech-osgi-platform-0.30-SNAPSHOT.jar already exists in destination. -[INFO] time-api-0.6.3.jar already exists in destination. -[INFO] com.springsource.javax.servlet-2.5.0.jar already exists in destination. -[INFO] super-csv-2.2.0.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.jsch-0.1.51_1.jar already exists in destination. -[INFO] org.apache.bval.bundle-0.5.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-web-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] motech-platform-web-security-0.30-SNAPSHOT.jar already exists in destination. -[INFO] motech-scheduler-0.30-SNAPSHOT.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.c3p0-0.9.1.2_1.jar already exists in destination. -[INFO] guice-2.0.jar already exists in destination. -[INFO] joda-time-2.9.1.jar already exists in destination. -[INFO] regexp-1.3.jar already exists in destination. -[INFO] com.springsource.com.google.inject-2.0.0.jar already exists in destination. -[INFO] spring-security-core-3.2.8.RELEASE.jar already exists in destination. -[INFO] asm-5.0.3.jar already exists in destination. -[INFO] bval-core-0.5.jar already exists in destination. -[INFO] motech-platform-event-0.30-SNAPSHOT.jar already exists in destination. -[INFO] maven-scm-api-1.4.jar already exists in destination. -[INFO] spring-orm-3.2.16.RELEASE.jar already exists in destination. -[INFO] commons-lang-2.6.jar already exists in destination. -[INFO] activation-1.1.jar already exists in destination. -[INFO] commons-vfs2-2.0.jar already exists in destination. -[INFO] com.springsource.org.apache.commons.httpclient-3.1.0.jar already exists in destination. -[INFO] motech-platform-dataservices-0.30-SNAPSHOT.jar already exists in destination. -[INFO] commons-codec-1.10.jar already exists in destination. -[INFO] org.apache.felix.http.api-2.2.0.jar already exists in destination. -[INFO] javassist-3.18.1-GA.jar already exists in destination. -[INFO] openid4java-nodeps-0.9.6.jar already exists in destination. -[INFO] motech-platform-config-core-0.30-SNAPSHOT.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.velocity-1.6.4_4.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-core-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-context-support-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.xmlresolver-1.2_1.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-security-config-3.2.8.RELEASE_1.jar already exists in destination. -[INFO] jta-1.1.jar already exists in destination. -[INFO] org.apache.servicemix.specs.activation-api-1.1-2.4.0.jar already exists in destination. -[INFO] ow2-ejb-3.1-spec-1.0.13.jar already exists in destination. -[INFO] stax-api-1.0-2.jar already exists in destination. -[INFO] javax.xml.rpc-api-1.1.1.jar already exists in destination. -[INFO] com.springsource.org.openid4java-0.9.5.jar already exists in destination. -[INFO] guava-18.0.jar already exists in destination. -[INFO] org.motechproject.spring-orm-3.2.16.RELEASE_1-r033.jar already exists in destination. -[INFO] org.eclipse.gemini.blueprint.io-1.0.2.RELEASE.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.howl-1.0.1-1_3.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-webmvc-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] motech-platform-commons-api-0.30-SNAPSHOT.jar already exists in destination. -[INFO] motech-platform-osgi-extender-fragment-0.30-SNAPSHOT.jar already exists in destination. -[INFO] jdo-api-3.0.1.jar already exists in destination. -[INFO] oro-2.0.8.jar already exists in destination. -[INFO] slf4j-api-1.7.7.jar already exists in destination. -[INFO] xercesImpl-2.10.0.jar already exists in destination. -[INFO] org.osgi.compendium-5.0.0.jar already exists in destination. -[INFO] com.springsource.javax.transaction-1.1.0.jar already exists in destination. -[INFO] org.motechproject.reflections-0.9.9-r033.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-beans-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] postgresql-9.1-901.jdbc4.jar already exists in destination. -[INFO] org.motechproject.org.codehaus.jackson-1.9.7-r033.jar already exists in destination. -[INFO] com.springsource.javax.jms-1.1.0.jar already exists in destination. -[INFO] datanucleus-api-jdo-4.0.1.jar already exists in destination. -[INFO] annotations-2.0.1.jar already exists in destination. -[INFO] mysql-connector-java-5.1.32.jar already exists in destination. -[INFO] log4j-1.2.17.jar already exists in destination. -[INFO] org.motechproject.com.google.code.gson-1.7.1-r033.jar already exists in destination. -[INFO] maven-scm-provider-svn-commons-1.4.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.aopalliance-1.0_6.jar already exists in destination. -[INFO] spring-integration-core-2.1.0.RELEASE.jar already exists in destination. -[INFO] itextpdf-5.5.6.jar already exists in destination. -[INFO] com.springsource.org.cyberneko.html-1.9.13.jar already exists in destination. -[INFO] motech-platform-osgi-web-util-0.30-SNAPSHOT.jar already exists in destination. -[INFO] datanucleus-jodatime-4.0.6.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-tx-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] org.motechproject.javax.time-0.6.3-r033.jar already exists in destination. -[INFO] org.eclipse.gemini.blueprint.extender-1.0.2.RELEASE.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.aspectj-1.8.5_1.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.hamcrest-1.3_1.jar already exists in destination. -[INFO] bval-jsr303-0.5.jar already exists in destination. -[INFO] commons-net-3.2.jar already exists in destination. -[INFO] jcl-over-slf4j-1.7.7.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-jdbc-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] org.motechproject.org.apache.activemq-5.4.2-r033.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.xerces-2.10.0_1.jar already exists in destination. -[INFO] motech-platform-commons-sql-0.30-SNAPSHOT.jar already exists in destination. -[INFO] commons-lang3-3.1.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.spring-jms-3.2.16.RELEASE_1.jar already exists in destination. -[INFO] motech-scheduler-migration-0.30-SNAPSHOT.jar already exists in destination. -[INFO] paranamer-2.6.jar already exists in destination. -[INFO] commons-configuration-1.10.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.dom4j-1.6.1_5.jar already exists in destination. -[INFO] org.motechproject.org.postgresql-9.1-901.jdbc4-r033.jar already exists in destination. -[INFO] stax-ex-1.7.4.jar already exists in destination. -[INFO] commons-pool-1.6.jar already exists in destination. -[INFO] motech-platform-server-config-0.30-SNAPSHOT.jar already exists in destination. -[INFO] commons-beanutils-core-1.8.3.jar already exists in destination. -[INFO] org.motechproject.com.googlecode.lambdaj-2.3.3-r033.jar already exists in destination. -[INFO] objenesis-2.1.jar already exists in destination. -[INFO] jackrabbit-webdav-2.9.1.jar already exists in destination. -[INFO] commons-validator-1.4.1.jar already exists in destination. -[INFO] asm-tree-5.0.3.jar already exists in destination. -[INFO] org.apache.servicemix.bundles.cglib-2.2.2_1.jar already exists in destination. -[INFO] spring-integration-jms-2.1.0.RELEASE.jar already exists in destination. -[INFO] commons-collections-3.2.2.jar already exists in destination. -[INFO] slf4j-log4j12-1.7.7.jar already exists in destination. -[INFO] com.springsource.javax.validation-1.0.0.GA.jar already exists in destination. -[INFO] motech-c3p0-fragment-bundle-0.16-r033.jar already exists in destination. -[INFO] org.eclipse.osgi.services-3.3.0.v20110513.jar already exists in destination. -[INFO] reflections-0.9.9.jar already exists in destination. -[INFO] spring-security-openid-3.2.8.RELEASE.jar already exists in destination. -[INFO] commons-httpclient-3.1.jar already exists in destination. -[INFO] -[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ appointments --- -[INFO] Using 'UTF-8' encoding to copy filtered resources. -[INFO] Copying 2 resources -[INFO] -[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ appointments --- -[INFO] Changes detected - recompiling the module! -[INFO] Compiling 10 source files to /home/user/repos/modules/appointments/target/classes -[INFO] -[INFO] >>> maven-pmd-plugin:3.5:check (default) > :pmd @ appointments >>> -[INFO] -[INFO] --- maven-pmd-plugin:3.5:pmd (pmd) @ appointments --- -[INFO] -[INFO] <<< maven-pmd-plugin:3.5:check (default) < :pmd @ appointments <<< -[INFO] -[INFO] --- maven-pmd-plugin:3.5:check (default) @ appointments --- -[INFO] -[INFO] -[INFO] >>> maven-pmd-plugin:3.5:cpd-check (default) > :cpd @ appointments >>> -[INFO] -[INFO] --- maven-pmd-plugin:3.5:cpd (cpd) @ appointments --- -[INFO] -[INFO] <<< maven-pmd-plugin:3.5:cpd-check (default) < :cpd @ appointments <<< -[INFO] -[INFO] --- maven-pmd-plugin:3.5:cpd-check (default) @ appointments --- -[INFO] -[INFO] -[INFO] --- maven-checkstyle-plugin:2.10:check (default) @ appointments --- -[INFO] Starting audit... -Audit done. - -[INFO] -[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ appointments --- -[INFO] Using 'UTF-8' encoding to copy filtered resources. -[INFO] Copying 2 resources -[INFO] -[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ appointments --- -[INFO] Changes detected - recompiling the module! -[INFO] Compiling 2 source files to /home/user/repos/modules/appointments/target/test-classes -[INFO] -[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ appointments --- -[INFO] -[INFO] --- maven-bundle-plugin:2.5.3:bundle (default-bundle) @ appointments --- -[INFO] -[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-bundles) @ appointments --- -[INFO] Using 'UTF-8' encoding to copy filtered resources. -[INFO] Copying 1 resource -[INFO] -[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-test-config-files) @ appointments --- -[INFO] Using 'UTF-8' encoding to copy filtered resources. -[INFO] Copying 1 resource -[INFO] Copying 1 resource -[INFO] -[INFO] --- sql-maven-plugin:1.5:execute (drop-db) @ appointments --- -[INFO] Executing commands -[INFO] 3 of 3 SQL statements executed successfully -[INFO] -[INFO] --- sql-maven-plugin:1.5:execute (create-db) @ appointments --- -[INFO] Executing commands -[INFO] 3 of 3 SQL statements executed successfully -[INFO] -[INFO] --- maven-failsafe-plugin:2.17:integration-test (integration-test) @ appointments --- -[INFO] Failsafe report directory: /home/user/repos/modules/appointments/target/failsafe-reports - -------------------------------------------------------- - T E S T S -------------------------------------------------------- -Running org.motechproject.appointments.service.it.AppointmentsIntegrationTests -[INFO] Started jetty 6.1.x at port(s) HTTP:8181 -[INFO] Initializing Spring FrameworkServlet 'servlet_1' -[INFO] Initialized servlet for org.motechproject.motech-platform-osgi-web-util [65] -2016-09-08 11:05:01,652 EclipseGeminiBlueprintExtenderThread-12 DEBUG [org.motechproject.appointments.domain.mdsserviceimpl.AppointmentChangeRecordServiceImpl] Initializing org.motechproject.appointments.domain.mdsserviceimpl.AppointmentChangeRecordServiceImpl -2016-09-08 11:05:01,656 EclipseGeminiBlueprintExtenderThread-12 DEBUG [org.motechproject.appointments.domain.mdsserviceimpl.AppointmentChangeRecordServiceImpl] org.motechproject.appointments.domain.mdsserviceimpl.AppointmentChangeRecordServiceImpl ready -2016-09-08 11:05:01,795 EclipseGeminiBlueprintExtenderThread-12 DEBUG [org.motechproject.appointments.domain.mdsserviceimpl.AppointmentServiceImpl] Initializing org.motechproject.appointments.domain.mdsserviceimpl.AppointmentServiceImpl -2016-09-08 11:05:01,799 EclipseGeminiBlueprintExtenderThread-12 DEBUG [org.motechproject.appointments.domain.mdsserviceimpl.AppointmentServiceImpl] org.motechproject.appointments.domain.mdsserviceimpl.AppointmentServiceImpl ready -[INFO] Initializing Spring FrameworkServlet 'servlet_3' -[INFO] Initializing Spring FrameworkServlet 'servlet_4' -[INFO] Initialized servlet for org.motechproject.motech-platform-dataservices [46] -[INFO] Initializing Spring FrameworkServlet 'servlet_7' -[INFO] Initialized servlet for org.motechproject.appointments [13] -[INFO] Initializing Spring FrameworkServlet 'servlet_9' -2016-09-08 11:05:51,024 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] toggleReminders -2016-09-08 11:05:51,452 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] deleteAppointment -2016-09-08 11:05:51,722 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] deleteAppointmentException -2016-09-08 11:05:51,729 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] addAppointment -2016-09-08 11:05:51,853 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] addAppointmentDuplicate -2016-09-08 11:05:51,991 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] addMultiple -2016-09-08 11:05:52,177 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] findAppointmentsByExternalId -2016-09-08 11:05:52,406 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] testAppointmentService -2016-09-08 11:05:52,410 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] findAppointmentsByExternalIdAndStatus -2016-09-08 11:05:52,567 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] updateAppointment -2016-09-08 11:05:53,035 main INFO [org.motechproject.appointments.service.it.AppointmentServiceBundleIT] updateAppointmentException -[INFO] Initialized servlet for org.motechproject.motech-scheduler [104] -[INFO] Destroying Spring FrameworkServlet 'servlet_7' -ERROR: Bundle org.motechproject.motech-platform-osgi-web-util [65] EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext) -ERROR: Bundle org.motechproject.motech-platform-web-security [103] EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext) -[INFO] Destroying Spring FrameworkServlet 'servlet_4' -ERROR: Bundle org.motechproject.motech-platform-event [41] EventDispatcher: Error during dispatch. (java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext) -[INFO] Destroying Spring FrameworkServlet 'servlet_1' -[INFO] Destroying Spring FrameworkServlet 'servlet_9' -[INFO] Destroying Spring FrameworkServlet 'servlet_3' -Tests run: 12, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 242.961 sec <<< FAILURE! - in org.motechproject.appointments.service.it.AppointmentsIntegrationTests -getAppointment(org.motechproject.appointments.service.it.AppointmentServiceBundleIT) Time elapsed: 225.152 sec <<< ERROR! -org.ops4j.pax.exam.TestContainerException: Framework not ready after 225000 ms - at org.motechproject.testing.osgi.container.MotechNativeTestContainer.waitForTestedBundle(MotechNativeTestContainer.java:134) - at org.motechproject.testing.osgi.container.MotechNativeTestContainer.call(MotechNativeTestContainer.java:103) - at org.ops4j.pax.exam.spi.reactors.SingletonStagedReactor.invoke(SingletonStagedReactor.java:114) - at org.ops4j.pax.exam.spi.reactors.PerSuiteStagedReactor.invoke(PerSuiteStagedReactor.java:47) - at org.ops4j.pax.exam.junit.impl.ProbeRunner$2.evaluate(ProbeRunner.java:264) - at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) - at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) - at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) - at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) - at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) - at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) - at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) - at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) - at org.junit.runners.ParentRunner.run(ParentRunner.java:309) - at org.ops4j.pax.exam.junit.impl.ProbeRunner.run(ProbeRunner.java:98) - at org.ops4j.pax.exam.junit.PaxExam.run(PaxExam.java:93) - at org.junit.runners.Suite.runChild(Suite.java:127) - at org.junit.runners.Suite.runChild(Suite.java:26) - at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) - at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) - at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) - at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) - at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) - at org.junit.runners.ParentRunner.run(ParentRunner.java:309) - at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) - at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) - at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) - at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) - at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) - at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) - - -Results : - -Tests in error: - AppointmentServiceBundleIT.getAppointment » TestContainer Framework not ready ... - -Tests run: 12, Failures: 0, Errors: 1, Skipped: 0 - -[INFO] -[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-no-package-cycles) @ appointments --- -[INFO] Adding directory /home/user/repos/modules/appointments/target/classes for package cycles search. -[INFO] Adding directory /home/user/repos/modules/appointments/target/test-classes for package cycles search. -[INFO] -[INFO] --- maven-failsafe-plugin:2.17:verify (verify) @ appointments --- -[INFO] Failsafe report directory: /home/user/repos/modules/appointments/target/failsafe-reports -[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! -[INFO] ------------------------------------------------------------------------ -[INFO] Reactor Summary: -[INFO] -[INFO] MOTECH Modules ..................................... SUCCESS [ 6.720 s] -[INFO] Alerts Module ...................................... SUCCESS [03:01 min] -[INFO] Appointments Module ................................ FAILURE [04:20 min] -[INFO] CMS Lite Module .................................... SKIPPED -[INFO] CommCare Module .................................... SKIPPED -[INFO] Event Logging Module ............................... SKIPPED -[INFO] Hindi Transliteration .............................. SKIPPED -[INFO] Http Agent Module .................................. SKIPPED -[INFO] mTraining Module ................................... SKIPPED -[INFO] SMS Module ......................................... SKIPPED -[INFO] MOTECH Message Campaign ............................ SKIPPED -[INFO] OpenMRS ............................................ SKIPPED -[INFO] Pill Reminder Module ............................... SKIPPED -[INFO] Schedule Tracking Modules .......................... SKIPPED -[INFO] MOTECH Batch ....................................... SKIPPED -[INFO] MOTECH Hub ......................................... SKIPPED -[INFO] IVR Module ......................................... SKIPPED -[INFO] DHIS2 module ....................................... SKIPPED -[INFO] Care Services Discovery ............................ SKIPPED -[INFO] Metrics ............................................ SKIPPED -[INFO] ODK Module ......................................... SKIPPED -[INFO] IHE Interop Module ................................. SKIPPED -[INFO] Atom Client ........................................ SKIPPED -[INFO] RapidPro Module .................................... SKIPPED -[INFO] ------------------------------------------------------------------------ -[INFO] BUILD FAILURE -[INFO] ------------------------------------------------------------------------ -[INFO] Total time: 07:31 min -[INFO] Finished at: 2016-09-08T11:05:56+02:00 -[INFO] Final Memory: 99M/935M -[INFO] ------------------------------------------------------------------------ -[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.17:verify (verify) on project appointments: There are test failures. -[ERROR] -[ERROR] Please refer to /home/user/repos/modules/appointments/target/failsafe-reports for the individual test results. -[ERROR] -> [Help 1] -[ERROR] -[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. -[ERROR] Re-run Maven using the -X switch to enable full debug logging. -[ERROR] -[ERROR] For more information about the errors and possible solutions, please read the following articles: -[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException -[ERROR] -[ERROR] After correcting the problems, you can resume the build with the command -[ERROR] mvn -rf :appointments diff --git a/run_build.sh b/run_build.sh index bb3f6ebb3..f6ee58334 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,7 +3,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U + mvn clean install -PIT -U -X elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties . mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U From b27012608d78b7bf2ddd7a3d34fb253a4a340d99 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 12:13:32 +0200 Subject: [PATCH 049/119] MOTECH-2895: 46th try --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 867b0e3e9..5d2f9e06c 100644 --- a/pom.xml +++ b/pom.xml @@ -1090,6 +1090,7 @@ ${modules.root.dir}/testdata/${motech.sql.dbtype} bootstrap.properties + 0755 From 441734289781db29ab829b0a206a9b585a63582c Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 13:01:58 +0200 Subject: [PATCH 050/119] MOTECH-2895: 47th try --- pom.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5d2f9e06c..ae1cb7228 100644 --- a/pom.xml +++ b/pom.xml @@ -1090,7 +1090,6 @@ ${modules.root.dir}/testdata/${motech.sql.dbtype} bootstrap.properties - 0755 @@ -1223,6 +1222,18 @@ + + + + ${modules.root.dir}/testdata/${motech.sql.dbtype} + ${modules.root.dir}/testdata/${motech.sql.dbtype} + 0755 + 0755 + + + SV From 5927f6b72bc4e67b3bd890e98fd12e58cad45e16 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 13:06:18 +0200 Subject: [PATCH 051/119] MOTECH-2895: 48th try --- pom.xml | 14 +------------- run_build.sh | 5 ++++- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/pom.xml b/pom.xml index ae1cb7228..6f4df2102 100644 --- a/pom.xml +++ b/pom.xml @@ -575,7 +575,7 @@ org.apache.servicemix.bundles.velocity 1.6.4_4 - + org.apache.servicemix.bundles org.apache.servicemix.bundles.velocity-tools 2.0_1 @@ -1222,18 +1222,6 @@ - - - - ${modules.root.dir}/testdata/${motech.sql.dbtype} - ${modules.root.dir}/testdata/${motech.sql.dbtype} - 0755 - 0755 - - - SV diff --git a/run_build.sh b/run_build.sh index f6ee58334..a2614291c 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,7 +3,10 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U -X + mvn clean install -PIT -U & + sleep 30 + cp ./testdata/mysql/bootstrap.properties ~/.motech/config/ + chmod a+r ~/.motech/config/bootstrap.properties elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties . mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U From 10a7ef31bd7bd6afade1c0acf648641b11fa802a Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 13:11:00 +0200 Subject: [PATCH 052/119] MOTECH-2895: 49th try --- run_build.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/run_build.sh b/run_build.sh index a2614291c..ae175b3ad 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,10 +3,8 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U & - sleep 30 - cp ./testdata/mysql/bootstrap.properties ~/.motech/config/ - chmod a+r ~/.motech/config/bootstrap.properties + chmod -R a+r . + mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties . mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U From ed9b6dbb4912acd26da6be2e2eded6221c5fae48 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 13:23:30 +0200 Subject: [PATCH 053/119] MOTECH-2895: 50th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index ae175b3ad..18682eacf 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,7 +3,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - chmod -R a+r . + export MOTECH_CONFIG_DIR=`pwd`/testdata/mysql/ mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties . From 8bb7a65fdc8ff130b40b66eb1b1873bfdc34cfcd Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 13:30:07 +0200 Subject: [PATCH 054/119] MOTECH-2895: 51th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 18682eacf..6e8015ded 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,7 +3,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - export MOTECH_CONFIG_DIR=`pwd`/testdata/mysql/ + chmod -R a+r ~/.motech/ mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties . From 291fe77d61ef1b5b18c996985d49c4f0c5c1306a Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 13:33:05 +0200 Subject: [PATCH 055/119] MOTECH-2895: 52th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 6e8015ded..06fe0d357 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,7 +3,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - chmod -R a+r ~/.motech/ + chmod -R a+r ~/.m2/ mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties . From 00c1ac4e7233f3df70701b8ccffdb2e9815687be Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 13:40:53 +0200 Subject: [PATCH 056/119] MOTECH-2895: 53th try --- run_build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run_build.sh b/run_build.sh index 06fe0d357..2f5066856 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,8 +3,9 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - chmod -R a+r ~/.m2/ - mvn clean install -PIT -U + mvn clean package + chmod -R a+x ~/.motech/ + mvn install -PIT -U elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties . mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U From 014b8887a6f9698646a82a30a2f697c0cd2727e2 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 13:48:09 +0200 Subject: [PATCH 057/119] MOTECH-2895: 54th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 2f5066856..3413c0ed9 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,7 +3,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean package + mvn clean compile chmod -R a+x ~/.motech/ mvn install -PIT -U elif [ "$DB" = "psql" ]; then From 824f5f04ed852c5f9d9c9839e4461c5ea479498c Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 13:53:45 +0200 Subject: [PATCH 058/119] MOTECH-2895: 55th try --- run_build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/run_build.sh b/run_build.sh index 3413c0ed9..ccf1866ad 100644 --- a/run_build.sh +++ b/run_build.sh @@ -4,6 +4,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn clean compile + cp ./testdata/mysql/bootstrap.properties ~/.motech/config/ chmod -R a+x ~/.motech/ mvn install -PIT -U elif [ "$DB" = "psql" ]; then From d8d5f5eb806c99360fe8cbe923638189f1e67c8d Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 14:05:03 +0200 Subject: [PATCH 059/119] MOTECH-2895: 56th try --- run_build.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/run_build.sh b/run_build.sh index ccf1866ad..16b550e0a 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,12 +3,11 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean compile - cp ./testdata/mysql/bootstrap.properties ~/.motech/config/ - chmod -R a+x ~/.motech/ - mvn install -PIT -U + mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then - cp ./testdata/psql/bootstrap.properties . - mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U + cp ./testdata/psql/bootstrap.properties `pwd` + mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U & + sleep 50 + cp ./testdata/psql/bootstrap.properties `pwd` fi fi From c3f15ab24e05229532cfeb565b4d6b4687efd1b9 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 14:06:30 +0200 Subject: [PATCH 060/119] MOTECH-2895: 57th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 16b550e0a..722767a62 100644 --- a/run_build.sh +++ b/run_build.sh @@ -8,6 +8,6 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then cp ./testdata/psql/bootstrap.properties `pwd` mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U & sleep 50 - cp ./testdata/psql/bootstrap.properties `pwd` + cp ./testdata/psql/bootstrap.properties ~/.motech/config/ fi fi From 725dbcc571e0585030e62f99ce9260faafe48745 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 14:07:21 +0200 Subject: [PATCH 061/119] MOTECH-2895: 58th try --- run_build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/run_build.sh b/run_build.sh index 722767a62..f183232e0 100644 --- a/run_build.sh +++ b/run_build.sh @@ -9,5 +9,6 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U & sleep 50 cp ./testdata/psql/bootstrap.properties ~/.motech/config/ + chmod a+r ~/.motech/config/bootstrap.properties fi fi From 0794230bdc8ca312c4ebe7ac603d087932007fcc Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 14:08:39 +0200 Subject: [PATCH 062/119] MOTECH-2895: 59th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index f183232e0..29aeed6c7 100644 --- a/run_build.sh +++ b/run_build.sh @@ -7,7 +7,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties `pwd` mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U & - sleep 50 + sleep 30 cp ./testdata/psql/bootstrap.properties ~/.motech/config/ chmod a+r ~/.motech/config/bootstrap.properties fi From e517fbdf8b151e88a3f87f7324afb66a10f9d4b4 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 14:12:25 +0200 Subject: [PATCH 063/119] MOTECH-2895: 60th try --- run_build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run_build.sh b/run_build.sh index 29aeed6c7..0174388e2 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,12 +3,13 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U + mvn clean install -PIT -U & + sleep 30 + chmod a+r ~/.motech/config/bootstrap.properties elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties `pwd` mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U & sleep 30 - cp ./testdata/psql/bootstrap.properties ~/.motech/config/ chmod a+r ~/.motech/config/bootstrap.properties fi fi From c5fae1bcc1bf2ccd1f2b2193c676cd048c94bef8 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 14:21:08 +0200 Subject: [PATCH 064/119] MOTECH-2895: 61th try --- config_services.sh | 10 +++++----- pom.xml | 2 +- run_build.sh | 8 ++------ 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/config_services.sh b/config_services.sh index 25ea5d2f4..362376b3a 100644 --- a/config_services.sh +++ b/config_services.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash -#sudo apt-get update -qq +sudo apt-get update -qq #Installation and configuration of ActiveMQ -#sudo apt-get install -y activemq -qq -#sudo ln -s /etc/activemq/instances-available/main /etc/activemq/instances-enabled/main -#sudo sed -e 's/ copy-test-config-files - pre-integration-test + package copy-resources diff --git a/run_build.sh b/run_build.sh index 0174388e2..5dfaae6ba 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,13 +3,9 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U & - sleep 30 - chmod a+r ~/.motech/config/bootstrap.properties + mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties `pwd` - mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U & - sleep 30 - chmod a+r ~/.motech/config/bootstrap.properties + mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi fi From b31b8b4362e870f71e146def01fe9a823c8362c6 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 14:25:12 +0200 Subject: [PATCH 065/119] MOTECH-2895: 62th try --- run_build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/run_build.sh b/run_build.sh index 5dfaae6ba..89281637a 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,6 +3,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root + export MOTECH_CONFIG_DIR=~/.motech/config/ mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties `pwd` From ef48614696fecb603febe8a5305593c404513f81 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 14:40:04 +0200 Subject: [PATCH 066/119] MOTECH-2895: 63th try --- pom.xml | 6 +++++- testdata/datanucleus_data.properties | 20 ++++++++++++++++++++ testdata/datanucleus_schema.properties | 18 ++++++++++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 testdata/datanucleus_data.properties create mode 100644 testdata/datanucleus_schema.properties diff --git a/pom.xml b/pom.xml index b539a947e..ca8a52924 100644 --- a/pom.xml +++ b/pom.xml @@ -1085,7 +1085,11 @@ ${modules.root.dir}/testdata - motech-settings.properties + + motech-settings.properties + datanucleus_data.properties + datanucleus_schema.properties + ${modules.root.dir}/testdata/${motech.sql.dbtype} diff --git a/testdata/datanucleus_data.properties b/testdata/datanucleus_data.properties new file mode 100644 index 000000000..cf66acb4f --- /dev/null +++ b/testdata/datanucleus_data.properties @@ -0,0 +1,20 @@ +javax.jdo.PersistenceManagerFactoryClass=org.datanucleus.api.jdo.JDOPersistenceManagerFactory + +javax.jdo.option.ConnectionDriverName=${motech.sql.driver} +javax.jdo.option.ConnectionURL=${motech.sql.url}motechdata +javax.jdo.option.ConnectionUserName=${motech.sql.user} +javax.jdo.option.ConnectionPassword=${motech.sql.password} +javax.jdo.option.NontransactionalWrite=false +javax.jdo.option.Optimistic=true + +datanucleus.schema.autoCreateAll=true +datanucleus.schema.validateTables=false +datanucleus.schema.validateConstraints=false +datanucleus.validation.mode=auto +datanucleus.identifier.case=MixedCase +datanucleus.plugin.pluginRegistryClassName=org.datanucleus.plugin.OSGiPluginRegistry +datanucleus.DetachAllOnCommit=true +datanucleus.classLoaderResolverName=clr.mds +datanucleus.query.sql.allowAll=true +datanucleus.deletionPolicy=DataNucleus +datanucleus.flush.mode=AUTO diff --git a/testdata/datanucleus_schema.properties b/testdata/datanucleus_schema.properties new file mode 100644 index 000000000..55187e32e --- /dev/null +++ b/testdata/datanucleus_schema.properties @@ -0,0 +1,18 @@ +javax.jdo.PersistenceManagerFactoryClass=org.datanucleus.api.jdo.JDOPersistenceManagerFactory + +javax.jdo.option.ConnectionDriverName=${motech.sql.driver} +javax.jdo.option.ConnectionURL=${motech.sql.url}motechschema +javax.jdo.option.ConnectionUserName=${motech.sql.user} +javax.jdo.option.ConnectionPassword=${motech.sql.password} +javax.jdo.option.NontransactionalWrite=false + +datanucleus.schema.autoCreateAll=true +datanucleus.schema.validateTables=false +datanucleus.schema.validateConstraints=false +datanucleus.validation.mode=auto +datanucleus.identifier.case=MixedCase +datanucleus.plugin.pluginRegistryClassName=org.datanucleus.plugin.OSGiPluginRegistry +datanucleus.DetachAllOnCommit=true +datanucleus.classLoaderResolverName=clr.mds +datanucleus.query.sql.allowAll=true +datanucleus.deletionPolicy=DataNucleus From 37941108993037a6be61a14837c3d75fb4692fbb Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 14:41:24 +0200 Subject: [PATCH 067/119] MOTECH-2895: 64th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 89281637a..6dba81dd8 100644 --- a/run_build.sh +++ b/run_build.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then + export MOTECH_CONFIG_DIR=~/.motech/config/ if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - export MOTECH_CONFIG_DIR=~/.motech/config/ mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties `pwd` From fc375538b7db6d276dbc5571b5cc78219cb3658c Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 14:48:04 +0200 Subject: [PATCH 068/119] MOTECH-2895: 65th try --- testdata/datanucleus_data.properties | 2 +- testdata/datanucleus_schema.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testdata/datanucleus_data.properties b/testdata/datanucleus_data.properties index cf66acb4f..ec5094228 100644 --- a/testdata/datanucleus_data.properties +++ b/testdata/datanucleus_data.properties @@ -1,7 +1,7 @@ javax.jdo.PersistenceManagerFactoryClass=org.datanucleus.api.jdo.JDOPersistenceManagerFactory javax.jdo.option.ConnectionDriverName=${motech.sql.driver} -javax.jdo.option.ConnectionURL=${motech.sql.url}motechdata +javax.jdo.option.ConnectionURL=${motech.sql.url}/motechdata javax.jdo.option.ConnectionUserName=${motech.sql.user} javax.jdo.option.ConnectionPassword=${motech.sql.password} javax.jdo.option.NontransactionalWrite=false diff --git a/testdata/datanucleus_schema.properties b/testdata/datanucleus_schema.properties index 55187e32e..19b747374 100644 --- a/testdata/datanucleus_schema.properties +++ b/testdata/datanucleus_schema.properties @@ -1,7 +1,7 @@ javax.jdo.PersistenceManagerFactoryClass=org.datanucleus.api.jdo.JDOPersistenceManagerFactory javax.jdo.option.ConnectionDriverName=${motech.sql.driver} -javax.jdo.option.ConnectionURL=${motech.sql.url}motechschema +javax.jdo.option.ConnectionURL=${motech.sql.url}/motechschema javax.jdo.option.ConnectionUserName=${motech.sql.user} javax.jdo.option.ConnectionPassword=${motech.sql.password} javax.jdo.option.NontransactionalWrite=false From 68f8cf68f1c1c7b9cb99b41c3d51fc106cfa4340 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 14:53:57 +0200 Subject: [PATCH 069/119] MOTECH-2895: 66th try --- testdata/datanucleus_data.properties | 8 ++++---- testdata/datanucleus_schema.properties | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/testdata/datanucleus_data.properties b/testdata/datanucleus_data.properties index ec5094228..3afdc9f48 100644 --- a/testdata/datanucleus_data.properties +++ b/testdata/datanucleus_data.properties @@ -1,9 +1,9 @@ javax.jdo.PersistenceManagerFactoryClass=org.datanucleus.api.jdo.JDOPersistenceManagerFactory -javax.jdo.option.ConnectionDriverName=${motech.sql.driver} -javax.jdo.option.ConnectionURL=${motech.sql.url}/motechdata -javax.jdo.option.ConnectionUserName=${motech.sql.user} -javax.jdo.option.ConnectionPassword=${motech.sql.password} +javax.jdo.option.ConnectionDriverName=${sql.driver} +javax.jdo.option.ConnectionURL=${sql.url}motechdata +javax.jdo.option.ConnectionUserName=${sql.user} +javax.jdo.option.ConnectionPassword=${sql.password} javax.jdo.option.NontransactionalWrite=false javax.jdo.option.Optimistic=true diff --git a/testdata/datanucleus_schema.properties b/testdata/datanucleus_schema.properties index 19b747374..18e1f83e3 100644 --- a/testdata/datanucleus_schema.properties +++ b/testdata/datanucleus_schema.properties @@ -1,9 +1,9 @@ javax.jdo.PersistenceManagerFactoryClass=org.datanucleus.api.jdo.JDOPersistenceManagerFactory -javax.jdo.option.ConnectionDriverName=${motech.sql.driver} -javax.jdo.option.ConnectionURL=${motech.sql.url}/motechschema -javax.jdo.option.ConnectionUserName=${motech.sql.user} -javax.jdo.option.ConnectionPassword=${motech.sql.password} +javax.jdo.option.ConnectionDriverName=${sql.driver} +javax.jdo.option.ConnectionURL=${sql.url}motechschema +javax.jdo.option.ConnectionUserName=${sql.user} +javax.jdo.option.ConnectionPassword=${sql.password} javax.jdo.option.NontransactionalWrite=false datanucleus.schema.autoCreateAll=true From 0762b47b71f578883cef49388cfc70e74203bb55 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 15:04:14 +0200 Subject: [PATCH 070/119] MOTECH-2895: 67th try --- testdata/flyway_data.properties | 4 ++++ testdata/flyway_schema.properties | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 testdata/flyway_data.properties create mode 100644 testdata/flyway_schema.properties diff --git a/testdata/flyway_data.properties b/testdata/flyway_data.properties new file mode 100644 index 000000000..4de6065ba --- /dev/null +++ b/testdata/flyway_data.properties @@ -0,0 +1,4 @@ +flyway.placeholderPrefix = $flyway{ +flyway.initOnMigrate = true +flyway.outOfOrder = true +flyway.sqlMigrationPrefix = V diff --git a/testdata/flyway_schema.properties b/testdata/flyway_schema.properties new file mode 100644 index 000000000..c2d46cf9a --- /dev/null +++ b/testdata/flyway_schema.properties @@ -0,0 +1,4 @@ +flyway.placeholderPrefix = $flyway{ +flyway.initOnMigrate = false +flyway.outOfOrder = false +flyway.sqlMigrationPrefix = V \ No newline at end of file From 8a9dde4465bbf52ffbb4f3decffc1f9542feb8bc Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 15:06:47 +0200 Subject: [PATCH 071/119] MOTECH-2895: 68th try --- pom.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pom.xml b/pom.xml index ca8a52924..79ba1a96a 100644 --- a/pom.xml +++ b/pom.xml @@ -1089,6 +1089,8 @@ motech-settings.properties datanucleus_data.properties datanucleus_schema.properties + flyway_data.properties + flyway_schema.properties From 2bf4ce6bcb87265cbea41e446da1a9279f22098b Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 15:20:35 +0200 Subject: [PATCH 072/119] MOTECH-2895: 69th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 6dba81dd8..870b67e05 100644 --- a/run_build.sh +++ b/run_build.sh @@ -4,7 +4,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then export MOTECH_CONFIG_DIR=~/.motech/config/ if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U + mvn clean install -PIT -U -X elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties `pwd` mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U From e3ee689c13ea98f5498ed90cea05994c2c489544 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 15:43:46 +0200 Subject: [PATCH 073/119] MOTECH-2895: 70th try --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 79ba1a96a..7bcbc0340 100644 --- a/pom.xml +++ b/pom.xml @@ -1075,7 +1075,7 @@ copy-test-config-files - package + pre-integration-test copy-resources From 16a5815a1d7144b1aa1d0e2118b2da43805abfd7 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Thu, 8 Sep 2016 16:17:32 +0200 Subject: [PATCH 074/119] MOTECH-2895: 71th try --- pom.xml | 1 + run_build.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7bcbc0340..f519fc192 100644 --- a/pom.xml +++ b/pom.xml @@ -1091,6 +1091,7 @@ datanucleus_schema.properties flyway_data.properties flyway_schema.properties + config-locations.properties diff --git a/run_build.sh b/run_build.sh index 870b67e05..6dba81dd8 100644 --- a/run_build.sh +++ b/run_build.sh @@ -4,7 +4,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then export MOTECH_CONFIG_DIR=~/.motech/config/ if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U -X + mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then cp ./testdata/psql/bootstrap.properties `pwd` mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U From 2af38a8b1f40835d381c0b99be879800cbbaf625 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 08:26:38 +0200 Subject: [PATCH 075/119] MOTECH-2895: 72th try --- pom.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pom.xml b/pom.xml index f519fc192..c6b71d1dd 100644 --- a/pom.xml +++ b/pom.xml @@ -1101,6 +1101,23 @@ + + copy-config-locations-file + pre-integration-test + + copy-resources + + + ${motech.dir} + true + + + ${modules.root.dir}/testdata + config-locations.properties + + + + From 8589d2d09dddeb0fe7a2d23d41d17cc495a7d88f Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 08:35:26 +0200 Subject: [PATCH 076/119] MOTECH-2895: 73th try --- pom.xml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index c6b71d1dd..0b0033a28 100644 --- a/pom.xml +++ b/pom.xml @@ -1085,14 +1085,7 @@ ${modules.root.dir}/testdata - - motech-settings.properties - datanucleus_data.properties - datanucleus_schema.properties - flyway_data.properties - flyway_schema.properties - config-locations.properties - + motech-settings.properties ${modules.root.dir}/testdata/${motech.sql.dbtype} From f195958342e99bc31d283cf1168dbc3d45fd3368 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 08:37:10 +0200 Subject: [PATCH 077/119] MOTECH-2895: 74th try --- config_services.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config_services.sh b/config_services.sh index 362376b3a..25ea5d2f4 100644 --- a/config_services.sh +++ b/config_services.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash -sudo apt-get update -qq +#sudo apt-get update -qq #Installation and configuration of ActiveMQ -sudo apt-get install -y activemq -qq -sudo ln -s /etc/activemq/instances-available/main /etc/activemq/instances-enabled/main -sudo sed -e 's/ Date: Fri, 9 Sep 2016 08:43:22 +0200 Subject: [PATCH 078/119] MOTECH-2895: 75th try --- pom.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0b0033a28..c6b71d1dd 100644 --- a/pom.xml +++ b/pom.xml @@ -1085,7 +1085,14 @@ ${modules.root.dir}/testdata - motech-settings.properties + + motech-settings.properties + datanucleus_data.properties + datanucleus_schema.properties + flyway_data.properties + flyway_schema.properties + config-locations.properties + ${modules.root.dir}/testdata/${motech.sql.dbtype} From eb2177e85e4baae164b6360cbe56a35b7ae19a83 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 08:56:38 +0200 Subject: [PATCH 079/119] MOTECH-2895: 76th try --- config_services.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config_services.sh b/config_services.sh index 25ea5d2f4..362376b3a 100644 --- a/config_services.sh +++ b/config_services.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash -#sudo apt-get update -qq +sudo apt-get update -qq #Installation and configuration of ActiveMQ -#sudo apt-get install -y activemq -qq -#sudo ln -s /etc/activemq/instances-available/main /etc/activemq/instances-enabled/main -#sudo sed -e 's/ Date: Fri, 9 Sep 2016 09:00:00 +0200 Subject: [PATCH 080/119] MOTECH-2895: 77th try --- run_build.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 6dba81dd8..8abe11d64 100644 --- a/run_build.sh +++ b/run_build.sh @@ -6,7 +6,6 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then - cp ./testdata/psql/bootstrap.properties `pwd` mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi fi From 1e4a9f8f7ae19c24c6600a6c4cf9f9b4277826ad Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 09:30:54 +0200 Subject: [PATCH 081/119] MOTECH-2895: 78th try --- .../scheduletracking/it/AllEnrollmentsBundleIT.java | 8 ++++---- .../scheduletracking/it/EnrollmentsSearchBundleIT.java | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java index a89b76778..9280e46e7 100644 --- a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java +++ b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java @@ -1,6 +1,7 @@ package org.motechproject.scheduletracking.it; import ch.lambdaj.Lambda; +import org.hamcrest.collection.IsIterableContainingInAnyOrder; import org.joda.time.DateTime; import org.joda.time.LocalDate; import org.junit.After; @@ -38,9 +39,7 @@ import static ch.lambdaj.Lambda.on; import static java.util.Arrays.asList; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNull; +import static org.junit.Assert.*; import static org.motechproject.commons.date.util.DateUtil.newDateTime; import static org.motechproject.commons.date.util.DateUtil.now; import static org.motechproject.commons.date.util.DateUtil.today; @@ -235,7 +234,8 @@ public void shouldReturnEnrollmentsThatWereCompletedDuringTheGivenTimeRange() { DateTime end = newDateTime(today, new Time(0, 0)); List filteredEnrollments = allEnrollments.completedDuring(start, end); assertNotNull(filteredEnrollments.get(0).getSchedule()); - assertEquals(asList(new String[] { "entity_2", "entity_3" }), Lambda.extract(filteredEnrollments, on(Enrollment.class).getExternalId())); + assertThat(asList(new String[] { "entity_2", "entity_3" }), IsIterableContainingInAnyOrder.containsInAnyOrder( + Lambda.extract(filteredEnrollments, on(Enrollment.class).getExternalId()))); } private Enrollment createEnrollment(final String externalId, final String scheduleName, final String currentMilestoneName, final DateTime referenceDateTime, final DateTime enrollmentDateTime, final Time preferredAlertTime, final EnrollmentStatus enrollmentStatus, final Map metadata) { diff --git a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java index bc0379feb..4a1ada444 100644 --- a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java +++ b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java @@ -1,7 +1,9 @@ package org.motechproject.scheduletracking.it; +import org.hamcrest.collection.IsIterableContainingInAnyOrder; import org.joda.time.DateTime; import org.junit.After; +import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -40,6 +42,7 @@ import static ch.lambdaj.Lambda.on; import static java.util.Arrays.asList; import static junit.framework.Assert.assertEquals; +import static junit.framework.Assert.assertTrue; import static org.motechproject.commons.date.util.DateUtil.newDate; import static org.motechproject.commons.date.util.DateUtil.newDateTime; import static org.motechproject.commons.date.util.DateUtil.now; @@ -172,7 +175,8 @@ public void shouldFindEnrollmentsByMetadataProperties() { metadata.put("fuu", "qux"); createEnrollment("entity5", "Delivery", "milestone1", newDateTime(2010, 1, 1, 0, 0, 0), newDateTime(2010, 1, 1, 0, 0, 0), new Time(0, 0), EnrollmentStatus.ACTIVE, metadata); - assertEquals(asList(new String[]{ "entity1", "entity3" }), extract(allEnrollments.findByMetadataProperty("foo", "bar"), on(Enrollment.class).getExternalId())); + Assert.assertThat(asList(new String[]{ "entity1", "entity3" }), IsIterableContainingInAnyOrder.containsInAnyOrder( + extract(allEnrollments.findByMetadataProperty("foo", "bar"), on(Enrollment.class).getExternalId()))); assertEquals(asList(new String[] { "entity4" }), extract(allEnrollments.findByMetadataProperty("fuu", "boz"), on(Enrollment.class).getExternalId())); } From f4ec4ff2ba220046811fdee95cd49229b3f83a8a Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 09:57:27 +0200 Subject: [PATCH 082/119] MOTECH-2895: 79th try --- .../scheduletracking/it/AllEnrollmentsBundleIT.java | 4 ++-- .../scheduletracking/it/EnrollmentsSearchBundleIT.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java index 9280e46e7..bdcb3d5d4 100644 --- a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java +++ b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java @@ -233,9 +233,9 @@ public void shouldReturnEnrollmentsThatWereCompletedDuringTheGivenTimeRange() { DateTime start = newDateTime(today.minusWeeks(1), new Time(0, 0)); DateTime end = newDateTime(today, new Time(0, 0)); List filteredEnrollments = allEnrollments.completedDuring(start, end); + List extractedEnrollments = Lambda.extract(filteredEnrollments, on(Enrollment.class).getExternalId()); assertNotNull(filteredEnrollments.get(0).getSchedule()); - assertThat(asList(new String[] { "entity_2", "entity_3" }), IsIterableContainingInAnyOrder.containsInAnyOrder( - Lambda.extract(filteredEnrollments, on(Enrollment.class).getExternalId()))); + assertThat(asList(new String[] { "entity_2", "entity_3" }), IsIterableContainingInAnyOrder.containsInAnyOrder(extractedEnrollments)); } private Enrollment createEnrollment(final String externalId, final String scheduleName, final String currentMilestoneName, final DateTime referenceDateTime, final DateTime enrollmentDateTime, final Time preferredAlertTime, final EnrollmentStatus enrollmentStatus, final Map metadata) { diff --git a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java index 4a1ada444..736f6a301 100644 --- a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java +++ b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java @@ -175,8 +175,8 @@ public void shouldFindEnrollmentsByMetadataProperties() { metadata.put("fuu", "qux"); createEnrollment("entity5", "Delivery", "milestone1", newDateTime(2010, 1, 1, 0, 0, 0), newDateTime(2010, 1, 1, 0, 0, 0), new Time(0, 0), EnrollmentStatus.ACTIVE, metadata); - Assert.assertThat(asList(new String[]{ "entity1", "entity3" }), IsIterableContainingInAnyOrder.containsInAnyOrder( - extract(allEnrollments.findByMetadataProperty("foo", "bar"), on(Enrollment.class).getExternalId()))); + List extractedEnrollments = extract(allEnrollments.findByMetadataProperty("foo", "bar"), on(Enrollment.class).getExternalId()); + Assert.assertThat(asList(new String[]{ "entity1", "entity3" }), IsIterableContainingInAnyOrder.containsInAnyOrder(extractedEnrollments)); assertEquals(asList(new String[] { "entity4" }), extract(allEnrollments.findByMetadataProperty("fuu", "boz"), on(Enrollment.class).getExternalId())); } From 50df9718981280c46700258aca4259c20c7b2c4a Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 09:59:14 +0200 Subject: [PATCH 083/119] MOTECH-2895: 80th try --- pom.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/pom.xml b/pom.xml index c6b71d1dd..d4a97300d 100644 --- a/pom.xml +++ b/pom.xml @@ -1091,7 +1091,6 @@ datanucleus_schema.properties flyway_data.properties flyway_schema.properties - config-locations.properties From 7001ba20baf765d23bd423b44e69adc67ba7d808 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 10:00:52 +0200 Subject: [PATCH 084/119] MOTECH-2895: 81th try --- pom.xml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pom.xml b/pom.xml index d4a97300d..e75151c14 100644 --- a/pom.xml +++ b/pom.xml @@ -1087,10 +1087,6 @@ ${modules.root.dir}/testdata motech-settings.properties - datanucleus_data.properties - datanucleus_schema.properties - flyway_data.properties - flyway_schema.properties From 834564d503c659969cf9b51f96ded3fc77d040d6 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 10:09:53 +0200 Subject: [PATCH 085/119] MOTECH-2895: 82th try --- pom.xml | 4 ++++ .../scheduletracking/it/EnrollmentsSearchBundleIT.java | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e75151c14..d4a97300d 100644 --- a/pom.xml +++ b/pom.xml @@ -1087,6 +1087,10 @@ ${modules.root.dir}/testdata motech-settings.properties + datanucleus_data.properties + datanucleus_schema.properties + flyway_data.properties + flyway_schema.properties diff --git a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java index 736f6a301..39d4577ee 100644 --- a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java +++ b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java @@ -42,7 +42,6 @@ import static ch.lambdaj.Lambda.on; import static java.util.Arrays.asList; import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertTrue; import static org.motechproject.commons.date.util.DateUtil.newDate; import static org.motechproject.commons.date.util.DateUtil.newDateTime; import static org.motechproject.commons.date.util.DateUtil.now; From d43c9c2e0e337391e1bf04501262788e92638440 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 10:23:29 +0200 Subject: [PATCH 086/119] MOTECH-2895: 83th try --- .../scheduletracking/it/EnrollmentsSearchBundleIT.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java index 39d4577ee..b746e3927 100644 --- a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java +++ b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java @@ -1,6 +1,7 @@ package org.motechproject.scheduletracking.it; import org.hamcrest.collection.IsIterableContainingInAnyOrder; +import org.hamcrest.collection.IsIterableContainingInOrder; import org.joda.time.DateTime; import org.junit.After; import org.junit.Assert; @@ -42,6 +43,7 @@ import static ch.lambdaj.Lambda.on; import static java.util.Arrays.asList; import static junit.framework.Assert.assertEquals; +import static junit.framework.Assert.assertNull; import static org.motechproject.commons.date.util.DateUtil.newDate; import static org.motechproject.commons.date.util.DateUtil.newDateTime; import static org.motechproject.commons.date.util.DateUtil.now; @@ -175,7 +177,8 @@ public void shouldFindEnrollmentsByMetadataProperties() { createEnrollment("entity5", "Delivery", "milestone1", newDateTime(2010, 1, 1, 0, 0, 0), newDateTime(2010, 1, 1, 0, 0, 0), new Time(0, 0), EnrollmentStatus.ACTIVE, metadata); List extractedEnrollments = extract(allEnrollments.findByMetadataProperty("foo", "bar"), on(Enrollment.class).getExternalId()); - Assert.assertThat(asList(new String[]{ "entity1", "entity3" }), IsIterableContainingInAnyOrder.containsInAnyOrder(extractedEnrollments)); + assertNull(extractedEnrollments); + Assert.assertThat(asList(new String[]{ "entity1", "entity3" }), IsIterableContainingInOrder.); assertEquals(asList(new String[] { "entity4" }), extract(allEnrollments.findByMetadataProperty("fuu", "boz"), on(Enrollment.class).getExternalId())); } From 48411afbace2ec68fda716f19ad58cc9a5038ef1 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 10:35:19 +0200 Subject: [PATCH 087/119] MOTECH-2895: 84th try --- .../scheduletracking/it/EnrollmentsSearchBundleIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java index b746e3927..b246b62e7 100644 --- a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java +++ b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java @@ -178,7 +178,7 @@ public void shouldFindEnrollmentsByMetadataProperties() { List extractedEnrollments = extract(allEnrollments.findByMetadataProperty("foo", "bar"), on(Enrollment.class).getExternalId()); assertNull(extractedEnrollments); - Assert.assertThat(asList(new String[]{ "entity1", "entity3" }), IsIterableContainingInOrder.); + Assert.assertThat(asList(new String[]{ "entity1", "entity3" }), IsIterableContainingInAnyOrder.containsInAnyOrder(extractedEnrollments)); assertEquals(asList(new String[] { "entity4" }), extract(allEnrollments.findByMetadataProperty("fuu", "boz"), on(Enrollment.class).getExternalId())); } From b91af57ec993890df1e43e9ba5370b9328ffcac5 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 11:05:35 +0200 Subject: [PATCH 088/119] MOTECH-2895: 85th try --- pom.xml | 21 ------------------- .../it/AllEnrollmentsBundleIT.java | 6 ++++-- .../it/EnrollmentsSearchBundleIT.java | 5 +---- 3 files changed, 5 insertions(+), 27 deletions(-) diff --git a/pom.xml b/pom.xml index d4a97300d..92b2f95d4 100644 --- a/pom.xml +++ b/pom.xml @@ -1087,10 +1087,6 @@ ${modules.root.dir}/testdata motech-settings.properties - datanucleus_data.properties - datanucleus_schema.properties - flyway_data.properties - flyway_schema.properties @@ -1100,23 +1096,6 @@ - - copy-config-locations-file - pre-integration-test - - copy-resources - - - ${motech.dir} - true - - - ${modules.root.dir}/testdata - config-locations.properties - - - - diff --git a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java index bdcb3d5d4..eb2a42c4f 100644 --- a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java +++ b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java @@ -39,7 +39,9 @@ import static ch.lambdaj.Lambda.on; import static java.util.Arrays.asList; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; import static org.motechproject.commons.date.util.DateUtil.newDateTime; import static org.motechproject.commons.date.util.DateUtil.now; import static org.motechproject.commons.date.util.DateUtil.today; @@ -235,7 +237,7 @@ public void shouldReturnEnrollmentsThatWereCompletedDuringTheGivenTimeRange() { List filteredEnrollments = allEnrollments.completedDuring(start, end); List extractedEnrollments = Lambda.extract(filteredEnrollments, on(Enrollment.class).getExternalId()); assertNotNull(filteredEnrollments.get(0).getSchedule()); - assertThat(asList(new String[] { "entity_2", "entity_3" }), IsIterableContainingInAnyOrder.containsInAnyOrder(extractedEnrollments)); + assertEquals(asList(new String[] { "entity_2", "entity_3" }), IsIterableContainingInAnyOrder.containsInAnyOrder(extractedEnrollments)); } private Enrollment createEnrollment(final String externalId, final String scheduleName, final String currentMilestoneName, final DateTime referenceDateTime, final DateTime enrollmentDateTime, final Time preferredAlertTime, final EnrollmentStatus enrollmentStatus, final Map metadata) { diff --git a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java index b246b62e7..fa5e2790c 100644 --- a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java +++ b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java @@ -44,9 +44,7 @@ import static java.util.Arrays.asList; import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertNull; -import static org.motechproject.commons.date.util.DateUtil.newDate; -import static org.motechproject.commons.date.util.DateUtil.newDateTime; -import static org.motechproject.commons.date.util.DateUtil.now; +import static org.motechproject.commons.date.util.DateUtil.*; import static org.motechproject.scheduletracking.utility.DateTimeUtil.daysAgo; import static org.motechproject.scheduletracking.utility.DateTimeUtil.weeksAgo; import static org.motechproject.scheduletracking.utility.DateTimeUtil.yearsAgo; @@ -177,7 +175,6 @@ public void shouldFindEnrollmentsByMetadataProperties() { createEnrollment("entity5", "Delivery", "milestone1", newDateTime(2010, 1, 1, 0, 0, 0), newDateTime(2010, 1, 1, 0, 0, 0), new Time(0, 0), EnrollmentStatus.ACTIVE, metadata); List extractedEnrollments = extract(allEnrollments.findByMetadataProperty("foo", "bar"), on(Enrollment.class).getExternalId()); - assertNull(extractedEnrollments); Assert.assertThat(asList(new String[]{ "entity1", "entity3" }), IsIterableContainingInAnyOrder.containsInAnyOrder(extractedEnrollments)); assertEquals(asList(new String[] { "entity4" }), extract(allEnrollments.findByMetadataProperty("fuu", "boz"), on(Enrollment.class).getExternalId())); } From 5c3cfe4b0fa89bfa94cd827c5a8241a113114e68 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 11:13:14 +0200 Subject: [PATCH 089/119] MOTECH-2895: 86th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 8abe11d64..6afba2a96 100644 --- a/run_build.sh +++ b/run_build.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then - export MOTECH_CONFIG_DIR=~/.motech/config/ + export MOTECH_CONFIG_DIR=~/.motech/config if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn clean install -PIT -U From fb42df3e485f1e4795ccbb9cf68a858360d45d24 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 11:18:18 +0200 Subject: [PATCH 090/119] MOTECH-2895: 87th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 6afba2a96..9b7256109 100644 --- a/run_build.sh +++ b/run_build.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then - export MOTECH_CONFIG_DIR=~/.motech/config + export MOTECH_CONFIG_DIR=~/.motech if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn clean install -PIT -U From f89ee1e4b908414d232ef3adc4f090cf8711bfec Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 11:22:02 +0200 Subject: [PATCH 091/119] MOTECH-2895: 87th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 9b7256109..8abe11d64 100644 --- a/run_build.sh +++ b/run_build.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then - export MOTECH_CONFIG_DIR=~/.motech + export MOTECH_CONFIG_DIR=~/.motech/config/ if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn clean install -PIT -U From 36097d380f9f251b161eb5cf37bca6a17cb55b7d Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 11:26:07 +0200 Subject: [PATCH 092/119] MOTECH-2895: 88th try --- pom.xml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pom.xml b/pom.xml index 92b2f95d4..d4a97300d 100644 --- a/pom.xml +++ b/pom.xml @@ -1087,6 +1087,10 @@ ${modules.root.dir}/testdata motech-settings.properties + datanucleus_data.properties + datanucleus_schema.properties + flyway_data.properties + flyway_schema.properties @@ -1096,6 +1100,23 @@ + + copy-config-locations-file + pre-integration-test + + copy-resources + + + ${motech.dir} + true + + + ${modules.root.dir}/testdata + config-locations.properties + + + + From 08f6d1883c2dd2d6adc84d63a5f9876b55457a1b Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 11:28:19 +0200 Subject: [PATCH 093/119] MOTECH-2895: 89th try --- .../scheduletracking/it/AllEnrollmentsBundleIT.java | 2 +- .../scheduletracking/it/EnrollmentsSearchBundleIT.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java index eb2a42c4f..1068db88b 100644 --- a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java +++ b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java @@ -237,7 +237,7 @@ public void shouldReturnEnrollmentsThatWereCompletedDuringTheGivenTimeRange() { List filteredEnrollments = allEnrollments.completedDuring(start, end); List extractedEnrollments = Lambda.extract(filteredEnrollments, on(Enrollment.class).getExternalId()); assertNotNull(filteredEnrollments.get(0).getSchedule()); - assertEquals(asList(new String[] { "entity_2", "entity_3" }), IsIterableContainingInAnyOrder.containsInAnyOrder(extractedEnrollments)); + assertEquals(extractedEnrollments, IsIterableContainingInAnyOrder.containsInAnyOrder("entity_2", "entity_3")); } private Enrollment createEnrollment(final String externalId, final String scheduleName, final String currentMilestoneName, final DateTime referenceDateTime, final DateTime enrollmentDateTime, final Time preferredAlertTime, final EnrollmentStatus enrollmentStatus, final Map metadata) { diff --git a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java index fa5e2790c..9ec74c9cf 100644 --- a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java +++ b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java @@ -175,7 +175,7 @@ public void shouldFindEnrollmentsByMetadataProperties() { createEnrollment("entity5", "Delivery", "milestone1", newDateTime(2010, 1, 1, 0, 0, 0), newDateTime(2010, 1, 1, 0, 0, 0), new Time(0, 0), EnrollmentStatus.ACTIVE, metadata); List extractedEnrollments = extract(allEnrollments.findByMetadataProperty("foo", "bar"), on(Enrollment.class).getExternalId()); - Assert.assertThat(asList(new String[]{ "entity1", "entity3" }), IsIterableContainingInAnyOrder.containsInAnyOrder(extractedEnrollments)); + Assert.assertThat(extractedEnrollments, IsIterableContainingInAnyOrder.containsInAnyOrder("entity1", "entity3")); assertEquals(asList(new String[] { "entity4" }), extract(allEnrollments.findByMetadataProperty("fuu", "boz"), on(Enrollment.class).getExternalId())); } From a140bc4b795b7f7f53b05dbe989e51e6fa808543 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 11:32:37 +0200 Subject: [PATCH 094/119] MOTECH-2895: 90th try --- pom.xml | 21 --------------------- run_build.sh | 2 +- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/pom.xml b/pom.xml index d4a97300d..92b2f95d4 100644 --- a/pom.xml +++ b/pom.xml @@ -1087,10 +1087,6 @@ ${modules.root.dir}/testdata motech-settings.properties - datanucleus_data.properties - datanucleus_schema.properties - flyway_data.properties - flyway_schema.properties @@ -1100,23 +1096,6 @@ - - copy-config-locations-file - pre-integration-test - - copy-resources - - - ${motech.dir} - true - - - ${modules.root.dir}/testdata - config-locations.properties - - - - diff --git a/run_build.sh b/run_build.sh index 8abe11d64..139eb636b 100644 --- a/run_build.sh +++ b/run_build.sh @@ -4,7 +4,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then export MOTECH_CONFIG_DIR=~/.motech/config/ if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U + mvn clean install -PIT -U -X elif [ "$DB" = "psql" ]; then mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi From c6738d711048185016ab26a44d122bc7156906d8 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 11:50:25 +0200 Subject: [PATCH 095/119] MOTECH-2895: 91th try --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 92b2f95d4..a2252ca97 100644 --- a/pom.xml +++ b/pom.xml @@ -1108,7 +1108,7 @@ clean - post-integration-test + install true From e82415c24599232825289cb62f10030284826b7b Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 12:04:33 +0200 Subject: [PATCH 096/119] MOTECH-2895: 92th try --- pom.xml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index a2252ca97..682038673 100644 --- a/pom.xml +++ b/pom.xml @@ -1108,7 +1108,7 @@ clean - install + post-integration-test true @@ -1118,10 +1118,6 @@ bootstrap.properties motech-settings.properties - datanucleus_data.properties - datanucleus_schema.properties - flyway_data.properties - flyway_schema.properties From 4de8a148d15bc38018b78aecf9e94833be862d51 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 13:15:10 +0200 Subject: [PATCH 097/119] MOTECH-2895: 93th try --- pom.xml | 4 ++++ .../it/AllEnrollmentsBundleIT.java | 6 ++++-- .../it/EnrollmentsSearchBundleIT.java | 17 +++++++---------- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index 682038673..92b2f95d4 100644 --- a/pom.xml +++ b/pom.xml @@ -1118,6 +1118,10 @@ bootstrap.properties motech-settings.properties + datanucleus_data.properties + datanucleus_schema.properties + flyway_data.properties + flyway_schema.properties diff --git a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java index 1068db88b..e4340013c 100644 --- a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java +++ b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/AllEnrollmentsBundleIT.java @@ -1,7 +1,6 @@ package org.motechproject.scheduletracking.it; import ch.lambdaj.Lambda; -import org.hamcrest.collection.IsIterableContainingInAnyOrder; import org.joda.time.DateTime; import org.joda.time.LocalDate; import org.junit.After; @@ -34,6 +33,7 @@ import org.springframework.web.context.WebApplicationContext; import javax.inject.Inject; +import java.util.Collections; import java.util.List; import java.util.Map; @@ -236,8 +236,10 @@ public void shouldReturnEnrollmentsThatWereCompletedDuringTheGivenTimeRange() { DateTime end = newDateTime(today, new Time(0, 0)); List filteredEnrollments = allEnrollments.completedDuring(start, end); List extractedEnrollments = Lambda.extract(filteredEnrollments, on(Enrollment.class).getExternalId()); + Collections.sort(extractedEnrollments); + assertNotNull(filteredEnrollments.get(0).getSchedule()); - assertEquals(extractedEnrollments, IsIterableContainingInAnyOrder.containsInAnyOrder("entity_2", "entity_3")); + assertEquals(asList(new String[] { "entity_2", "entity_3" }), extractedEnrollments); } private Enrollment createEnrollment(final String externalId, final String scheduleName, final String currentMilestoneName, final DateTime referenceDateTime, final DateTime enrollmentDateTime, final Time preferredAlertTime, final EnrollmentStatus enrollmentStatus, final Map metadata) { diff --git a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java index 9ec74c9cf..f86de5974 100644 --- a/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java +++ b/schedule-tracking/src/test/java/org/motechproject/scheduletracking/it/EnrollmentsSearchBundleIT.java @@ -1,10 +1,7 @@ package org.motechproject.scheduletracking.it; -import org.hamcrest.collection.IsIterableContainingInAnyOrder; -import org.hamcrest.collection.IsIterableContainingInOrder; import org.joda.time.DateTime; import org.junit.After; -import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -34,17 +31,15 @@ import org.springframework.web.context.WebApplicationContext; import javax.inject.Inject; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import java.util.*; import static ch.lambdaj.Lambda.extract; import static ch.lambdaj.Lambda.on; import static java.util.Arrays.asList; import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertNull; -import static org.motechproject.commons.date.util.DateUtil.*; +import static org.motechproject.commons.date.util.DateUtil.newDate; +import static org.motechproject.commons.date.util.DateUtil.newDateTime; +import static org.motechproject.commons.date.util.DateUtil.now; import static org.motechproject.scheduletracking.utility.DateTimeUtil.daysAgo; import static org.motechproject.scheduletracking.utility.DateTimeUtil.weeksAgo; import static org.motechproject.scheduletracking.utility.DateTimeUtil.yearsAgo; @@ -175,7 +170,9 @@ public void shouldFindEnrollmentsByMetadataProperties() { createEnrollment("entity5", "Delivery", "milestone1", newDateTime(2010, 1, 1, 0, 0, 0), newDateTime(2010, 1, 1, 0, 0, 0), new Time(0, 0), EnrollmentStatus.ACTIVE, metadata); List extractedEnrollments = extract(allEnrollments.findByMetadataProperty("foo", "bar"), on(Enrollment.class).getExternalId()); - Assert.assertThat(extractedEnrollments, IsIterableContainingInAnyOrder.containsInAnyOrder("entity1", "entity3")); + Collections.sort(extractedEnrollments); + + assertEquals(asList(new String[]{ "entity1", "entity3" }), extractedEnrollments); assertEquals(asList(new String[] { "entity4" }), extract(allEnrollments.findByMetadataProperty("fuu", "boz"), on(Enrollment.class).getExternalId())); } From f55c45eb49c85066655b0d5839175ab13dd9306d Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 13:22:03 +0200 Subject: [PATCH 098/119] MOTECH-2895: 94th try --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 92b2f95d4..200ea1446 100644 --- a/pom.xml +++ b/pom.xml @@ -1082,6 +1082,7 @@ ${motech.dir}/config true + ls -l ~/.motech/config/ ${modules.root.dir}/testdata From c99c4a7c2e94ff8a42cde004284121bfd5a6d39d Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 13:49:48 +0200 Subject: [PATCH 099/119] MOTECH-2895: 95th try --- pom.xml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 200ea1446..d4a97300d 100644 --- a/pom.xml +++ b/pom.xml @@ -1082,12 +1082,15 @@ ${motech.dir}/config true - ls -l ~/.motech/config/ ${modules.root.dir}/testdata motech-settings.properties + datanucleus_data.properties + datanucleus_schema.properties + flyway_data.properties + flyway_schema.properties @@ -1097,6 +1100,23 @@ + + copy-config-locations-file + pre-integration-test + + copy-resources + + + ${motech.dir} + true + + + ${modules.root.dir}/testdata + config-locations.properties + + + + From 515a4c48495ec5a82b4af6dcb898010196fd87c3 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 14:31:10 +0200 Subject: [PATCH 100/119] MOTECH-2895: 96th try --- pom.xml | 25 +------------------------ run_build.sh | 2 +- 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/pom.xml b/pom.xml index d4a97300d..6f4df2102 100644 --- a/pom.xml +++ b/pom.xml @@ -1085,13 +1085,7 @@ ${modules.root.dir}/testdata - - motech-settings.properties - datanucleus_data.properties - datanucleus_schema.properties - flyway_data.properties - flyway_schema.properties - + motech-settings.properties ${modules.root.dir}/testdata/${motech.sql.dbtype} @@ -1100,23 +1094,6 @@ - - copy-config-locations-file - pre-integration-test - - copy-resources - - - ${motech.dir} - true - - - ${modules.root.dir}/testdata - config-locations.properties - - - - diff --git a/run_build.sh b/run_build.sh index 139eb636b..0779bb595 100644 --- a/run_build.sh +++ b/run_build.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then - export MOTECH_CONFIG_DIR=~/.motech/config/ + #export MOTECH_CONFIG_DIR=~/.motech/config/ if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn clean install -PIT -U -X From 134dfee6ce2b9a17f05c049435f62baf6c37ab52 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 14:38:56 +0200 Subject: [PATCH 101/119] MOTECH-2895: 97th try --- pom.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pom.xml b/pom.xml index 6f4df2102..1002e73c6 100644 --- a/pom.xml +++ b/pom.xml @@ -1093,6 +1093,16 @@ + + ${motech.dir} + true + + + ${modules.root.dir}/testdata + config-locations.properties + + + From 97e528b381d0d7629bcbfd87339a60a8522c792b Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 14:42:35 +0200 Subject: [PATCH 102/119] MOTECH-2895: 98th try --- pom.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pom.xml b/pom.xml index 1002e73c6..3a2c6b7df 100644 --- a/pom.xml +++ b/pom.xml @@ -1093,6 +1093,13 @@ + + + copy-locations-file + pre-integration-test + + copy-resources + ${motech.dir} true From 3bd4a07aa4d78cb817921f7181deb0ff756303d2 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 14:50:54 +0200 Subject: [PATCH 103/119] MOTECH-2895: 99th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 0779bb595..3178d9484 100644 --- a/run_build.sh +++ b/run_build.sh @@ -4,7 +4,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then #export MOTECH_CONFIG_DIR=~/.motech/config/ if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U -X + mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi From d6b59dc2057d57e5a27048b6723521771d0f09d7 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 15:10:12 +0200 Subject: [PATCH 104/119] MOTECH-2895: 100th try --- pom.xml | 17 ----------------- run_build.sh | 4 ++-- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/pom.xml b/pom.xml index 3a2c6b7df..6f4df2102 100644 --- a/pom.xml +++ b/pom.xml @@ -1094,23 +1094,6 @@ - - copy-locations-file - pre-integration-test - - copy-resources - - - ${motech.dir} - true - - - ${modules.root.dir}/testdata - config-locations.properties - - - - diff --git a/run_build.sh b/run_build.sh index 3178d9484..79d6b640a 100644 --- a/run_build.sh +++ b/run_build.sh @@ -4,8 +4,8 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then #export MOTECH_CONFIG_DIR=~/.motech/config/ if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U + mvn clean install -Dmaven.repo.local=`pwd` -PIT -U elif [ "$DB" = "psql" ]; then - mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U + mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ -Dmaven.repo.local=`pwd` clean install -PIT -U fi fi From 52c7f4e3bec428e7e603420c917185662eeb8462 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 15:26:59 +0200 Subject: [PATCH 105/119] MOTECH-2895: 101th try --- testdata/datanucleus_data.properties | 20 -------------------- testdata/datanucleus_schema.properties | 18 ------------------ testdata/flyway_data.properties | 4 ---- testdata/flyway_schema.properties | 4 ---- 4 files changed, 46 deletions(-) delete mode 100644 testdata/datanucleus_data.properties delete mode 100644 testdata/datanucleus_schema.properties delete mode 100644 testdata/flyway_data.properties delete mode 100644 testdata/flyway_schema.properties diff --git a/testdata/datanucleus_data.properties b/testdata/datanucleus_data.properties deleted file mode 100644 index 3afdc9f48..000000000 --- a/testdata/datanucleus_data.properties +++ /dev/null @@ -1,20 +0,0 @@ -javax.jdo.PersistenceManagerFactoryClass=org.datanucleus.api.jdo.JDOPersistenceManagerFactory - -javax.jdo.option.ConnectionDriverName=${sql.driver} -javax.jdo.option.ConnectionURL=${sql.url}motechdata -javax.jdo.option.ConnectionUserName=${sql.user} -javax.jdo.option.ConnectionPassword=${sql.password} -javax.jdo.option.NontransactionalWrite=false -javax.jdo.option.Optimistic=true - -datanucleus.schema.autoCreateAll=true -datanucleus.schema.validateTables=false -datanucleus.schema.validateConstraints=false -datanucleus.validation.mode=auto -datanucleus.identifier.case=MixedCase -datanucleus.plugin.pluginRegistryClassName=org.datanucleus.plugin.OSGiPluginRegistry -datanucleus.DetachAllOnCommit=true -datanucleus.classLoaderResolverName=clr.mds -datanucleus.query.sql.allowAll=true -datanucleus.deletionPolicy=DataNucleus -datanucleus.flush.mode=AUTO diff --git a/testdata/datanucleus_schema.properties b/testdata/datanucleus_schema.properties deleted file mode 100644 index 18e1f83e3..000000000 --- a/testdata/datanucleus_schema.properties +++ /dev/null @@ -1,18 +0,0 @@ -javax.jdo.PersistenceManagerFactoryClass=org.datanucleus.api.jdo.JDOPersistenceManagerFactory - -javax.jdo.option.ConnectionDriverName=${sql.driver} -javax.jdo.option.ConnectionURL=${sql.url}motechschema -javax.jdo.option.ConnectionUserName=${sql.user} -javax.jdo.option.ConnectionPassword=${sql.password} -javax.jdo.option.NontransactionalWrite=false - -datanucleus.schema.autoCreateAll=true -datanucleus.schema.validateTables=false -datanucleus.schema.validateConstraints=false -datanucleus.validation.mode=auto -datanucleus.identifier.case=MixedCase -datanucleus.plugin.pluginRegistryClassName=org.datanucleus.plugin.OSGiPluginRegistry -datanucleus.DetachAllOnCommit=true -datanucleus.classLoaderResolverName=clr.mds -datanucleus.query.sql.allowAll=true -datanucleus.deletionPolicy=DataNucleus diff --git a/testdata/flyway_data.properties b/testdata/flyway_data.properties deleted file mode 100644 index 4de6065ba..000000000 --- a/testdata/flyway_data.properties +++ /dev/null @@ -1,4 +0,0 @@ -flyway.placeholderPrefix = $flyway{ -flyway.initOnMigrate = true -flyway.outOfOrder = true -flyway.sqlMigrationPrefix = V diff --git a/testdata/flyway_schema.properties b/testdata/flyway_schema.properties deleted file mode 100644 index c2d46cf9a..000000000 --- a/testdata/flyway_schema.properties +++ /dev/null @@ -1,4 +0,0 @@ -flyway.placeholderPrefix = $flyway{ -flyway.initOnMigrate = false -flyway.outOfOrder = false -flyway.sqlMigrationPrefix = V \ No newline at end of file From b3a6e0ce0c2501655fc2fc601507b435c61b7a5c Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 15:31:55 +0200 Subject: [PATCH 106/119] MOTECH-2895: 102nd try --- run_build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_build.sh b/run_build.sh index 79d6b640a..1ae559bfc 100644 --- a/run_build.sh +++ b/run_build.sh @@ -4,8 +4,8 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then #export MOTECH_CONFIG_DIR=~/.motech/config/ if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -Dmaven.repo.local=`pwd` -PIT -U + mvn -Dmysql.password=password -Dmaven.test.failure.ignore=false clean install -Dmysql.user=root -Dmotech.sql.driver=com.mysql.jdbc.Driver -Dmotech.sql.dbtype=mysql -Dmotech.sql.url=jdbc:mysql://localhost:3306/ clean install -PIT -U elif [ "$DB" = "psql" ]; then - mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ -Dmaven.repo.local=`pwd` clean install -PIT -U + mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi fi From 97cfe654322ba29817b660db03588813beae515c Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 15:39:24 +0200 Subject: [PATCH 107/119] MOTECH-2895: 103rd try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 1ae559bfc..4977a30a9 100644 --- a/run_build.sh +++ b/run_build.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then - #export MOTECH_CONFIG_DIR=~/.motech/config/ + cp ./testdata/config-locations.properties ~/.motech/ if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn -Dmysql.password=password -Dmaven.test.failure.ignore=false clean install -Dmysql.user=root -Dmotech.sql.driver=com.mysql.jdbc.Driver -Dmotech.sql.dbtype=mysql -Dmotech.sql.url=jdbc:mysql://localhost:3306/ clean install -PIT -U From ebfbf83b38a9841e37bc123f6714dd0146b309c6 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 15:40:45 +0200 Subject: [PATCH 108/119] MOTECH-2895: 104th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 4977a30a9..b5a892c15 100644 --- a/run_build.sh +++ b/run_build.sh @@ -4,7 +4,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then cp ./testdata/config-locations.properties ~/.motech/ if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn -Dmysql.password=password -Dmaven.test.failure.ignore=false clean install -Dmysql.user=root -Dmotech.sql.driver=com.mysql.jdbc.Driver -Dmotech.sql.dbtype=mysql -Dmotech.sql.url=jdbc:mysql://localhost:3306/ clean install -PIT -U + mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi From 9fcb5347867edfb6920cd422518474830f0aef08 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Fri, 9 Sep 2016 15:43:23 +0200 Subject: [PATCH 109/119] MOTECH-2895: 105th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index b5a892c15..ea6276558 100644 --- a/run_build.sh +++ b/run_build.sh @@ -4,7 +4,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then cp ./testdata/config-locations.properties ~/.motech/ if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U + mvn clean install -PIT -U -X elif [ "$DB" = "psql" ]; then mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi From e8c559a1a09a7101babc55849f73c4544b1ea04d Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Mon, 12 Sep 2016 08:20:55 +0200 Subject: [PATCH 110/119] MOTECH-2895: 106th try --- run_build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index ea6276558..6eca601b3 100644 --- a/run_build.sh +++ b/run_build.sh @@ -1,10 +1,15 @@ #!/usr/bin/env bash if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then - cp ./testdata/config-locations.properties ~/.motech/ + echo "Tutaj przed mvn" + ls -l ./ + echo "Nazat przed mvn" + ls -l ../ if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn clean install -PIT -U -X + echo "Nazat po mvn" + ls -l ../ elif [ "$DB" = "psql" ]; then mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi From 3f18f507aa6f6dea3b76bc6cf229b42d19bd17fd Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Mon, 12 Sep 2016 08:23:56 +0200 Subject: [PATCH 111/119] MOTECH-2895: 107th try --- run_build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_build.sh b/run_build.sh index 6eca601b3..5b6a47d34 100644 --- a/run_build.sh +++ b/run_build.sh @@ -8,8 +8,8 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn clean install -PIT -U -X - echo "Nazat po mvn" - ls -l ../ + echo "Tutej po mvn" + ls -l ./ elif [ "$DB" = "psql" ]; then mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi From 5b960617c0621ae6f30ca87db61941d0152db339 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Mon, 12 Sep 2016 08:28:40 +0200 Subject: [PATCH 112/119] MOTECH-2895: 108th try --- run_build.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/run_build.sh b/run_build.sh index 5b6a47d34..58c85962a 100644 --- a/run_build.sh +++ b/run_build.sh @@ -1,15 +1,10 @@ #!/usr/bin/env bash if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then - echo "Tutaj przed mvn" - ls -l ./ - echo "Nazat przed mvn" - ls -l ../ + rm -rf ~/.motech/config if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U -X - echo "Tutej po mvn" - ls -l ./ + mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi From 1a9d2f83b8a00c300cc069ded90298601af4d0e5 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Mon, 12 Sep 2016 08:37:08 +0200 Subject: [PATCH 113/119] MOTECH-2895: 109th try --- run_build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run_build.sh b/run_build.sh index 58c85962a..6311fd32a 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,8 +3,12 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then rm -rf ~/.motech/config if [ "$DB" = "mysql" ]; then + echo ".motech przed mvn" + ls -l ~/.motech echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn clean install -PIT -U + echo ".motech PO" + ls -l ~/.motech elif [ "$DB" = "psql" ]; then mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi From 1782e2a910acef247b8823c5536767029c04e70d Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Mon, 12 Sep 2016 08:45:29 +0200 Subject: [PATCH 114/119] MOTECH-2895: 110th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 6311fd32a..2cba86779 100644 --- a/run_build.sh +++ b/run_build.sh @@ -6,7 +6,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then echo ".motech przed mvn" ls -l ~/.motech echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -PIT -U + mvn clean install -Dmaven.repo.local=~/.motech -PIT -U echo ".motech PO" ls -l ~/.motech elif [ "$DB" = "psql" ]; then From fc5951a580f0a4669383e8fdeb0097b2e8d8e705 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Mon, 12 Sep 2016 08:58:31 +0200 Subject: [PATCH 115/119] MOTECH-2895: 111th try --- pom.xml | 10 ++++++++++ run_build.sh | 6 +----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 6f4df2102..1002e73c6 100644 --- a/pom.xml +++ b/pom.xml @@ -1093,6 +1093,16 @@ + + ${motech.dir} + true + + + ${modules.root.dir}/testdata + config-locations.properties + + + diff --git a/run_build.sh b/run_build.sh index 2cba86779..58c85962a 100644 --- a/run_build.sh +++ b/run_build.sh @@ -3,12 +3,8 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then rm -rf ~/.motech/config if [ "$DB" = "mysql" ]; then - echo ".motech przed mvn" - ls -l ~/.motech echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root - mvn clean install -Dmaven.repo.local=~/.motech -PIT -U - echo ".motech PO" - ls -l ~/.motech + mvn clean install -PIT -U elif [ "$DB" = "psql" ]; then mvn -Dmotech.sql.password=password -Dmotech.sql.user=postgres -Dmaven.test.failure.ignore=false -Dmotech.sql.driver=org.postgresql.Driver -Dmotech.sql.dbtype=psql -Dmotech.sql.url=jdbc:postgresql://localhost:5432/ clean install -PIT -U fi From 73d1ed0b9862e396b5c81c79683ac376cf55fee4 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Mon, 12 Sep 2016 09:00:10 +0200 Subject: [PATCH 116/119] MOTECH-2895: 112th try --- run_build.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 58c85962a..853df8a20 100644 --- a/run_build.sh +++ b/run_build.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then - rm -rf ~/.motech/config if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn clean install -PIT -U From 53b3b5348bd1f345334334c25e972a556783a4f5 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Mon, 12 Sep 2016 09:01:21 +0200 Subject: [PATCH 117/119] MOTECH-2895: 113th try --- pom.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pom.xml b/pom.xml index 1002e73c6..3a2c6b7df 100644 --- a/pom.xml +++ b/pom.xml @@ -1093,6 +1093,13 @@ + + + copy-locations-file + pre-integration-test + + copy-resources + ${motech.dir} true From 2f85f4fae0fe7ea41f5f44f57a29cea04caa2438 Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Mon, 12 Sep 2016 09:29:37 +0200 Subject: [PATCH 118/119] MOTECH-2895: 114th try --- pom.xml | 17 ----------------- run_build.sh | 2 ++ 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/pom.xml b/pom.xml index 3a2c6b7df..6f4df2102 100644 --- a/pom.xml +++ b/pom.xml @@ -1094,23 +1094,6 @@ - - copy-locations-file - pre-integration-test - - copy-resources - - - ${motech.dir} - true - - - ${modules.root.dir}/testdata - config-locations.properties - - - - diff --git a/run_build.sh b/run_build.sh index 853df8a20..5279e03ff 100644 --- a/run_build.sh +++ b/run_build.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then + mkdir ~/.motech + chmod a+rw ~/.motech if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn clean install -PIT -U From faa78e09778f3a91b0c7f7fd3c112c190404423e Mon Sep 17 00:00:00 2001 From: mkruszynski Date: Mon, 12 Sep 2016 09:57:58 +0200 Subject: [PATCH 119/119] MOTECH-2895: 115th try --- run_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_build.sh b/run_build.sh index 5279e03ff..3d12ed2ba 100644 --- a/run_build.sh +++ b/run_build.sh @@ -2,7 +2,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then mkdir ~/.motech - chmod a+rw ~/.motech + cp ./testdata/config-locations.properties ~/.motech if [ "$DB" = "mysql" ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('password') WHERE user='root';\nFLUSH PRIVILEGES\n" | mysql -u root mvn clean install -PIT -U