Skip to content

Commit

Permalink
A test case for running tool on linnked dataset.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Nov 13, 2024
1 parent 5e00ffe commit 272e9ff
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/galaxy/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@
"level": "INFO",
"qualname": "watchdog.observers.inotify_buffer",
},
"py.warnings": {
"level": "ERROR",
"qualname": "py.warnings",
},
"celery.utils.functional": {
"level": "INFO",
"qualname": "celery.utils.functional",
},
},
"filters": {
"stack": {
Expand Down
12 changes: 12 additions & 0 deletions test/integration/test_remote_files_posix.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def _assert_access_forbidden_response(self, response):

class TestPreferLinksPosixFileSourceIntegration(PosixFileSourceSetup, integration_util.IntegrationTestCase):
dataset_populator: DatasetPopulator
framework_tool_and_types = True

@classmethod
def handle_galaxy_config_kwds(cls, config):
Expand Down Expand Up @@ -146,3 +147,14 @@ def test_links_by_default(self):
assert dataset.external_filename.endswith("/root/a")
assert os.path.exists(dataset.external_filename)
assert open(dataset.external_filename).read() == "a\n"
payload = self.dataset_populator.run_tool(
tool_id="cat",
inputs={
"input1": {"src": "hda", "id": new_dataset["id"]},
},
history_id=history_id,
)
derived_dataset = payload["outputs"][0]
self.dataset_populator.wait_for_history(history_id, assert_ok=True)
derived_content = self.dataset_populator.get_history_dataset_content(history_id, dataset=derived_dataset)
assert derived_content.strip() == "a"

0 comments on commit 272e9ff

Please sign in to comment.