Commit 586b35f3 authored by Flavio TARSETTI's avatar Flavio TARSETTI

Merge branch '94_improve_execution_hanlding' into 'master'

Improve execution handling

See merge request !114
parents dc387a4b 050b1e39
Pipeline #37849 passed with stages
in 18 minutes and 50 seconds
......@@ -479,7 +479,7 @@ class Host(object):
limitation is not put in place.
cmd = ["docker", "run", "-tid"]
cmd = ["docker", "run", "--tty", "--interactive", "--detach", "--read-only"]
network =
if network:
......@@ -423,7 +423,7 @@ class DockerExecutor(RemoteExecutor):
# ----- (If necessary) Instantiate the docker container that provide the databases
datasets_uid ="datasets_uid", None)
datasets_uid ="datasets_uid", os.geteuid())
network_name ="network_name", "bridge")
databases_infos = {}
......@@ -239,4 +239,13 @@ class TestDockerExecution(BaseExecutionMixIn):
result = self.execute("errors/user/single/1/write_error", [{"out_data": 42}])["status"], 1)"Permission denied" in result["user_error"])"Read-only" in result["user_error"])
def test_user_mismatch_error(self):
result = self.execute(
"errors/user/single/1/write_error", [{"out_data": 42}], datasets_uid=0
)["status"], 1)"Failed to create an user" in result["stderr"])
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment