Files
galaxy/test/functional/tools/top_level_data.xml
T
mvdbeek 5d083a657a Always attempt to build tool request for new API endpoint
Previously, the structured request needed by POST /api/jobs was only
built for tools with profile >= 24.2. For older tools case_state() was
never called, leaving request=None and making the new endpoint unusable.

The profile check was about validation strictness, not a fundamental
limitation: case_state(validate=False) can build a valid request for
any tool. Now we always attempt it, using validate=True for modern tools
and validate=False for older ones. Failures populate
request_unavailable_reason so "if_needed" can fall back gracefully.
2026-06-15 08:56:03 +02:00

38 lines
1.4 KiB
XML

<tool id="top_level_data" name="top_level_data" version="0.1.0">
<command><![CDATA[
cat '${f1}' >> '$out1' &&
echo '${library.f2}' >> '$out2' ## cannot use just f2 here
]]></command>
<inputs>
<conditional name="library">
<param name="type" type="select" label="Parameter Settings">
<option value="no">Use defaults</option>
<option value="yes">Full parameter list</option>
</param>
<when value="yes">
<param name="f1" type="data" format="txt" label="Data 1" />
<param name="f2" type="text" label="Text 1" />
</when>
<when value="no">
<param name="f1" type="data" format="txt" label="Data 1" />
<param name="f2" type="text" label="Text 1" />
</when>
</conditional>
</inputs>
<outputs>
<data name="out1" format="txt" />
<data name="out2" format="txt" />
</outputs>
<tests>
<test>
<conditional name="library">
<param name="type" value="no"/>
<param name="f1" value="simple_line.txt" />
<param name="f2" value="This is a line of text." />
</conditional>
<output name="out1" file="simple_line.txt" />
<output name="out2" file="simple_line.txt" />
</test>
</tests>
</tool>