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
7922c942
Commit
7922c942
authored
6 years ago
by
Bernardo Cardoso
Browse files
Options
Downloads
Patches
Plain Diff
Add E2E message sending to integration test
parent
dc51ba0c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
basice2e/clients.goldoutput/client18.out
+1
-0
1 addition, 0 deletions
basice2e/clients.goldoutput/client18.out
basice2e/clients.goldoutput/client9.out
+1
-0
1 addition, 0 deletions
basice2e/clients.goldoutput/client9.out
basice2e/run.sh
+15
-2
15 additions, 2 deletions
basice2e/run.sh
with
17 additions
and
2 deletions
basice2e/clients.goldoutput/client18.out
+
1
−
0
View file @
7922c942
UDB search successful. Returned user [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9]
Sending Message to 9, Spencer: Hello, 9, with E2E Encryption
This diff is collapsed.
Click to expand it.
basice2e/clients.goldoutput/client9.out
+
1
−
0
View file @
7922c942
UDB search successful. Returned user [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 18]
Message from 18, Bernardo Received: Hello, 9, with E2E Encryption
This diff is collapsed.
Click to expand it.
basice2e/run.sh
+
15
−
2
View file @
7922c942
...
...
@@ -119,13 +119,13 @@ do
done
# Register two users and then do UDB search on each other
CLIENTCMD
=
"timeout 90s ../bin/client -f blob9 -g
$GATEWAY
-E "
jake
@elixxir.io
" -i 9 -d 3 -c ../keys/gateway.cmix.rip.crt"
CLIENTCMD
=
"timeout 90s ../bin/client -f blob9 -g
$GATEWAY
-E "
spencer
@elixxir.io
" -i 9 -d 3 -c ../keys/gateway.cmix.rip.crt"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client9.out 2>&1 &
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL
CLIENTCMD
=
"timeout 90s ../bin/client -f blob18 -g
$GATEWAY
-E "
bernardo@elixxir.io
" -i 18 -d 3 -c ../keys/gateway.cmix.rip.crt -m
\"
SEARCH EMAIL
jake
@elixxir.io
\"
"
CLIENTCMD
=
"timeout 90s ../bin/client -f blob18 -g
$GATEWAY
-E "
bernardo@elixxir.io
" -i 18 -d 3 -c ../keys/gateway.cmix.rip.crt -m
\"
SEARCH EMAIL
spencer
@elixxir.io
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client18.out 2>&1 &
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
...
...
@@ -137,6 +137,19 @@ PIDVAL=$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL
# Send E2E encrypted message between users that discovered each other
CLIENTCMD
=
"timeout 60s ../bin/client -f blob18 -g
$GATEWAY
-i 18 -d 9 -c ../keys/gateway.cmix.rip.crt -m
\"
Hello, 9, with E2E Encryption
\"
--end2end"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client18.out 2>&1 &
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL
CLIENTCMD
=
"timeout 60s ../bin/client -f blob9 -g
$GATEWAY
-i 9 -c ../keys/gateway.cmix.rip.crt"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client9.out 2>&1 &
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL
# Send a channel message that all clients will receive
CLIENTCMD
=
"timeout 60s ../bin/client -f blob8 -c ../keys/gateway.cmix.rip.crt -g
$GATEWAY
-i 8 -d 31 -m
\"
Channel, Hello
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client8.out 2>&1 &
...
...
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