From 094f47fa70968c829ac9f597b245a9936c5a47cb Mon Sep 17 00:00:00 2001 From: josh <josh@elixxir.io> Date: Tue, 22 Jun 2021 15:07:05 -0700 Subject: [PATCH] Fix contact deletion check --- basice2e/deleteContact.gold | 1 - basice2e/run.sh | 10 ++++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) delete mode 100644 basice2e/deleteContact.gold diff --git a/basice2e/deleteContact.gold b/basice2e/deleteContact.gold deleted file mode 100644 index 56a6051..0000000 --- a/basice2e/deleteContact.gold +++ /dev/null @@ -1 +0,0 @@ -1 \ No newline at end of file diff --git a/basice2e/run.sh b/basice2e/run.sh index 05fe3fe..7a2b68b 100755 --- a/basice2e/run.sh +++ b/basice2e/run.sh @@ -726,14 +726,20 @@ set -e echo "TESTS EXITED SUCCESSFULLY, CHECKING OUTPUT..." set +x diff -aruN clients.goldoutput $CLIENTCLEAN -cat $CLIENTOUT/client42.log | grep -a "Could not confirm authentication channel for" > results/deleteContact.txt || true +cat $CLIENTOUT/client42.log | grep -a "Could not confirm authentication channel" > results/deleteContact.txt || true +echo "CHECKING FOR SUCCESSFUL CONTACT DELETION" +if [ -s results/deleteContact.txt ] +then + echo "CONTACT DELETION SUCCESSFUL" +else + [ -s results/deleteContact.txt ] +fi if [ "$PERMISSIONING" == "" ] then #cat $CLIENTOUT/* | strings | grep -e "ERROR" -e "FATAL" > results/client-errors || true #diff -ruN results/client-errors.txt noerrors.txt - diff -ruN results/results/deleteContact.txt deleteContact.gold cat $SERVERLOGS/server-*.log | grep -a "ERROR" | grep -a -v "context" | grep -av "metrics" | grep -av "database" > results/server-errors.txt || true cat $SERVERLOGS/server-*.log | grep -a "FATAL" | grep -a -v "context" | grep -av "transport is closing" | grep -av "database" >> results/server-errors.txt || true diff -aruN results/server-errors.txt noerrors.txt -- GitLab