Skip to content
Snippets Groups Projects
Commit 299ff17f authored by Theo Lesage's avatar Theo Lesage Committed by Theo Lesage
Browse files

Fix broken tests

parent 2d5f2eb5
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !2304. Comments created here will be created in the context of that merge request.
......@@ -224,6 +224,7 @@ class TaskRestart(ProcessACLMixin, CreateAPIView):
detail="Task's state must be in a final state to be restarted."
)
# TODO Check the original_task_id field directly once it is implemented
# https://gitlab.teklia.com/arkindex/frontend/-/issues/1383
_, *suffix = task.slug.rsplit("_old", 1)
if suffix:
......
......@@ -74,6 +74,7 @@ class TestAPI(FixtureAPITestCase):
"slug": "initialisation",
"state": "unscheduled",
"parents": [],
"original_task_id": None,
"logs": "Failed successfully",
"full_log": "http://somewhere",
"extra_files": {},
......@@ -157,6 +158,7 @@ class TestAPI(FixtureAPITestCase):
"slug": "initialisation",
"state": "unscheduled",
"parents": [],
"original_task_id": None,
"logs": "Failed successfully",
"full_log": "http://somewhere",
"extra_files": {},
......@@ -198,6 +200,7 @@ class TestAPI(FixtureAPITestCase):
"slug": "initialisation",
"state": "unscheduled",
"parents": [],
"original_task_id": None,
"logs": "Failed successfully",
"full_log": "http://somewhere",
"extra_files": {},
......@@ -657,6 +660,7 @@ class TestAPI(FixtureAPITestCase):
"full_log": "http://somewhere",
"gpu": None,
"logs": "Task has been restarted",
"original_task_id": str(self.task2.id),
"parents": [str(self.task1.id)],
"run": 0,
"shm_size": None,
......@@ -721,6 +725,7 @@ class TestAPI(FixtureAPITestCase):
"full_log": "http://somewhere",
"gpu": None,
"logs": "Task has been restarted",
"original_task_id": str(self.task2.id),
"parents": [str(self.task1.id)],
"run": 0,
"shm_size": None,
......
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