Skip to content
Snippets Groups Projects
Commit 7b1af3ce authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Merge branch 'feature/simultaneous_auth' into 'release'

Add Simultaneous auth test w/ Golds

See merge request !19
parents bff3818b a605d6de
No related branches found
No related tags found
3 merge requests!68Master merge,!19Add Simultaneous auth test w/ Golds,!11Release
Adding
Message received: Hello Jono from Sydney, with E2E Encryption
Message received: Hello Jono from Sydney, with E2E Encryption
Message received: Hello Jono from Sydney, with E2E Encryption
Message received: Hello Jono from Sydney, with E2E Encryption
Message received: Hello Jono from Sydney, with E2E Encryption
Received 0
Received 5
Sent: Hello Sydney from Jono, with E2E Encryption
Sent: Hello Sydney from Jono, with E2E Encryption
Sent: Hello Sydney from Jono, with E2E Encryption
Sent: Hello Sydney from Jono, with E2E Encryption
Sent: Hello Sydney from Jono, with E2E Encryption
WARNING: unsafe channel creation enabled
Adding
Message received: Hello Sydney from Jono, with E2E Encryption
Message received: Hello Sydney from Jono, with E2E Encryption
Message received: Hello Sydney from Jono, with E2E Encryption
Message received: Hello Sydney from Jono, with E2E Encryption
Message received: Hello Sydney from Jono, with E2E Encryption
Received 0
Received 5
Sent: Hello Jono from Sydney, with E2E Encryption
Sent: Hello Jono from Sydney, with E2E Encryption
Sent: Hello Jono from Sydney, with E2E Encryption
Sent: Hello Jono from Sydney, with E2E Encryption
Sent: Hello Jono from Sydney, with E2E Encryption
WARNING: unsafe channel creation enabled
......@@ -421,6 +421,40 @@ echo "NOTE: The command above causes an EXPECTED failure to confirm authenticati
wait $PIDVAL2
echo "CREATING USERS for SIMULTANEOUSAUTH TEST..."
JONOID=$(../bin/client init -s blob85 -l $CLIENTOUT/client85.log --password hello --ndf results/ndf.json --writeContact $CLIENTOUT/jono85-contact.bin -v $DEBUGLEVEL)
SYDNEYID=$(../bin/client init -s blob86 -l $CLIENTOUT/client86.log --password hello --ndf results/ndf.json --writeContact $CLIENTOUT/sydney86-contact.bin -v $DEBUGLEVEL)
echo "JONO ID: $JONOID"
echo "SYDNEY ID: $SYDNEYID"
# Attempt to send an auth request at the same time. It's not guaranteed that
# one side won't send and the other won't receive before sending their request
# but this method has proven to be reasonably reliable.
echo "STARTING SIMULTANEOUSAUTH TEST..."
CLIENTCMD="timeout 360s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client85.log -s blob85 --destfile $CLIENTOUT/sydney86-contact.bin --send-auth-request --sendCount 0 --receiveCount 0"
eval $CLIENTCMD >> $CLIENTOUT/client85.txt || true &
PIDVAL1=$!
echo "$CLIENTCMD -- $PIDVAL1"
CLIENTCMD="timeout 360s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client86.log -s blob86 --destfile $CLIENTOUT/jono85-contact.bin --send-auth-request --sendCount 0 --receiveCount 0"
eval $CLIENTCMD >> $CLIENTOUT/client86.txt || true &
PIDVAL2=$!
echo "$CLIENTCMD -- $PIDVAL2"
wait $PIDVAL1
wait $PIDVAL2
# Send a couple messages
echo "TESTING SIMULTANEOUSAUTH MESSAGE SEND..."
CLIENTCMD="timeout 360s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client85.log -s blob85 --destfile $CLIENTOUT/sydney86-contact.bin --sendCount 5 --receiveCount 5 -m \"Hello Sydney from Jono, with E2E Encryption\""
eval $CLIENTCMD >> $CLIENTOUT/client85.txt || true &
PIDVAL1=$!
echo "$CLIENTCMD -- $PIDVAL1"
CLIENTCMD="timeout 360s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client86.log -s blob86 --destfile $CLIENTOUT/jono85-contact.bin --sendCount 5 --receiveCount 5 -m \"Hello Jono from Sydney, with E2E Encryption\""
eval $CLIENTCMD >> $CLIENTOUT/client86.txt || true &
PIDVAL2=$!
echo "$CLIENTCMD -- $PIDVAL2"
wait $PIDVAL1
wait $PIDVAL2
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)
......
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