Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
integration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
integration
Commits
91502a5e
Commit
91502a5e
authored
2 years ago
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
Re-enable protouser test, fix it and update golds
parent
7fe672f5
No related branches found
Branches containing commit
No related tags found
1 merge request
!68
Master merge
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
basice2e/clients.goldoutput/client25.txt
+29
-0
29 additions, 0 deletions
basice2e/clients.goldoutput/client25.txt
basice2e/run.sh
+70
-71
70 additions, 71 deletions
basice2e/run.sh
with
99 additions
and
71 deletions
basice2e/clients.goldoutput/client25.txt
+
29
−
0
View file @
91502a5e
Message received: Hello from Jonah26, with E2E Encryption
Message received: Hello from Jonah26, with E2E Encryption
Message received: Hello from Jonah26, with E2E Encryption
Message received: Hello from Jonah26, with E2E Encryption
Message received: Hello from Jonah26, with E2E Encryption
Message received: Hello from Jonah26, with E2E Encryption
Message received: Hello from Jonah26, with E2E Encryption
Message received: Hello from Jonah26, with E2E Encryption
Message received: Hello from Jonah26, with E2E Encryption
Message received: Hello from Jonah26, with E2E Encryption
Message received: Hello from Josh25 to myself, without E2E Encryption
Received 0
Received 0
Received 0
Received 1
Received 5
Received 5
Sent: Hello from Josh25 to myself, without E2E Encryption
Sent: Hello from Josh25, with E2E Encryption
Sent: Hello from Josh25, with E2E Encryption
Sent: Hello from Josh25, with E2E Encryption
Sent: Hello from Josh25, with E2E Encryption
Sent: Hello from Josh25, with E2E Encryption
Sent: Hello from Josh25, with E2E Encryption
Sent: Hello from Josh25, with E2E Encryption
Sent: Hello from Josh25, with E2E Encryption
Sent: Hello from Josh25, with E2E Encryption
Sent: Hello from Josh25, with E2E Encryption
This diff is collapsed.
Click to expand it.
basice2e/run.sh
+
70
−
71
View file @
91502a5e
...
...
@@ -620,85 +620,84 @@ echo "END BACKUP AND RESTORE..."
# Generate contact and proto user file for client25
echo
"TESTING PROTO USER FILE..."
CLIENTCMD
=
"timeout
2
0s ../bin/client
-l
$CLIENTOUT
/client25.log -s blob11420 --password hello --ndf results/ndf.json --writeContact
$CLIENTOUT
/josh25-contact.bin --protoUserOut
$CLIENTOUT
/client25Proto.json "
eval
$CLIENTCMD
>>
$CLIENTOUT
/client25.txt
||
true
&
CLIENTCMD
=
"timeout
6
0s ../bin/client -l
$CLIENTOUT
/client25.log -s blob11420 --password hello --ndf results/ndf.json --writeContact
$CLIENTOUT
/josh25-contact.bin --protoUserOut
$CLIENTOUT
/client25Proto.json
--unsafe --sendCount 0 --receiveCount 0
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client25.txt &
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
echo
"FIXME: The above exits uncleanly. This should be fixed!"
wait
$PIDVAL
#
# Generate contact and proto user file for client 26
#
CLIENTCMD="timeout
2
0s ../bin/client
-l $CLIENTOUT/client26.log -s blob11421 --password hello --ndf results/ndf.json --writeContact $CLIENTOUT/jonah26-contact.bin --protoUserOut $CLIENTOUT/client26Proto.json"
#
eval $CLIENTCMD >> $CLIENTOUT/client26.txt &
#
PIDVAL=$!
#
echo "$CLIENTCMD -- $PIDVAL"
#
wait $PIDVAL
# Generate contact and proto user file for client 26
CLIENTCMD
=
"timeout
6
0s ../bin/client -l
$CLIENTOUT
/client26.log -s blob11421 --password hello --ndf results/ndf.json --writeContact
$CLIENTOUT
/jonah26-contact.bin --protoUserOut
$CLIENTOUT
/client26Proto.json
--unsafe --sendCount 0 --receiveCount 0
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client26.txt &
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL
#
# Clients will now load from the protoUser file and write to session
#
CLIENTCMD="timeout 60s ../bin/client
$CLIENTOPTS -l $CLIENTOUT/client25.log -s blob25 --protoUserPath $CLIENTOUT/client25Proto.json"
#
eval $CLIENTCMD >> $CLIENTOUT/client25.txt &
#
PIDVAL=$!
#
echo "$CLIENTCMD -- $PIDVAL"
#
CLIENTCMD="timeout 60s ../bin/client
$CLIENTOPTS -l $CLIENTOUT/client26.log -s blob26 --protoUserPath $CLIENTOUT/client26Proto.json"
#
eval $CLIENTCMD >> $CLIENTOUT/client26.txt &
#
PIDVAL2=$!
#
echo "$CLIENTCMD -- $PIDVAL2"
#
wait $PIDVAL
#
wait $PIDVAL2
# Clients will now load from the protoUser file and write to session
CLIENTCMD
=
"timeout 60s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client25.log -s blob25 --protoUserPath
$CLIENTOUT
/client25Proto.json
--unsafe --sendCount 0 --receiveCount 0
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client25.txt &
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
CLIENTCMD
=
"timeout 60s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client26.log -s blob26 --protoUserPath
$CLIENTOUT
/client26Proto.json
--unsafe --sendCount 0 --receiveCount 0
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client26.txt &
PIDVAL2
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL2
"
wait
$PIDVAL
wait
$PIDVAL2
#
# Continue with E2E testing with session files loaded from proto
#
CLIENTCMD="timeout 240s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client25.log -s blob25 --writeContact $CLIENTOUT/josh25-contact.bin --unsafe -m \"Hello from Josh25 to myself, without E2E Encryption\" "
#
eval $CLIENTCMD >> $CLIENTOUT/client25.txt &
#
PIDVAL=$!
#
echo "$CLIENTCMD -- $PIDVAL"
#
wait $PIDVAL
#
CLIENTCMD="timeout 240s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client26.log -s blob26 --writeContact $CLIENTOUT/jonah26-contact.bin --destfile $CLIENTOUT/josh25-contact.bin --send-auth-request --sendCount 0 --receiveCount 0"
#
eval $CLIENTCMD >> $CLIENTOUT/client26.txt &
#
PIDVAL2=$!
#
echo "$CLIENTCMD -- $PIDVAL"
# Continue with E2E testing with session files loaded from proto
CLIENTCMD
=
"timeout 240s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client25.log -s blob25 --writeContact
$CLIENTOUT
/josh25-contact.bin --unsafe -m
\"
Hello from Josh25 to myself, without E2E Encryption
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client25.txt &
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL
CLIENTCMD
=
"timeout 240s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client26.log -s blob26 --writeContact
$CLIENTOUT
/jonah26-contact.bin --destfile
$CLIENTOUT
/josh25-contact.bin --send-auth-request --sendCount 0 --receiveCount 0"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client26.txt &
PIDVAL2
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
# while [ ! -s $CLIENTOUT/jonah26-contact.bin ]; do
# sleep 1
# echo -n "."
# done
# # Print IDs to console
# TMPID=$(cat $CLIENTOUT/client25.log | grep -a "User\:" | awk -F' ' '{print $5}' | head -1)
# JOSHID=${TMPID}
# echo "JOSH ID: $JOSHID"
# TMPID=$(cat $CLIENTOUT/client26.log | grep -a "User\:" | awk -F' ' '{print $5}' | head -1)
# JONAHID=${TMPID}
# echo "JONAH ID: $JONAHID"
# ## Client 25 will now wait for client 26's E2E Auth channel request and confirm
# CLIENTCMD="timeout 240s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client25.log -s blob25 --destfile $CLIENTOUT/jonah26-contact.bin --sendCount 0 --receiveCount 0"
# eval $CLIENTCMD >> $CLIENTOUT/client25.txt &
# PIDVAL=$!
# echo "$CLIENTCMD -- $PIDVAL"
# wait $PIDVAL
# wait $PIDVAL2
while
[
!
-s
$CLIENTOUT
/jonah26-contact.bin
]
;
do
sleep
1
echo
-n
"."
done
# # Send E2E messages with written sessions
# CLIENTCMD="timeout 240s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client25.log -s blob25 --destid b64:$JONAHID --sendCount 5 --receiveCount 5 -m \"Hello from Josh25, with E2E Encryption\""
# eval $CLIENTCMD >> $CLIENTOUT/client25.txt &
# PIDVAL=$!
# echo "$CLIENTCMD -- $PIDVAL"
# CLIENTCMD="timeout 240s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client26.log -s blob26 --destid b64:$JOSHID --sendCount 5 --receiveCount 5 -m \"Hello from Jonah26, with E2E Encryption\""
# eval $CLIENTCMD >> $CLIENTOUT/client26.txt &
# PIDVAL2=$!
# echo "$CLIENTCMD -- $PIDVAL"
# wait $PIDVAL
# wait $PIDVAL2
# CLIENTCMD="timeout 240s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client25.log -s blob25 --destid b64:$JONAHID --sendCount 5 --receiveCount 5 -m \"Hello from Josh25, with E2E Encryption\""
# eval $CLIENTCMD >> $CLIENTOUT/client25.txt &
# PIDVAL=$!
# echo "$CLIENTCMD -- $PIDVAL"
# CLIENTCMD="timeout 240s ../bin/client $CLIENTOPTS -l $CLIENTOUT/client26.log -s blob26 --destid b64:$JOSHID --sendCount 5 --receiveCount 5 -m \"Hello from Jonah26, with E2E Encryption\""
# eval $CLIENTCMD >> $CLIENTOUT/client26.txt &
# PIDVAL2=$!
# echo "$CLIENTCMD -- $PIDVAL"
# wait $PIDVAL
# wait $PIDVAL2
# Print IDs to console
TMPID
=
$(
cat
$CLIENTOUT
/client25.log |
grep
-a
"User
\:
"
|
awk
-F
' '
'{print $5}'
|
head
-1
)
JOSHID
=
${
TMPID
}
echo
"JOSH ID:
$JOSHID
"
TMPID
=
$(
cat
$CLIENTOUT
/client26.log |
grep
-a
"User
\:
"
|
awk
-F
' '
'{print $5}'
|
head
-1
)
JONAHID
=
${
TMPID
}
echo
"JONAH ID:
$JONAHID
"
## Client 25 will now wait for client 26's E2E Auth channel request and confirm
CLIENTCMD
=
"timeout 240s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client25.log -s blob25 --destfile
$CLIENTOUT
/jonah26-contact.bin --sendCount 0 --receiveCount 0"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client25.txt &
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL
wait
$PIDVAL2
# Send E2E messages with written sessions
CLIENTCMD
=
"timeout 240s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client25.log -s blob25 --destid b64:
$JONAHID
--sendCount 5 --receiveCount 5 -m
\"
Hello from Josh25, with E2E Encryption
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client25.txt &
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
CLIENTCMD
=
"timeout 240s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client26.log -s blob26 --destid b64:
$JOSHID
--sendCount 5 --receiveCount 5 -m
\"
Hello from Jonah26, with E2E Encryption
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client26.txt &
PIDVAL2
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL
wait
$PIDVAL2
CLIENTCMD
=
"timeout 240s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client25.log -s blob25 --destid b64:
$JONAHID
--sendCount 5 --receiveCount 5 -m
\"
Hello from Josh25, with E2E Encryption
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client25.txt &
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
CLIENTCMD
=
"timeout 240s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client26.log -s blob26 --destid b64:
$JOSHID
--sendCount 5 --receiveCount 5 -m
\"
Hello from Jonah26, with E2E Encryption
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client26.txt &
PIDVAL2
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL
wait
$PIDVAL2
###############################################################################
# Test Single Use
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment