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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
integration
Commits
d1a74f9f
Commit
d1a74f9f
authored
Jul 8, 2022
by
Josh Brooks
Browse files
Options
Downloads
Plain Diff
Merge branch 'release' of git.xx.network:elixxir/integration into feature/XX-3958/ConnectionCLI
parents
2aea4992
f84fdac4
No related branches found
No related tags found
2 merge requests
!68
Master merge
,
!28
Add integration test for connections
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
basice2e/clients.goldoutput/client100.txt
+2
-0
2 additions, 0 deletions
basice2e/clients.goldoutput/client100.txt
basice2e/clients.goldoutput/client101.txt
+2
-0
2 additions, 0 deletions
basice2e/clients.goldoutput/client101.txt
basice2e/run.sh
+8
-8
8 additions, 8 deletions
basice2e/run.sh
with
12 additions
and
8 deletions
basice2e/clients.goldoutput/client100.txt
+
2
−
0
View file @
d1a74f9f
...
@@ -19,6 +19,8 @@ Message received: Hello from Niamh101, with E2E Encryption
...
@@ -19,6 +19,8 @@ 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
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: type is KeyExchangeConfirm
Message received: type is KeyExchangeTrigger
Received 0
Received 0
Received 0
Received 0
Received 20
Received 20
...
...
This diff is collapsed.
Click to expand it.
basice2e/clients.goldoutput/client101.txt
+
2
−
0
View file @
d1a74f9f
...
@@ -39,6 +39,8 @@ Message received: Hello from Jake100, with E2E Encryption
...
@@ -39,6 +39,8 @@ Message received: Hello from Jake100, with E2E Encryption
Message received: Hello from Jake100, with E2E Encryption
Message received: Hello from Jake100, with E2E Encryption
Message received: Hello from Jake100, with E2E Encryption
Message received: Hello from Jake100, with E2E Encryption
Message received: Hello from Jake100, with E2E Encryption
Message received: Hello from Jake100, with E2E Encryption
Message received: type is KeyExchangeConfirm
Message received: type is KeyExchangeTrigger
Received 0
Received 0
Received 20
Received 20
Received 20
Received 20
...
...
This diff is collapsed.
Click to expand it.
basice2e/run.sh
+
8
−
8
View file @
d1a74f9f
...
@@ -35,7 +35,7 @@ CLIENTUDOPTS="--password hello --ndf results/ndf.json -v $DEBUGLEVEL"
...
@@ -35,7 +35,7 @@ CLIENTUDOPTS="--password hello --ndf results/ndf.json -v $DEBUGLEVEL"
CLIENTSINGLEOPTS
=
"--password hello --waitTimeout 360 --ndf results/ndf.json -v
$DEBUGLEVEL
"
CLIENTSINGLEOPTS
=
"--password hello --waitTimeout 360 --ndf results/ndf.json -v
$DEBUGLEVEL
"
CLIENTGROUPOPTS
=
"--password hello --waitTimeout 600 --ndf results/ndf.json -v
$DEBUGLEVEL
"
CLIENTGROUPOPTS
=
"--password hello --waitTimeout 600 --ndf results/ndf.json -v
$DEBUGLEVEL
"
CLIENTFILETRANSFEROPTS
=
"--password hello --waitTimeout 600 --ndf results/ndf.json -v
$DEBUGLEVEL
"
CLIENTFILETRANSFEROPTS
=
"--password hello --waitTimeout 600 --ndf results/ndf.json -v
$DEBUGLEVEL
"
CLIENTREKEYOPTS
=
"--password hello --ndf results/ndf.json --verify-sends --waitTimeout
42
0 --unsafe-channel-creation -v
$DEBUGLEVEL
"
CLIENTREKEYOPTS
=
"--password hello --ndf results/ndf.json --verify-sends --waitTimeout
60
0 --unsafe-channel-creation -v
$DEBUGLEVEL
"
CLIENTBACKUPOPTS
=
"--password hello --ndf results/ndf.json -v
$DEBUGLEVEL
"
CLIENTBACKUPOPTS
=
"--password hello --ndf results/ndf.json -v
$DEBUGLEVEL
"
CONNECTIONOPTS
=
"--password hello --waitTimeout 360 --ndf results/ndf.json -v
$DEBUGLEVEL
"
CONNECTIONOPTS
=
"--password hello --waitTimeout 360 --ndf results/ndf.json -v
$DEBUGLEVEL
"
...
@@ -151,7 +151,7 @@ then
...
@@ -151,7 +151,7 @@ then
# Start a user discovery bot server
# Start a user discovery bot server
echo
"STARTING UDB..."
echo
"STARTING UDB..."
UDBCMD
=
"../bin/udb --logLevel
$DEBUGLEVEL
--protoUserPath udbProto.json --config udb.yaml -l 1"
UDBCMD
=
"../bin/udb --logLevel
$DEBUGLEVEL
--skipVerification
--protoUserPath udbProto.json --config udb.yaml -l 1"
$UDBCMD
>>
$UDBOUT
2>&1 &
$UDBCMD
>>
$UDBOUT
2>&1 &
PIDVAL
=
$!
PIDVAL
=
$!
echo
$PIDVAL
>>
results/serverpids
echo
$PIDVAL
>>
results/serverpids
...
@@ -531,11 +531,11 @@ wait $PIDVAL2
...
@@ -531,11 +531,11 @@ wait $PIDVAL2
echo
"RUNNING REKEY TEST..."
echo
"RUNNING REKEY TEST..."
# Test destid syntax too, note wait for 11 messages to catch the message from above ^^^
# Test destid syntax too, note wait for 11 messages to catch the message from above ^^^
CLIENTCMD
=
"timeout
3
60s ../bin/client
$CLIENTOPTS
$REKEYOPTS
-l
$CLIENTOUT
/client100.log -s blob100 --destid b64:
$NIAMHID
--sendCount 20 --receiveCount 20 -m
\"
Hello from Jake100, with E2E Encryption
\"
"
CLIENTCMD
=
"timeout 6
0
0s ../bin/client
$CLIENT
REKEY
OPTS
$REKEYOPTS
-l
$CLIENTOUT
/client100.log -s blob100 --destid b64:
$NIAMHID
--sendCount 20 --receiveCount 20 -m
\"
Hello from Jake100, with E2E Encryption
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client100.txt
||
true
&
eval
$CLIENTCMD
>>
$CLIENTOUT
/client100.txt
||
true
&
PIDVAL
=
$!
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
echo
"
$CLIENTCMD
--
$PIDVAL
"
CLIENTCMD
=
"timeout
3
60s ../bin/client
$CLIENTOPTS
$REKEYOPTS
-l
$CLIENTOUT
/client101.log -s blob101 --destid b64:
$JAKEID
--sendCount 20 --receiveCount 20 -m
\"
Hello from Niamh101, with E2E Encryption
\"
"
CLIENTCMD
=
"timeout 6
0
0s ../bin/client
$CLIENT
REKEY
OPTS
$REKEYOPTS
-l
$CLIENTOUT
/client101.log -s blob101 --destid b64:
$JAKEID
--sendCount 20 --receiveCount 20 -m
\"
Hello from Niamh101, with E2E Encryption
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client101.txt
||
true
&
eval
$CLIENTCMD
>>
$CLIENTOUT
/client101.txt
||
true
&
PIDVAL2
=
$!
PIDVAL2
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
echo
"
$CLIENTCMD
--
$PIDVAL
"
...
@@ -544,16 +544,16 @@ wait $PIDVAL2
...
@@ -544,16 +544,16 @@ wait $PIDVAL2
# Now we are just going to exhaust all the keys we have and see if we
# Now we are just going to exhaust all the keys we have and see if we
# use the unconfirmed channels
# use the unconfirmed channels
CLIENTCMD
=
"timeout
42
0s ../bin/client
$CLIENTREKEYOPTS
$REKEYOPTS
-l
$CLIENTOUT
/client100.log -s blob100 --destid b64:
$NIAMHID
--sendCount 20 --receiveCount 0 -m
\"
Hello from Jake100, with E2E Encryption
\"
"
CLIENTCMD
=
"timeout
60
0s ../bin/client
$CLIENTREKEYOPTS
$REKEYOPTS
-l
$CLIENTOUT
/client100.log -s blob100 --destid b64:
$NIAMHID
--sendCount 20 --receiveCount 0 -m
\"
Hello from Jake100, with E2E Encryption
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client100.txt
||
true
&
eval
$CLIENTCMD
>>
$CLIENTOUT
/client100.txt
||
true
&
PIDVAL
=
$!
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL
# And receive those messages sent to us
# And receive those messages sent to us
CLIENTCMD
=
"timeout
42
0s ../bin/client
$CLIENTREKEYOPTS
$REKEYOPTS
-l
$CLIENTOUT
/client101.log -s blob101 --destid b64:
$JAKEID
--sendCount 0 --receiveCount 20"
CLIENTCMD
=
"timeout
60
0s ../bin/client
$CLIENTREKEYOPTS
$REKEYOPTS
-l
$CLIENTOUT
/client101.log -s blob101 --destid b64:
$JAKEID
--sendCount 0 --receiveCount 20"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client101.txt
||
true
&
eval
$CLIENTCMD
>>
$CLIENTOUT
/client101.txt
||
true
&
PIDVAL2
=
$!
PIDVAL2
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL
wait
$PIDVAL2
wait
$PIDVAL2
...
@@ -1212,7 +1212,7 @@ fi
...
@@ -1212,7 +1212,7 @@ fi
set
+x
set
+x
diff
-aru
N
$GOLDOUTPUT
$CLIENTCLEAN
diff
-aru
$GOLDOUTPUT
$CLIENTCLEAN
cat
$CLIENTOUT
/client42.log |
grep
-a
"Could not confirm authentication channel"
>
results/deleteContact.txt
||
true
cat
$CLIENTOUT
/client42.log |
grep
-a
"Could not confirm authentication channel"
>
results/deleteContact.txt
||
true
echo
"CHECKING FOR SUCCESSFUL CONTACT DELETION"
echo
"CHECKING FOR SUCCESSFUL CONTACT DELETION"
if
[
-s
results/deleteContact.txt
]
if
[
-s
results/deleteContact.txt
]
...
...
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