File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,8 +38,24 @@ mvn -Dhttp.keepAlive=false \
3838 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \
3939 -Dcontext.root=/dev/ failsafe:integration-test liberty:stop
4040mvn failsafe:verify
41+
42+ # TEST 3: packaging and running the application jar
4143mvn liberty:package -Dinclude=runnable
4244if [ ! -f " target/guide-getting-started.jar" ]; then
4345 echo " target/guide-getting-started.jar was not generated!"
4446 exit 1
4547fi
48+ java -jar target/guide-getting-started.jar &
49+ GGS_PID=$!
50+ echo " GGS_PID=$GGS_PID "
51+ sleep 60
52+ status=" $( curl --write-out " %{http_code}\n" --silent --output /dev/null " http://localhost:9080/dev/system/properties" ) "
53+ kill $GGS_PID
54+ if [ " $status " == " 200" ]
55+ then
56+ echo ENDPOINT OK
57+ else
58+ echo " $status "
59+ echo ENDPOINT NOT OK
60+ exit 1
61+ fi
You can’t perform that action at this time.
0 commit comments