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

Modify integration to create E2E connection in rekey like the E2E test, then update golds to match.

parent 235471a0
No related branches found
No related tags found
1 merge request!4Release
Sent: Hello from Jake100 to myself, without E2E Encryption
Message received: Hello from Jake100 to myself, without E2E Encryption
Received 1
Received 0
Sent: Hello from Jake100, with E2E Encryption
Sent: Hello from Jake100, with E2E Encryption
......@@ -22,7 +23,7 @@ Sent: Hello from Jake100, with E2E Encryption
Sent: Hello from Jake100, with E2E Encryption
Sent: Hello from Jake100, with E2E Encryption
Sent: Hello from Jake100, with E2E Encryption
Message received: Hello from Jake100 to myself, without E2E Encryption
Message received: Hello from Niamh101, with E2E Encryption
Message received: Hello from Niamh101, with E2E Encryption
Message received: Hello from Niamh101, with E2E Encryption
Message received: Hello from Niamh101, with E2E Encryption
......
WARNING: unsafe channel creation enabled
Adding
Received 0
Received 0
Sent: Hello from Niamh101, with E2E Encryption
Sent: Hello from Niamh101, with E2E Encryption
Sent: Hello from Niamh101, with E2E Encryption
......
Received 0
Sent: Hello from Josh31, with E2E Encryption
Sent: Hello from Josh31, with E2E Encryption
Sent: Hello from Josh31, with E2E Encryption
......
Sent: Hello from Rick42 to myself, without E2E Encryption
Message received: Hello from Rick42 to myself, without E2E Encryption
Received 1
Received 0
Sent: Hello from Rick42, with E2E Encryption
Sent: Hello from Rick42, with E2E Encryption
Sent: Hello from Rick42, with E2E Encryption
......
......@@ -328,7 +328,7 @@ eval $CLIENTCMD >> $CLIENTOUT/client100.txt || true &
PIDVAL=$!
echo "$CLIENTCMD -- $PIDVAL"
wait $PIDVAL
CLIENTCMD="timeout 240s ../bin/client $CLIENTOPTS $REKEYOPTS -l $CLIENTOUT/client101.log -s blob101 --writeContact $CLIENTOUT/Niamh101-contact.bin --destfile $CLIENTOUT/Jake100-contact.bin --sendCount 0 --receiveCount 0 -m \"Hello from Niamh101, with E2E Encryption\""
CLIENTCMD="timeout 240s ../bin/client $CLIENTOPTS $REKEYOPTS -l $CLIENTOUT/client101.log -s blob101 --writeContact $CLIENTOUT/Niamh101-contact.bin --destfile $CLIENTOUT/Jake100-contact.bin --sendCount 0 --receiveCount 0"
eval $CLIENTCMD >> $CLIENTOUT/client101.txt || true &
PIDVAL2=$!
echo "$CLIENTCMD -- $PIDVAL"
......@@ -340,6 +340,22 @@ TMPID=$(cat $CLIENTOUT/client101.log | grep "User\:" | awk -F' ' '{print $5}')
NIAMHID=${TMPID}
echo "NIAMH ID: $NIAMHID"
# Client 100 will now wait for client 101's E2E Auth channel request and not do
# anything else.
CLIENTCMD="timeout 240s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client100.log -s blob100 --destid b64:$NIAMHID --sendCount 0 --receiveCount 0 --unsafe"
eval $CLIENTCMD >> $CLIENTOUT/client100.txt || true &
PIDVAL=$!
echo "$CLIENTCMD -- $PIDVAL"
wait $PIDVAL
# Client 101 will now wait for the confirmation.
CLIENTCMD="timeout 240s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client101.log -s blob101 --destid b64:$JAKEID --sendCount 0 --receiveCount 0 --unsafe"
eval $CLIENTCMD >> $CLIENTOUT/client101.txt || true &
PIDVAL=$!
echo "$CLIENTCMD -- $PIDVAL"
wait $PIDVAL
echo "RUNNING REKEY TEST..."
# Test destid syntax too, note wait for 11 messages to catch the message from above ^^^
CLIENTCMD="timeout 240s ../bin/client $CLIENTOPTS $REKEYOPTS -l $CLIENTOUT/client100.log -s blob100 --destid b64:$NIAMHID --sendCount 20 --receiveCount 20 -m \"Hello from Jake100, with E2E Encryption\""
......
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