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

[algorithms] Remove dependency check and add push failure test

The check is done prior to the dependency list enumeration.
parent 17a3cea9
No related branches found
No related tags found
1 merge request!88Add push failure check
...@@ -45,7 +45,6 @@ from beat.core.execution import DockerExecutor ...@@ -45,7 +45,6 @@ from beat.core.execution import DockerExecutor
from beat.core.dock import Host from beat.core.dock import Host
from beat.core import hash from beat.core import hash
from beat.backend.python.algorithm import Storage as AlgorithmStorage from beat.backend.python.algorithm import Storage as AlgorithmStorage
from beat.backend.python.algorithm import Algorithm
from . import common from . import common
from . import commands from . import commands
...@@ -330,9 +329,7 @@ def execute_impl(prefix, cache, instructions_file): ...@@ -330,9 +329,7 @@ def execute_impl(prefix, cache, instructions_file):
def get_dependencies(ctx, asset_name): def get_dependencies(ctx, asset_name):
prefix = ctx.meta["config"].path prefix = ctx.meta["config"].path
alg = Algorithm(prefix, asset_name) alg = algorithm.Algorithm(prefix, asset_name)
if not alg.valid:
raise RuntimeError("Invalid algortihm: {}".format(alg.errors))
dependencies = {} dependencies = {}
......
...@@ -59,6 +59,7 @@ class TestOnline(core.OnlineAssetTestCase): ...@@ -59,6 +59,7 @@ class TestOnline(core.OnlineAssetTestCase):
"fork": "user/forked_obj/1", "fork": "user/forked_obj/1",
"push": "user/db_input_loop_processor/1", "push": "user/db_input_loop_processor/1",
"not_owner_push": "v1/integers_add/1", "not_owner_push": "v1/integers_add/1",
"push_invalid": "errors/description_too_long/1",
} }
def _modify_asset(self, asset_name): def _modify_asset(self, asset_name):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment