-
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.
assert that data_column parameters have a valid data_ref
- it needs to be specified in the XML - needs to refer to an existing parameter
- Loading branch information
1 parent
c1bf181
commit d040bfb
Showing
6 changed files
with
59 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
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