From d3b5fac7516408c7d86e65b2899b7c6a8c9887e8 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Wed, 15 Nov 2017 13:45:40 -0500 Subject: [PATCH] Test renaming multiple different outputs in workflows. Attempting to exercise a bug reported by @lparsons. --- test/api/test_workflows.py | 23 +++++++++++++++++++++++ test/functional/tools/create_2.xml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/test/api/test_workflows.py b/test/api/test_workflows.py index f3c45c03368..f1583fd1bd2 100644 --- a/test/api/test_workflows.py +++ b/test/api/test_workflows.py @@ -1355,6 +1355,29 @@ test_data: name = content["name"] assert name == "my new name", name + @skip_without_tool("create_2") + def test_run_rename_multiple_outputs(self): + with self.dataset_populator.test_history() as history_id: + self._run_jobs(""" +class: GalaxyWorkflow +inputs: [] +steps: + - tool_id: create_2 + state: + sleep_time: 0 + outputs: + out_file1: + rename: "my new name" + out_file2: + rename: "my other new name" +test_data: {} +""", history_id=history_id) + details1 = self.dataset_populator.get_history_dataset_details(history_id, hid=1, wait=True, assert_ok=True) + details2 = self.dataset_populator.get_history_dataset_details(history_id, hid=2) + + assert details1["name"] == "my new name" + assert details2["name"] == "my other new name" + @skip_without_tool("cat") def test_run_rename_based_on_input(self): history_id = self.dataset_populator.new_history() diff --git a/test/functional/tools/create_2.xml b/test/functional/tools/create_2.xml index f9827846f64..f04bab7f4a9 100644 --- a/test/functional/tools/create_2.xml +++ b/test/functional/tools/create_2.xml @@ -1,5 +1,5 @@ - '$out_file1'; echo "2" > '$out_file2'; sleep '$sleep_time';