Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.cmdline
Commits
183bd676
Commit
183bd676
authored
Mar 16, 2020
by
Samuel GAIST
Browse files
[dataformats] Remove dependency check and add push failure test
The check is done prior to the dependency list enumeration.
parent
9f8eaddd
Changes
2
Hide whitespace changes
Inline
Side-by-side
beat/cmdline/dataformats.py
View file @
183bd676
...
...
@@ -39,8 +39,6 @@ import click
from
beat.core
import
dataformat
from
beat.backend.python.dataformat
import
DataFormat
from
.
import
common
from
.
import
commands
...
...
@@ -135,9 +133,7 @@ def pull_impl(webapi, prefix, names, force, indentation, cache):
def
get_dependencies
(
ctx
,
asset_name
):
prefix
=
ctx
.
meta
[
"config"
].
path
df
=
DataFormat
(
prefix
,
asset_name
)
if
not
df
.
valid
:
raise
RuntimeError
(
"Invalid dataformat: {}"
.
format
(
df
.
errors
))
df
=
dataformat
.
DataFormat
(
prefix
,
asset_name
)
dependencies
=
{}
...
...
beat/cmdline/test/test_dataformats.py
View file @
183bd676
...
...
@@ -54,6 +54,7 @@ class TestOnline(core.OnlineAssetTestCase):
"fork"
:
"user/forked_obj/1"
,
"push"
:
"user/composed/1"
,
"not_owner_push"
:
"system/chart/1"
,
"push_invalid"
:
"errors/description_too_long/1"
,
}
def
_modify_asset
(
self
,
asset_name
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment