Commit d8cc4ede authored by Sebastien Gougeaud's avatar Sebastien Gougeaud Committed by Thomas Leibovici
Browse files

tests: reorder database setup and daemon invocation



Directly inserting resources in the database does not notify the daemon
that new resources are available. The daemon will therefore retrieve
device information once it started processing a request.

It will lead to an issue in a future patch when we check that the
requested number of resources is available before processing a request.
For that reason, and because the database inserts do not involve the
daemon, its invocation is done once the directory setup is done.

Change-Id: I095859e7965b496b63657466c3d1b0361dd34dbf
Signed-off-by: default avatarSebastien Gougeaud <sebastien.gougeaud@cea.fr>
Reviewed-on: https://cws-fleury.labs.ocre.cea.fr/gerrit/6655


Reviewed-by: Linter
Reviewed-by: default avatarQuentin Bouget <quentin.bouget@cea.fr>
Tested-by: default avatarJenkins s8open_nr <s8open_nr@ccc.ocre.cea.fr>
Reviewed-by: default avatarThomas Leibovici <thomas.leibovici@cea.fr>
parent 79408e0e
......@@ -97,13 +97,13 @@ function create_in_file
# start with a clean/empty phobos DB
drop_tables
setup_tables
invoke_daemon
# clean at exit
trap cleanup EXIT
# set start context
create_in_file
dir_setup
insert_dir
invoke_daemon
# clean at exit
trap cleanup EXIT
# put file
$LOG_VALG $phobos -v put $IN_FILE $OBJECT
......
......@@ -103,13 +103,13 @@ function create_in_file
# start with a clean/empty phobos DB
drop_tables
setup_tables
invoke_daemon
# clean at exit
trap cleanup EXIT
# set start context
create_in_file
dir_setup
insert_dir
invoke_daemon
# clean at exit
trap cleanup EXIT
# put file
$LOG_VALG $phobos -v put $IN_FILE $OBJECT
......
......@@ -95,13 +95,13 @@ function create_in_file
# start with a clean/empty phobos DB
drop_tables
setup_tables
invoke_daemon
# clean at exit
trap cleanup EXIT
# set start context
create_in_file
dir_setup
insert_dir
invoke_daemon
# clean at exit
trap cleanup EXIT
# put file
$LOG_VALG $phobos -v put $IN_FILE $OBJECT
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment