Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(
pipeline_type = (
stack_input['pipeline_input']
.get('params', {})
.get('type', DEFAULT_PIPELINE)
.get('pipeline_type', DEFAULT_PIPELINE)
.lower()
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
def test_pipeline_generation_fails_if_pipeline_type_is_not_specified(mock):
stack_input = {"pipeline_input": {"params": {}}}
stack_input["pipeline_input"]["name"] = "test-stack"
stack_input["pipeline_input"]["params"]["type"] = "fail"
stack_input["pipeline_input"]["params"]["pipeline_type"] = "fail"
app = core.App()
with pytest.raises(ValueError):
pipeline_stack = PipelineStack(app, stack_input)
Expand All @@ -35,7 +35,6 @@ def test_pipeline_generation_works_when_no_type_specified(mock):
def test_pipeline_generation_works_when_no_type_specified(mock):
stack_input = {"pipeline_input": {"params": {}}}
stack_input["pipeline_input"]["name"] = "test-stack"
stack_input["pipeline_input"]["params"]["type"] = "Default"

app = core.App()
PipelineStack(app, stack_input)
Expand Down