From daf961ba1d950956ad8868d540489edcf64b98d5 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Fri, 26 Jul 2024 10:50:30 -0400 Subject: [PATCH] Migrate another collection flatten workflow test to workflow test framework. --- ...n_collection_over_execution.gxwf-tests.yml | 19 +++++++++++++++++++ ...flatten_collection_over_execution.gxwf.yml | 17 +++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 lib/galaxy_test/workflow/flatten_collection_over_execution.gxwf-tests.yml create mode 100644 lib/galaxy_test/workflow/flatten_collection_over_execution.gxwf.yml diff --git a/lib/galaxy_test/workflow/flatten_collection_over_execution.gxwf-tests.yml b/lib/galaxy_test/workflow/flatten_collection_over_execution.gxwf-tests.yml new file mode 100644 index 000000000000..5c54212815e9 --- /dev/null +++ b/lib/galaxy_test/workflow/flatten_collection_over_execution.gxwf-tests.yml @@ -0,0 +1,19 @@ +- doc: | + Test to verify collection flatten collection operation mid workflow. + job: + input_fastqs: + collection_type: list + elements: + - identifier: samp1 + content: "0 mycoolline\n1 mysecondline\n" + outputs: + out: + elements: + 'samp1-0': + asserts: + - that: has_text + text: "mycoolline" + 'samp1-1': + asserts: + - that: has_text + text: "mysecondline" diff --git a/lib/galaxy_test/workflow/flatten_collection_over_execution.gxwf.yml b/lib/galaxy_test/workflow/flatten_collection_over_execution.gxwf.yml new file mode 100644 index 000000000000..172eaa7d4b26 --- /dev/null +++ b/lib/galaxy_test/workflow/flatten_collection_over_execution.gxwf.yml @@ -0,0 +1,17 @@ +class: GalaxyWorkflow +inputs: + input_fastqs: collection +outputs: + out: + outputSource: flatten/output +steps: + split_up: + tool_id: collection_split_on_column + in: + input1: input_fastqs + flatten: + tool_id: '__FLATTEN__' + state: + join_identifier: '-' + in: + input: split_up/split_output