From 1c2bfb9459ebd156673994492f84fc4aa0fc85ea Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Wed, 2 Oct 2024 20:05:39 +0200 Subject: [PATCH] Test filter null tool in workflow --- .../workflow/filter_null.gxwf-tests.yml | 32 +++++++++++++++++++ lib/galaxy_test/workflow/filter_null.gxwf.yml | 22 +++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 lib/galaxy_test/workflow/filter_null.gxwf-tests.yml create mode 100644 lib/galaxy_test/workflow/filter_null.gxwf.yml diff --git a/lib/galaxy_test/workflow/filter_null.gxwf-tests.yml b/lib/galaxy_test/workflow/filter_null.gxwf-tests.yml new file mode 100644 index 00000000000..7572b8c5c62 --- /dev/null +++ b/lib/galaxy_test/workflow/filter_null.gxwf-tests.yml @@ -0,0 +1,32 @@ +- doc: | + Test to verify filter null tool keeps non-null datasets. + job: + input_collection: + collection_type: list + elements: + - identifier: first + content: "abc" + when: + value: true + type: raw + outputs: + out: + class: Collection + collection_type: list + element_count: 1 +- doc: | + Test to verify filter null tool discards null datasets. + job: + input_collection: + collection_type: list + elements: + - identifier: first + content: "abc" + when: + value: false + type: raw + outputs: + out: + class: Collection + collection_type: list + element_count: 0 diff --git a/lib/galaxy_test/workflow/filter_null.gxwf.yml b/lib/galaxy_test/workflow/filter_null.gxwf.yml new file mode 100644 index 00000000000..b2e35edc36c --- /dev/null +++ b/lib/galaxy_test/workflow/filter_null.gxwf.yml @@ -0,0 +1,22 @@ +class: GalaxyWorkflow +inputs: + input_collection: + type: data_collection + when: + type: boolean +outputs: + out: + outputSource: filter_null/output +steps: + cat: + tool_id: cat + in: + input1: + source: input_collection + when: + source: when + when: $(inputs.when) + filter_null: + tool_id: '__FILTER_NULL__' + in: + input: cat/out_file1