From 2f41d1a6ae01d233d8a74605ab25919c50c4d1e3 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Sat, 13 Jul 2024 16:32:31 -0400 Subject: [PATCH] Test to verify/document behavior of mapping over multi-selects. --- .../multi_select_mapping.gxwf-tests.yml | 27 +++++++++++++++++++ .../workflow/multi_select_mapping.gxwf.yml | 14 ++++++++++ 2 files changed, 41 insertions(+) create mode 100644 lib/galaxy_test/workflow/multi_select_mapping.gxwf-tests.yml create mode 100644 lib/galaxy_test/workflow/multi_select_mapping.gxwf.yml diff --git a/lib/galaxy_test/workflow/multi_select_mapping.gxwf-tests.yml b/lib/galaxy_test/workflow/multi_select_mapping.gxwf-tests.yml new file mode 100644 index 000000000000..065849a34082 --- /dev/null +++ b/lib/galaxy_test/workflow/multi_select_mapping.gxwf-tests.yml @@ -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' diff --git a/lib/galaxy_test/workflow/multi_select_mapping.gxwf.yml b/lib/galaxy_test/workflow/multi_select_mapping.gxwf.yml new file mode 100644 index 000000000000..f810d022fb1a --- /dev/null +++ b/lib/galaxy_test/workflow/multi_select_mapping.gxwf.yml @@ -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