Update test
This commit is contained in:
parent
bcc9b1f5f4
commit
065ceb6dd5
@ -26,6 +26,8 @@ $TEST_TARGET_SO build-webapp --source-repo $CERC_REPO_BASE_DIR/test-progressive-
|
|||||||
|
|
||||||
UUID=`uuidgen`
|
UUID=`uuidgen`
|
||||||
|
|
||||||
|
set +e
|
||||||
|
|
||||||
CONTAINER_ID=$(docker run -p 3000:3000 -d cerc/test-progressive-web-app:local)
|
CONTAINER_ID=$(docker run -p 3000:3000 -d cerc/test-progressive-web-app:local)
|
||||||
sleep 3
|
sleep 3
|
||||||
wget -O test.before -m http://localhost:3000
|
wget -O test.before -m http://localhost:3000
|
||||||
@ -36,17 +38,25 @@ CONTAINER_ID=$(docker run -p 3000:3000 -e CERC_WEBAPP_DEBUG=$UUID -d cerc/test-p
|
|||||||
sleep 3
|
sleep 3
|
||||||
wget -O test.after -m http://localhost:3000
|
wget -O test.after -m http://localhost:3000
|
||||||
|
|
||||||
set +e
|
docker remove -f $CONTAINER_ID
|
||||||
|
|
||||||
|
echo "###########################################################################"
|
||||||
|
echo ""
|
||||||
|
|
||||||
grep "$UUID" test.before > /dev/null
|
grep "$UUID" test.before > /dev/null
|
||||||
if [ $? -ne 1 ]; then
|
if [ $? -ne 1 ]; then
|
||||||
echo "Found $UUID in before ouput."
|
echo "BEFORE: FAILED"
|
||||||
exit 1
|
exit 1
|
||||||
|
else
|
||||||
|
echo "BEFORE: PASSED"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
grep "$UUID" test.after > /dev/null
|
grep "`uuidgen`" test.after > /dev/null
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Unable to find $UUID in after ouput."
|
echo "AFTER: FAILED"
|
||||||
exit 1
|
exit 1
|
||||||
|
else
|
||||||
|
echo "AFTER: PASSED"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in New Issue
Block a user