From 21fb9be7fd327769925e5078335cca982efc6690 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Fri, 27 Oct 2023 10:56:05 +0200 Subject: [PATCH] Add regression test for #16931 --- lib/galaxy_test/api/test_workflows.py | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/lib/galaxy_test/api/test_workflows.py b/lib/galaxy_test/api/test_workflows.py index 6de9b4f7d79b..8dba0706a3fe 100644 --- a/lib/galaxy_test/api/test_workflows.py +++ b/lib/galaxy_test/api/test_workflows.py @@ -5354,6 +5354,39 @@ def test_run_build_list_change_datatype_collection_output(self): # Also check that we don't overwrite the original HDA's datatype assert details2["elements"][0]["object"]["file_ext"] == "fasta" + @skip_without_tool("__EXTRACT_DATASET__") + def test_run_build_list_change_datatype_new_metadata_file_parameter(self): + # Regression test for changing datatype to a datatype with a MetadataFileParameter + with self.dataset_populator.test_history() as history_id: + self._run_workflow( + """ +class: GalaxyWorkflow +inputs: + input1: data +steps: + build_list: + tool_id: __BUILD_LIST__ + in: + datasets_0|input: input1 + extract_dataset: + tool_id: __EXTRACT_DATASET__ + in: + input: build_list/output + outputs: + output: + change_datatype: vcf_bgzip +""", + test_data=""" +input1: + value: test.vcf.gz + type: File + file_type: vcf_bgzip +""", + history_id=history_id, + assert_ok=True, + wait=True, + ) + @skip_without_tool("__BUILD_LIST__") def test_run_build_list_rename_collection_output(self): with self.dataset_populator.test_history() as history_id: