-
Notifications
You must be signed in to change notification settings - Fork 1k
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 #18949 from bernt-matthias/data_col_ref
Assert that `data_column` parameters have a valid `data_ref`
- Loading branch information
Showing
7 changed files
with
68 additions
and
3 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
19 changes: 19 additions & 0 deletions
19
lib/tool_shed/test/test_data/repos/missing_data_ref/missing_data_ref.xml
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,19 @@ | ||
<tool id="missing_data_ref" name="missing_data_ref" version="1.0" profile="23.0"> | ||
<requirements> | ||
</requirements> | ||
<command detect_errors="aggressive"> | ||
<![CDATA[ | ||
echo $column | ||
]]> | ||
</command> | ||
<inputs> | ||
<param name="input" type="data" format="tabular"/> | ||
<param name="column" type="data_column" /> | ||
</inputs> | ||
<outputs> | ||
<data name="output" format="text"/> | ||
</outputs> | ||
<tests> | ||
</tests> | ||
<help/> | ||
</tool> |
19 changes: 19 additions & 0 deletions
19
lib/tool_shed/test/test_data/repos/wrong_data_ref/wrong_data_ref.xml
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,19 @@ | ||
<tool id="wrong_data_ref" name="wrong_data_ref" version="1.0" profile="23.0"> | ||
<requirements> | ||
</requirements> | ||
<command detect_errors="aggressive"> | ||
<![CDATA[ | ||
echo $column | ||
]]> | ||
</command> | ||
<inputs> | ||
<param name="input" type="data" format="tabular"/> | ||
<param name="column" type="data_column" data_ref="nonsense" /> | ||
</inputs> | ||
<outputs> | ||
<data name="output" format="text"/> | ||
</outputs> | ||
<tests> | ||
</tests> | ||
<help/> | ||
</tool> |
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