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
03f97045
Commit
03f97045
authored
3 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Add preliminary test for client backup
parent
7b1af3ce
No related branches found
No related tags found
3 merge requests
!68
Master merge
,
!23
Feature/ace ventura/account backup
,
!11
Release
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
basice2e/run.sh
+17
-0
17 additions, 0 deletions
basice2e/run.sh
with
17 additions
and
0 deletions
basice2e/run.sh
+
17
−
0
View file @
03f97045
...
@@ -534,6 +534,20 @@ echo "$CLIENTCMD -- $PIDVAL"
...
@@ -534,6 +534,20 @@ echo "$CLIENTCMD -- $PIDVAL"
wait
$PIDVAL
wait
$PIDVAL
wait
$PIDVAL2
wait
$PIDVAL2
echo
"CREATING USERS FOR BACKUP..."
CLIENTCMD
=
"timeout 20s ../bin/client -l
$CLIENTOUT
/client120.log -s blob120 --password hello --ndf results/ndf.json --backupOut
$CLIENTOUT
/client120.backup --backupPass hello --backupJsonOut
$CLIENTOUT
/client120.backup.json"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client120.txt
||
true
&
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL
CLIENTCMD
=
"timeout 20s ../bin/client -l
$CLIENTOUT
/client121.log -s blob121 --password hello --ndf results/ndf.json --backupIn
$CLIENTOUT
/client120.backup --backupPass hello --backupJsonOut
$CLIENTOUT
/client121.backup.json"
eval
$CLIENTCMD
>>
$CLIENTOUT
/client121.txt
||
true
&
PIDVAL
=
$!
echo
"
$CLIENTCMD
--
$PIDVAL
"
wait
$PIDVAL
# Proto user test: client25 and client26 generate a proto user JSON file and close.
# Proto user test: client25 and client26 generate a proto user JSON file and close.
# Both clients are restarted and load from their respective proto user files and attempt to send.
# Both clients are restarted and load from their respective proto user files and attempt to send.
...
@@ -1019,6 +1033,9 @@ then
...
@@ -1019,6 +1033,9 @@ then
cat
$GATEWAYLOGS
/
*
.log |
grep
-a
"ERROR"
|
grep
-av
"context"
|
grep
-av
"certificate"
|
grep
-av
"Failed to read key"
|
grep
-av
"
$IGNOREMSG
"
>
results/gateway-errors.txt
||
true
cat
$GATEWAYLOGS
/
*
.log |
grep
-a
"ERROR"
|
grep
-av
"context"
|
grep
-av
"certificate"
|
grep
-av
"Failed to read key"
|
grep
-av
"
$IGNOREMSG
"
>
results/gateway-errors.txt
||
true
cat
$GATEWAYLOGS
/
*
.log |
grep
-a
"FATAL"
|
grep
-av
"context"
|
grep
-av
"transport is closing"
>>
results/gateway-errors.txt
||
true
cat
$GATEWAYLOGS
/
*
.log |
grep
-a
"FATAL"
|
grep
-av
"context"
|
grep
-av
"transport is closing"
>>
results/gateway-errors.txt
||
true
diff
-aruN
results/gateway-errors.txt noerrors.txt
diff
-aruN
results/gateway-errors.txt noerrors.txt
echo
"Checking backup files for equality..."
diff
-aruN
$CLIENTOUT
/client121.backup.json
$CLIENTOUT
/client120.backup.json
>
backupDiff.txt
diff
-aruN
backupDiff.txt noerrors.txt
fi
fi
echo
"NO OUTPUT ERRORS, SUCCESS!"
echo
"NO OUTPUT ERRORS, SUCCESS!"
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