From a35a4e87444b052c05cee79da97e2fd3f585642e Mon Sep 17 00:00:00 2001 From: Robin Arnold Date: Thu, 12 Sep 2019 14:45:48 -0400 Subject: [PATCH] issue #46 - fixed pom.xml format and default password for fhiruser Signed-off-by: Robin Arnold --- build/pre-integration-test.sh | 2 +- fhir-client/pom.xml | 2 +- fhir-install/src/main/resources/scripts/fhirSmokeTest.sh | 6 +++--- fhir-persistence-jdbc/pom.xml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build/pre-integration-test.sh b/build/pre-integration-test.sh index c4216a67f9f..9cc4389301a 100644 --- a/build/pre-integration-test.sh +++ b/build/pre-integration-test.sh @@ -72,7 +72,7 @@ tries=0 status=0 while [ $status -ne 200 -a $tries -lt ${MAX_TRIES} ]; do tries=$((tries + 1)) - cmd="curl -k -o ${WORKSPACE}/metadata.json -I -w "%{http_code}" -u fhiruser:fhiruser $metadata_url" + cmd="curl -k -o ${WORKSPACE}/metadata.json -I -w "%{http_code}" -u fhiruser:change-password $metadata_url" echo "Executing[$tries]: $cmd" status=$($cmd) echo "Status code: $status" diff --git a/fhir-client/pom.xml b/fhir-client/pom.xml index f3058bd8f87..438b93540a4 100644 --- a/fhir-client/pom.xml +++ b/fhir-client/pom.xml @@ -58,6 +58,6 @@ jakarta.xml.bind jakarta.xml.bind-api - + diff --git a/fhir-install/src/main/resources/scripts/fhirSmokeTest.sh b/fhir-install/src/main/resources/scripts/fhirSmokeTest.sh index b9aad030e16..63198271a43 100644 --- a/fhir-install/src/main/resources/scripts/fhirSmokeTest.sh +++ b/fhir-install/src/main/resources/scripts/fhirSmokeTest.sh @@ -22,14 +22,14 @@ echo -n "Checking if server $SERVER_HOST is accessible on port $SERVER_PORT ... echo "OK!" TMP_DIR=$(mktemp -d) -curl -k -u fhiruser:fhiruser https://$SERVER_HOST:$SERVER_PORT/fhir-server/api/v4/metadata > $TMP_DIR/meta.json 2> /dev/null +curl -k -u fhiruser:change-password https://$SERVER_HOST:$SERVER_PORT/fhir-server/api/v4/metadata > $TMP_DIR/meta.json 2> /dev/null echo -n "Checking FHIR server signature... " -[ $(cat $TMP_DIR/meta.json | grep '"description" : "IBM Watson Health FHIR Server version ' | wc -l) != "1" ] && echo "Error! Signature not found." && exit 4 +[ $(cat $TMP_DIR/meta.json | grep '"description":"IBM Watson Health FHIR Server version ' | wc -l) != "1" ] && echo "Error! Signature not found." && exit 4 echo "OK!" echo -n "Checking FHIR API version... " -[ $(cat $TMP_DIR/meta.json | grep '"fhirVersion" : "4.0.0 - R4"' | wc -l) != "1" ] && echo "Error! Wrong FHIR version or version absent." && exit 5 +[ $(cat $TMP_DIR/meta.json | grep '"fhirVersion":"4.0.0"' | wc -l) != "1" ] && echo "Error! Wrong FHIR version or version absent." && exit 5 echo "OK!" echo diff --git a/fhir-persistence-jdbc/pom.xml b/fhir-persistence-jdbc/pom.xml index b6c34d532a9..414748fe467 100644 --- a/fhir-persistence-jdbc/pom.xml +++ b/fhir-persistence-jdbc/pom.xml @@ -104,7 +104,7 @@ jakarta.xml.bind jakarta.xml.bind-api - +