Commit 1492e907 authored by Samuel GAIST's avatar Samuel GAIST

[test][docker_execution] Get the database data from the generated prefix

This will grab the version currently used for the test
and in this case with the root_folder entry fixed for
the tests.
parent a2588b98
Pipeline #45186 passed with stage
in 17 minutes and 19 seconds
......@@ -40,7 +40,6 @@ import os
import subprocess # nosec
import nose.tools
import pkg_resources
from beat.core.database import Database
......@@ -48,6 +47,7 @@ from ..dock import Host
from ..execution import DockerExecutor
from . import DOCKER_NETWORK_TEST_ENABLED
from . import network_name
from . import prefix as test_prefix
from . import prefix_folder
from .test_execution import BaseExecutionMixIn
from .utils import DOCKER_TEST_IMAGES
......@@ -153,8 +153,7 @@ class TestDockerExecution(BaseExecutionMixIn):
@slow
def test_databases_sharing(self):
prefix = pkg_resources.resource_filename("beat.backend.python.test", "prefix")
db = Database(prefix, "integers_db/1")
db = Database(test_prefix, "integers_db/1")
nose.tools.assert_true(db.valid, db.errors)
data_sharing_path = db.data["root_folder"]
......
Markdown is supported
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