Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
af8e5290
Commit
af8e5290
authored
12 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
fixing integration tests: Fixing bugs and improving messages
SVN: 26673
parent
010628a1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
integration-tests/common-screening.bash
+1
-1
1 addition, 1 deletion
integration-tests/common-screening.bash
integration-tests/common.bash
+17
-6
17 additions, 6 deletions
integration-tests/common.bash
integration-tests/test-screening.sh
+2
-4
2 additions, 4 deletions
integration-tests/test-screening.sh
with
20 additions
and
11 deletions
integration-tests/common-screening.bash
+
1
−
1
View file @
af8e5290
...
...
@@ -23,7 +23,7 @@ function install_and_run_openbis_server_screening {
startup_openbis_server
$openbis_server_dir
else
restart_openbis
$openbis_server_dir
wait_for_server
wait_for_server
$openbis_server_dir
fi
}
...
...
This diff is collapsed.
Click to expand it.
integration-tests/common.bash
+
17
−
6
View file @
af8e5290
...
...
@@ -334,13 +334,13 @@ function fetch_latest_artifacts_from_cruise_control {
local
last_build
=
"
$HUDSON_ARTIFACTS
/
$proj_name
/lastSuccessful/archive/_main/targets/dist"
if
[
-n
"
$MY_HOST_IP
"
-a
"
$MY_HOST_IP
"
==
"
$CI_HOST_IP
"
]
;
then
local
last
=
`
ls
-1
$CI_HOME
/
$last_build
|
sort
|
tail
-1
`
echo
"Fetching artifacts
for
$proj_name
:
$last
"
local
last
=
`
ls
$CI_HOME
/
$last_build
/
*
.zip
`
echo
"Fetching artifacts
locally from project '
$proj_name
':
\n
$last
"
cp
$CI_HOME
/
$last_build
/
*
.zip
$dest_dir
else
local
list_cmd
=
"ls
-1
$last_build
| sort | tail -1
"
local
list_cmd
=
"ls
$last_build
/*.zip
"
local
last
=
`
echo
$list_cmd
| ssh
$SSH_CRUISE_CONTROL_NAME
-T
`
echo
"Fetching artifacts
for
$proj_name
:
$last
"
echo
"Fetching artifacts
remotely from project '
$proj_name
':
\n
$last
"
scp
$SSH_CRUISE_CONTROL_NAME
:
$last_build
/
*
.zip
$dest_dir
fi
}
...
...
@@ -383,6 +383,7 @@ function check_server_port {
}
function
wait_for_server
{
local
openbis_server_dir
=
$1
echo
-n
"Server starting"
i
=
0
;
while
[
"
`
check_server_port
`
"
==
""
-a
$i
-lt
20
]
;
do
...
...
@@ -391,7 +392,8 @@ function wait_for_server {
let
i
=
$i
+1
;
done
if
[
"
`
check_server_port
`
"
==
""
]
;
then
report_error
"Server could not be started!"
report_error
"openBIS AS could not be started!"
shutdown_openbis_server
$openbis_server_dir
exit
1
else
echo
"...[Done]"
...
...
@@ -437,14 +439,23 @@ function startup_openbis_server {
local
openbis_server_dir
=
$1
call_in_dir bin/startup.sh
$openbis_server_dir
/jetty
wait_for_server
wait_for_server
$openbis_server_dir
}
function
shutdown_openbis_server
{
local
openbis_server_dir
=
$1
if
[
"
`
check_server_port
`
"
!=
""
]
;
then
echo
shutdown openBIS AS by regular shutdown script
$openbis_server_dir
/jetty/bin/shutdown.sh
else
pid
=
`
cat
$openbis_server_dir
/jetty/openbis.pid
`
if
[
$pid
!=
""
]
;
then
echo
shutdown openBIS AS by killing process
$pid
kill
-9
$pid
else
report_error
"couldn't shutdown openBIS AS"
fi
fi
}
...
...
This diff is collapsed.
Click to expand it.
integration-tests/test-screening.sh
+
2
−
4
View file @
af8e5290
...
...
@@ -52,14 +52,13 @@ function install_and_run_openbis_server_screening {
if
[
$install_openbis
==
"true"
]
;
then
rm
-fr
$openbis_server_dir
unzip
-q
-d
$openbis_server_dir
$INSTALL
/openBIS
*
.zip
unzip
-q
-d
$openbis_server_dir
$INSTALL
/openBIS
-server
*
.zip
mv
$openbis_server_dir
/openBIS-server/
*
$openbis_server_dir
rmdir
$openbis_server_dir
/openBIS-server
cp
-v
$TEMPLATE
/
$openbis_server_name
/service.properties
$openbis_server_dir
/service.properties
$openbis_server_dir
/install.sh
$PWD
/
$openbis_server_dir
startup_openbis_server
$openbis_server_dir
wait_for_server
else
restart_openbis
$openbis_server_dir
fi
...
...
@@ -84,7 +83,7 @@ function install_screening_api {
rm
-fr
$API_HCS
mkdir
-p
$API_HCS
# unzip only jar files
unzip
-q
$INSTALL
/screening-
api
*
.zip
-x
*
.zip
-d
$API_HCS
unzip
-q
$INSTALL
/
openBIS-
screening-
API
*
.zip
-x
*
.zip
-d
$API_HCS
}
function
install_screening
{
...
...
@@ -181,7 +180,6 @@ function assertFeatureVectorDef {
# can be called after integration tests are done just to check the API results
function
quick_api_test
{
startup_openbis_server
$OPENBIS_SERVER_HCS
wait_for_server
switch_dss
"on"
datastore_server_screening
test_screening_api
...
...
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