forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request galaxyproject#19219 from mvdbeek/required_paramete…
…rs_with_default [24.2] Fix default value handling for parameters connected to required parameters
- Loading branch information
Showing
14 changed files
with
140 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -617,6 +617,7 @@ | |
int_input: | ||
type: integer | ||
default: 3 | ||
optional: true | ||
steps: | ||
random: | ||
tool_id: random_lines1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
- doc: | | ||
Test that default value doesn't need to be supplied | ||
job: {} | ||
outputs: | ||
out: | ||
class: File | ||
asserts: | ||
- that: has_text | ||
text: "1" | ||
- doc: | | ||
Test that null is replaced with default value (follows https://www.commonwl.org/v1.2/Workflow.html#WorkflowInputParameter) | ||
job: | ||
required_int_with_default: | ||
type: raw | ||
value: null | ||
outputs: | ||
out: | ||
class: File | ||
asserts: | ||
- that: has_text | ||
text: "1" | ||
- doc: | | ||
Test that empty string is not replaced and fails | ||
expect_failure: true | ||
job: | ||
required_int_with_default: | ||
type: raw | ||
value: "" | ||
outputs: | ||
out: | ||
class: File | ||
asserts: | ||
- that: has_text | ||
text: "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
class: GalaxyWorkflow | ||
inputs: | ||
required_int_with_default: | ||
type: int | ||
default: 1 | ||
outputs: | ||
out: | ||
outputSource: integer_default/out_file1 | ||
steps: | ||
integer_default: | ||
tool_id: integer_default | ||
tool_state: | ||
input1: 0 | ||
input2: 0 | ||
in: | ||
input3: | ||
source: required_int_with_default |
34 changes: 34 additions & 0 deletions
34
lib/galaxy_test/workflow/default_values_optional.gxwf-tests.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
- doc: | | ||
Test that default value doesn't need to be supplied | ||
job: {} | ||
outputs: | ||
out: | ||
class: File | ||
asserts: | ||
- that: has_text | ||
text: "1" | ||
- doc: | | ||
Test that null is replaced with default value (follows https://www.commonwl.org/v1.2/Workflow.html#WorkflowInputParameter) | ||
job: | ||
optional_int_with_default: | ||
type: raw | ||
value: null | ||
outputs: | ||
out: | ||
class: File | ||
asserts: | ||
- that: has_text | ||
text: "1" | ||
- doc: | | ||
Test that empty string is not replaced and fails | ||
expect_failure: true | ||
job: | ||
optional_int_with_default: | ||
type: raw | ||
value: "" | ||
outputs: | ||
out: | ||
class: File | ||
asserts: | ||
- that: has_text | ||
text: "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
class: GalaxyWorkflow | ||
inputs: | ||
optional_int_with_default: | ||
type: int | ||
default: 1 | ||
optional: true | ||
outputs: | ||
out: | ||
outputSource: integer_default/out_file1 | ||
steps: | ||
integer_default: | ||
tool_id: integer_default | ||
tool_state: | ||
input1: 0 | ||
input2: 0 | ||
in: | ||
input3: | ||
source: optional_int_with_default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters