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
6b3c023d
Commit
6b3c023d
authored
2 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Complete integration test for Crust
parent
69da25f4
No related branches found
Branches containing commit
No related tags found
2 merge requests
!68
Master merge
,
!40
Projects/crust release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
basice2e/crust.sh
+15
-4
15 additions, 4 deletions
basice2e/crust.sh
with
15 additions
and
4 deletions
basice2e/crust.sh
+
15
−
4
View file @
6b3c023d
...
...
@@ -40,8 +40,22 @@ CLIENTOPTS="--password hello --ndf results/ndf.json --verify-sends --sendDelay 1
CLIENTUDOPTS
=
"--password hello --ndf results/ndf.json -v
$DEBUGLEVEL
"
CLIENTALTUDOPTS
=
"--alternateUd --altUdCert crustUd.crt --altUdContactFile crustUdContact.bin --altUdAddress 18.198.117.203:11420"
CLIENTID
=
323
# FIXME | As it stands, this needs to be incremented every run. This is so that
# FIXME | the client is registered w/ UD used for testing with a unique username.
# FIXME | Ideally there would be a mechanism to make this repeatable (ie reuse
# FIXME | the username), and the (commented out) removeUser function attempted
# FIXME | to do that by removing the user from UD at the end of every run.
# FIXME | This is accomplished by trap (Bash's equivalent of defer). However,
# FIXME | the function never successfully removes the user. There should be a way
# FIXME | to fix this, but incrementation is left until this is resolved.
# FIXME | Alternative solutions include registering only if a blob file does not
# FIXME | already exist for the client.
CLIENTID
=
352
ACCOUNTNAME
=
crustIntegrationTest
$CLIENTID
echo
"CLIENTID -
$CLIENTID
"
echo
"ACCOUNTNAME -
$ACCOUNTNAME
"
echo
"Note that these values must be incremented each run (see the FIXME)"
mkdir
-p
$SERVERLOGS
mkdir
-p
$GATEWAYLOGS
...
...
@@ -62,7 +76,6 @@ removeUser() {
}
#removeUser
# Ensure removeUser is called whenever this script closes, on success or failure
#trap removeUser EXIT
...
...
@@ -134,8 +147,6 @@ fi
echo
"TESTING CRUST..."
# Register username with UD
# fixme: must find way to make this replicable in integration testing, possibly have
# fixme: a way to remove this account via CLI
CLIENTCMD
=
"timeout 240s ../bin/client ud
$CLIENTUDOPTS
$CLIENTALTUDOPTS
-l
$CLIENTOUT
/client
$CLIENTID
.log -s blob
$CLIENTID
--register
$ACCOUNTNAME
"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client
$CLIENTID
.txt &
PIDVAL
=
$!
...
...
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