Commit 8861e371 authored by Samuel GAIST's avatar Samuel GAIST

[test] Moved all error related experiments under their own user

This allows to have a cleaner content and a dedicated place for
error related tests.
parent 550bc93a
......@@ -9,7 +9,7 @@
},
"blocks": {
"echo": {
"algorithm": "user/prepare_error/1",
"algorithm": "errors/prepare_error/1",
"inputs": {
"in_data": "in"
},
......
......@@ -9,7 +9,7 @@
},
"blocks": {
"echo": {
"algorithm": "user/setup_error/1",
"algorithm": "errors/setup_error/1",
"inputs": {
"in_data": "in"
},
......
......@@ -9,7 +9,7 @@
},
"blocks": {
"echo": {
"algorithm": "user/integers_echo_error/1",
"algorithm": "errors/integers_echo_error/1",
"inputs": {
"in_data": "in"
},
......
......@@ -9,7 +9,7 @@
},
"blocks": {
"echo": {
"algorithm": "user/integers_echo_error/1",
"algorithm": "errors/integers_echo_error/1",
"inputs": {
"in_data": "in"
},
......
......@@ -27,7 +27,7 @@
}
},
"echo3": {
"algorithm": "user/too_many_nexts/1",
"algorithm": "errors/too_many_nexts/1",
"inputs": {
"in_data": "in",
"in_data2": "in2"
......
......@@ -153,7 +153,7 @@ class TestDockerExecution(BaseExecutionMixIn):
@slow
def test_single_1_prepare_error(self):
result = self.execute("user/user/single/1/prepare_error", [None])
result = self.execute("errors/user/single/1/prepare_error", [None])
nose.tools.eq_(result["status"], 1)
nose.tools.eq_(
......@@ -162,7 +162,7 @@ class TestDockerExecution(BaseExecutionMixIn):
@slow
def test_single_1_setup_error(self):
result = self.execute("user/user/single/1/setup_error", [None])
result = self.execute("errors/user/single/1/setup_error", [None])
nose.tools.eq_(result["status"], 1)
nose.tools.eq_(
......@@ -224,7 +224,7 @@ class TestDockerExecution(BaseExecutionMixIn):
self.build_algorithm("prefix/algorithms/user/%s" % algorithm)
result = self.execute(
"user/user/double/1/cxx_analyzer_error",
"errors/user/double/1/cxx_analyzer_error",
[{"out_data": 42}],
datasets_uid=datasets_uid,
)
......
......@@ -226,7 +226,7 @@ class BaseExecutionMixIn(object):
@slow
def test_single_1_error(self):
result = self.execute("user/user/single/1/single_error", [None])
result = self.execute("errors/user/single/1/single_error", [None])
nose.tools.assert_true(result)
nose.tools.eq_(result["status"], 1)
nose.tools.assert_true(result["user_error"])
......@@ -235,7 +235,7 @@ class BaseExecutionMixIn(object):
@slow
def test_single_1_crash(self):
result = self.execute("user/user/single/1/single_crash", [None])
result = self.execute("errors/user/single/1/single_crash", [None])
nose.tools.assert_true(result)
nose.tools.eq_(result["status"], 1)
nose.tools.assert_true(result["user_error"])
......@@ -244,7 +244,7 @@ class BaseExecutionMixIn(object):
@slow
def test_single_1_db_crash(self):
result = self.execute("user/user/single/1/single_db_crash", [None])
result = self.execute("errors/user/single/1/single_db_crash", [None])
nose.tools.assert_true(result)
nose.tools.assert_not_equal(result["status"], 0)
nose.tools.assert_true(result["user_error"])
......@@ -271,7 +271,7 @@ class BaseExecutionMixIn(object):
@slow
def test_too_many_nexts(self):
result = self.execute("user/user/triangle/1/too_many_nexts", [None])
result = self.execute("errors/user/triangle/1/too_many_nexts", [None])
nose.tools.assert_true(result)
nose.tools.assert_not_equal(result["status"], 0)
nose.tools.assert_true(result["user_error"])
......@@ -393,13 +393,13 @@ class TestLocalExecution(BaseExecutionMixIn):
@slow
def test_single_1_prepare_error(self):
with nose.tools.assert_raises(RuntimeError) as context:
self.execute("user/user/single/1/prepare_error", [None])
self.execute("errors/user/single/1/prepare_error", [None])
nose.tools.assert_true("Algorithm prepare failed" in context.exception)
@slow
def test_single_1_setup_error(self):
with nose.tools.assert_raises(RuntimeError) as context:
self.execute("user/user/single/1/setup_error", [None])
self.execute("errors/user/single/1/setup_error", [None])
nose.tools.assert_true("Algorithm setup failed" in context.exception)
......@@ -427,7 +427,7 @@ class TestSubprocessExecution(BaseExecutionMixIn):
@slow
def test_single_1_prepare_error(self):
result = self.execute("user/user/single/1/prepare_error", [None])
result = self.execute("errors/user/single/1/prepare_error", [None])
nose.tools.eq_(result["status"], 1)
nose.tools.eq_(
......@@ -436,7 +436,7 @@ class TestSubprocessExecution(BaseExecutionMixIn):
@slow
def test_single_1_setup_error(self):
result = self.execute("user/user/single/1/setup_error", [None])
result = self.execute("errors/user/single/1/setup_error", [None])
nose.tools.eq_(result["status"], 1)
nose.tools.eq_(
......
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