Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
dCache
cta
Commits
4274020a
Commit
4274020a
authored
7 years ago
by
Julien Leduc
Browse files
Options
Downloads
Patches
Plain Diff
`run_systemtest.sh` can now run tests with an Oracle database and a Ceph objectstore.
Just use -D and -O options.
parent
19060616
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
continuousintegration/orchestration/run_systemtest.sh
+33
-2
33 additions, 2 deletions
continuousintegration/orchestration/run_systemtest.sh
with
33 additions
and
2 deletions
continuousintegration/orchestration/run_systemtest.sh
+
33
−
2
View file @
4274020a
...
...
@@ -12,13 +12,20 @@ execute_log_rc=0
orchestration_dir
=
${
PWD
}
# keep or drop namespace after systemtest_script? By default drop it.
keepnamespace
=
0
# by default use sqlite DB
useoracle
=
0
# by default use VFS objectstore
useceph
=
0
die
()
{
echo
"
$@
"
1>&2
;
exit
1
;
}
usage
()
{
cat
<<
EOF
1>&2
Usage:
$0
-n <namespace> -s <systemtest_script> [-p <gitlab pipeline ID>] [-k]
Usage:
$0
-n <namespace> -s <systemtest_script> [-p <gitlab pipeline ID>] [-k]
[-O] [-D]
Options:
-k keep namespace after systemtest_script run if successful
-O use Ceph account associated to this node (wipe content before tests), by default use local VFS
-D use Oracle account associated to this node (wipe content before tests), by default use local sqlite DB
Create a kubernetes instance and launch the system test script specified.
Makes sure the created instance is cleaned up at the end and return the status of the system test.
...
...
@@ -31,7 +38,7 @@ exit 1
# always delete DB and OBJECTSTORE for tests
CREATE_OPTS
=
"-D -O"
while
getopts
"n:s:p:k"
o
;
do
while
getopts
"n:s:p:k
DO
"
o
;
do
case
"
${
o
}
"
in
s
)
systemtest_script
=
${
OPTARG
}
...
...
@@ -46,6 +53,12 @@ while getopts "n:s:p:k" o; do
k
)
keepnamespace
=
1
;;
D
)
useoracle
=
1
;;
O
)
useceph
=
1
;;
*
)
usage
;;
...
...
@@ -69,6 +82,24 @@ if [ ! -z "${error}" ]; then
exit
1
fi
if
[
$useoracle
==
1
]
;
then
database_configmap
=
$(
find /opt/kubernetes/CTA/ |
grep
yaml
$
|
grep
database |
head
-1
)
if
[
"-
${
database_configmap
}
-"
==
"--"
]
;
then
die
"Oracle database requested but not database configuration was found."
else
CREATE_OPTS
=
"
${
CREATE_OPTS
}
-d
${
database_configmap
}
"
fi
fi
if
[
$useceph
==
1
]
;
then
objectstore_configmap
=
$(
find /opt/kubernetes/CTA/ |
grep
yaml
$
|
grep
objectstore |
head
-1
)
if
[
"-
${
objectstore_configmap
}
-"
==
"--"
]
;
then
die
"Ceph objecstore requested but not objectstore configuration was found."
else
CREATE_OPTS
=
"
${
CREATE_OPTS
}
-o
${
objectstore_configmap
}
"
fi
fi
log_dir
=
"
${
orchestration_dir
}
/../../pod_logs/
${
namespace
}
"
mkdir
-p
${
log_dir
}
...
...
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