Skip to content

Commit

Permalink
Test to verify/document behavior of mapping over multi-selects.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Jul 14, 2024
1 parent 316fb48 commit 97ed348
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
27 changes: 27 additions & 0 deletions lib/galaxy_test/workflow/multi_select_mapping.gxwf-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
- doc: |
Test to verify that mapping a list of a multi-select parameter maps over the job.
Ideally there would be a way to specify that the list should be reduced into the
parameter. It might work to have an expression tool to combine the list into a
string.
job:
input:
type: collection
collection_type: list
elements:
- identifier: the_example_2
content: '"ex2"'
ext: 'expression.json'
- identifier: the_example_5
content: '"ex5"'
ext: 'expression.json'
outputs:
output:
elements:
the_example_2:
asserts:
- that: has_text
text: 'ex2'
the_example_5:
asserts:
- that: has_text
text: 'ex5'
14 changes: 14 additions & 0 deletions lib/galaxy_test/workflow/multi_select_mapping.gxwf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
class: GalaxyWorkflow
inputs:
input:
type: collection
collection_type: list
outputs:
output:
outputSource: map_over_multi_select/output2
steps:
map_over_multi_select:
tool_id: multi_select
in:
select_ex: input
select_optional: input

0 comments on commit 97ed348

Please sign in to comment.