Skip to content
Snippets Groups Projects
Commit 19c78db0 authored by Josh Brooks's avatar Josh Brooks
Browse files

Merge branch 'feature/DeleteContact' into 'release'

Feature/delete contact

See merge request elixxir/integration!124
parents 6b07bdfb 4e0bf4d0
No related branches found
No related tags found
1 merge request!4Release
...@@ -25,3 +25,4 @@ Message received: Hello from Ben43, with E2E Encryption ...@@ -25,3 +25,4 @@ Message received: Hello from Ben43, with E2E Encryption
Message received: Hello from Ben43, with E2E Encryption Message received: Hello from Ben43, with E2E Encryption
Message received: Hello from Ben43, with E2E Encryption Message received: Hello from Ben43, with E2E Encryption
Received 5 Received 5
Received 0
...@@ -342,6 +342,21 @@ echo "$CLIENTCMD -- $PIDVAL" ...@@ -342,6 +342,21 @@ echo "$CLIENTCMD -- $PIDVAL"
wait $PIDVAL wait $PIDVAL
wait $PIDVAL2 wait $PIDVAL2
echo "DELETING CONTACT FROM CLIENT..."
CLIENTCMD="timeout 240s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client42.log -s blob42 --delete-channel --destfile $CLIENTOUT/ben43-contact.bin --sendCount 0 --receiveCount 0"
eval $CLIENTCMD >> $CLIENTOUT/client42.txt || true &
echo "$CLIENTCMD -- $PIDVAL"
PIDVAL1=$!
wait $PIDVAL1
# NOTE the command below causes the following EXPECTED error:
# panic: Could not confirm authentication channel for HTAmEeBhbLi6aFqcWsi3OZNDE/642GAchpATjhYFTHwD, waited 120 seconds.
# Note that the above is example, client IDs will vary
CLIENTCMD="timeout 240s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client42.log -s blob42 --destid b64:$BENID --sendCount 5 --receiveCount 5 -m \"Hello from Rick42, with E2E Encryption\""
eval $CLIENTCMD >> $CLIENTOUT/client42.txt || true &
PIDVAL2=$!
echo "$CLIENTCMD -- $PIDVAL"
wait $PIDVAL2
# echo "CREATING USERS for REKEY TEST..." # echo "CREATING USERS for REKEY TEST..."
# JAKEID=$(../bin/client init -s blob100 -l $CLIENTOUT/client100.log --password hello --ndf results/ndf.json --writeContact $CLIENTOUT/Jake100-contact.bin -v $DEBUGLEVEL) # JAKEID=$(../bin/client init -s blob100 -l $CLIENTOUT/client100.log --password hello --ndf results/ndf.json --writeContact $CLIENTOUT/Jake100-contact.bin -v $DEBUGLEVEL)
# NIAMHID=$(../bin/client init -s blob101 -l $CLIENTOUT/client101.log --password hello --ndf results/ndf.json --writeContact $CLIENTOUT/Niamh101-contact.bin -v $DEBUGLEVEL) # NIAMHID=$(../bin/client init -s blob101 -l $CLIENTOUT/client101.log --password hello --ndf results/ndf.json --writeContact $CLIENTOUT/Niamh101-contact.bin -v $DEBUGLEVEL)
...@@ -711,6 +726,15 @@ set -e ...@@ -711,6 +726,15 @@ set -e
echo "TESTS EXITED SUCCESSFULLY, CHECKING OUTPUT..." echo "TESTS EXITED SUCCESSFULLY, CHECKING OUTPUT..."
set +x set +x
diff -aruN clients.goldoutput $CLIENTCLEAN diff -aruN clients.goldoutput $CLIENTCLEAN
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
echo "CONTACT DELETION FAILED"
[ -s results/deleteContact.txt ]
fi
if [ "$PERMISSIONING" == "" ] if [ "$PERMISSIONING" == "" ]
then then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment