Skip to content
Snippets Groups Projects
Commit d66af3bb authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][prefix] Make all databases root folder point to a valid location

This will allow the docker tests to more easily setup and
cleanup its content.

While the folder is not used as these databases are generative
only, docker will create it anyway as mounting a non-exisiting
folder will trigger its creation with the daemon ownership
applied.
parent 777396f1
No related branches found
Tags v1.7.9
1 merge request!78Make all test databases root folder point to a valid location
Pipeline #44936 passed
Showing
with 14 additions and 10 deletions
......@@ -36,3 +36,7 @@
import pkg_resources
prefix = pkg_resources.resource_filename(__name__, "prefix")
# This variable should be used to generate the appropriate folder when dealing with
# docker execution.
BBP_DATABASE_ROOT_FOLDER = "/tmp/beat_backend_python_test" # nosec
{
"root_folder": "/tmp/foo/bar",
"root_folder": "/tmp/beat_backend_python_test",
"protocols": [
{
"name": "protocol",
......
{
"root_folder": "/tmp/foo/bar",
"root_folder": "/tmp/beat_backend_python_test",
"protocols": [
{
"name": "test_duplicate_key",
......
{
"root_folder": "/tmp/path/not/set",
"root_folder": "/tmp/beat_backend_python_test",
"protocols": [
{
"name": "double",
......
{
"schema_version": 2,
"root_folder": "/tmp/path/not/set",
"root_folder": "/tmp/beat_backend_python_test",
"protocols": [
{
"name": "double",
......
{
"root_folder": "/tmp/path/not/set",
"root_folder": "/tmp/beat_backend_python_test",
"environment": {
"name": "Example databases",
"version": "1.4.0"
......
......@@ -4,7 +4,7 @@
"name": "Example databases",
"version": "1.4.0"
},
"root_folder": "/tmp/path/not/set",
"root_folder": "/tmp/beat_backend_python_test",
"protocols": [
{
"name": "double",
......
{
"root_folder": "/tmp/path/not/set",
"root_folder": "/tmp/beat_backend_python_test",
"protocols": [
{
"name": "keyword",
......
{
"root_folder": "/tmp/foo/bar",
"root_folder": "/tmp/beat_backend_python_test",
"protocols": [
{
"name": "protocol",
......
{
"root_folder": "/tmp/foo/bar",
"root_folder": "/tmp/beat_backend_python_test",
"protocols": [
{
"name": "test_with_parameters",
......
{
"root_folder": "/tmp/foo/bar",
"root_folder": "/tmp/beat_backend_python_test",
"protocols": [
{
"name": "test_with_parameters",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment