mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
Unfortunately you can select an invalid value (in the API, not the UI) and Galaxy will replace the invalid value with the first valid value.
32 lines
1021 B
XML
32 lines
1021 B
XML
<tool id="add_remove_value" name="Add and remove values" version="0.1.0">
|
|
<command detect_errors="exit_code"><![CDATA[
|
|
echo $select_value > '$out_file'
|
|
]]></command>
|
|
<inputs>
|
|
<param name="select_value" type="select">
|
|
<options from_data_table="test_fasta_indexes">
|
|
<!-- contains hg18 and hg19 -->
|
|
<filter type="remove_value" value="hg18"/>
|
|
<!-- This doesn't work as we don't have the remaining values like name and path
|
|
<filter type="add_value" value="hg20"/>
|
|
-->
|
|
</options>
|
|
</param>
|
|
</inputs>
|
|
<outputs>
|
|
<data name="out_file"/>
|
|
</outputs>
|
|
<tests>
|
|
<test>
|
|
<output name="out_file">
|
|
<assert_contents>
|
|
<has_line line="hg19" />
|
|
</assert_contents>
|
|
</output>
|
|
</test>
|
|
<test expect_failure="true">
|
|
<param select_value="hg18"/>
|
|
</test>
|
|
</tests>
|
|
</tool>
|