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
19c78db0
Commit
19c78db0
authored
3 years ago
by
Josh Brooks
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/DeleteContact' into 'release'
Feature/delete contact See merge request elixxir/integration!124
parents
6b07bdfb
4e0bf4d0
No related branches found
No related tags found
1 merge request
!4
Release
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
basice2e/clients.goldoutput/client42.txt
+1
-0
1 addition, 0 deletions
basice2e/clients.goldoutput/client42.txt
basice2e/run.sh
+24
-0
24 additions, 0 deletions
basice2e/run.sh
with
25 additions
and
0 deletions
basice2e/clients.goldoutput/client42.txt
+
1
−
0
View file @
19c78db0
...
@@ -25,3 +25,4 @@ Message received: Hello from Ben43, with E2E Encryption
...
@@ -25,3 +25,4 @@ Message received: Hello from Ben43, with E2E Encryption
Message received: Hello from Ben43, with E2E Encryption
Message received: Hello from Ben43, with E2E Encryption
Message received: Hello from Ben43, with E2E Encryption
Message received: Hello from Ben43, with E2E Encryption
Received 5
Received 5
Received 0
This diff is collapsed.
Click to expand it.
basice2e/run.sh
+
24
−
0
View file @
19c78db0
...
@@ -342,6 +342,21 @@ echo "$CLIENTCMD -- $PIDVAL"
...
@@ -342,6 +342,21 @@ echo "$CLIENTCMD -- $PIDVAL"
wait
$PIDVAL
wait
$PIDVAL
wait
$PIDVAL2
wait
$PIDVAL2
echo
"DELETING CONTACT FROM CLIENT..."
CLIENTCMD
=
"timeout 240s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client42.log -s blob42 --delete-channel --destfile
$CLIENTOUT
/ben43-contact.bin --sendCount 0 --receiveCount 0"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client42.txt
||
true
&
echo
"
$CLIENTCMD
--
$PIDVAL
"
PIDVAL1
=
$!
wait
$PIDVAL1
# NOTE the command below causes the following EXPECTED error:
# panic: Could not confirm authentication channel for HTAmEeBhbLi6aFqcWsi3OZNDE/642GAchpATjhYFTHwD, waited 120 seconds.
# Note that the above is example, client IDs will vary
CLIENTCMD
=
"timeout 240s ../bin/client
$CLIENTOPTS
-l
$CLIENTOUT
/client42.log -s blob42 --destid b64:
$BENID
--sendCount 5 --receiveCount 5 -m
\"
Hello from Rick42, with E2E Encryption
\"
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client42.txt
||
true
&
PIDVAL2
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL2
# echo "CREATING USERS for REKEY TEST..."
# 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)
# JAKEID=$(../bin/client init -s blob100 -l $CLIENTOUT/client100.log --password hello --ndf results/ndf.json --writeContact $CLIENTOUT/Jake100-contact.bin -v $DEBUGLEVEL)
# NIAMHID=$(../bin/client init -s blob101 -l $CLIENTOUT/client101.log --password hello --ndf results/ndf.json --writeContact $CLIENTOUT/Niamh101-contact.bin -v $DEBUGLEVEL)
# NIAMHID=$(../bin/client init -s blob101 -l $CLIENTOUT/client101.log --password hello --ndf results/ndf.json --writeContact $CLIENTOUT/Niamh101-contact.bin -v $DEBUGLEVEL)
...
@@ -711,6 +726,15 @@ set -e
...
@@ -711,6 +726,15 @@ set -e
echo
"TESTS EXITED SUCCESSFULLY, CHECKING OUTPUT..."
echo
"TESTS EXITED SUCCESSFULLY, CHECKING OUTPUT..."
set
+x
set
+x
diff
-aruN
clients.goldoutput
$CLIENTCLEAN
diff
-aruN
clients.goldoutput
$CLIENTCLEAN
cat
$CLIENTOUT
/client42.log |
grep
-a
"Could not confirm authentication channel"
>
results/deleteContact.txt
||
true
echo
"CHECKING FOR SUCCESSFUL CONTACT DELETION"
if
[
-s
results/deleteContact.txt
]
then
echo
"CONTACT DELETION SUCCESSFUL"
else
echo
"CONTACT DELETION FAILED"
[
-s
results/deleteContact.txt
]
fi
if
[
"
$PERMISSIONING
"
==
""
]
if
[
"
$PERMISSIONING
"
==
""
]
then
then
...
...
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