Commit Graph
1136 Commits
Author SHA1 Message Date
mvdbeek b5d46aa943 Test workflow module building with dynamic parameters
and parameter references and validators.
2024-09-30 13:48:03 +02:00
John Chilton 0c711dfa11 Merge pull request #18875 from mvdbeek/fix_data_column
[24.1] Fix data_column ref to nested collection
2024-09-24 07:26:07 -04:00
mvdbeek d470587028 Fix data_column ref to nested collection 2024-09-23 18:27:30 +02:00
mvdbeek b70a7637b9 Fix up exception handling, add test 2024-09-23 17:50:10 +02:00
mvdbeek 076133b018 Add test case for updating workflow name of parent workflow 2024-09-12 10:59:24 +02:00
mvdbeek 4667cec17b Add regression test for subworkflow that stops scheduling 2024-08-30 16:46:37 +02:00
John Chilton 5d5f537348 Merge pull request #18734 from mvdbeek/improve_yaml_exception_reporting
[24.1] Catch and display exceptions when importing malformatted yaml workflows
2024-08-24 11:19:54 -04:00
mvdbeek a2c304081a Catch and display exceptions when importing malformatted yaml workflows 2024-08-23 21:56:00 +02:00
mvdbeek 080a0c799b Fail on expected subworkflow output not found
This would currently just fail with an exception in the logs.
I ran into this while manually defining a gxformat2 workflow
and not referencing the right step.
2024-08-23 13:27:47 +02:00
mvdbeek 565911e85f Add test workflow 2024-08-23 13:25:43 +02:00
mvdbeek 2d1680b042 Really do change PJA in test case 2024-08-13 15:22:10 +02:00
Marius van den Beek cf211c1262 Merge pull request #18661 from mvdbeek/fix_extract_workflow_from_history
[24.1] Fix extract workflow from history when implicit collection has no jobs
2024-08-07 15:38:45 +02:00
mvdbeek b30fed83eb Add extraction test for empty implicit collection 2024-08-07 13:41:01 +02:00
mvdbeek dfea749b6c Merge branch 'release_24.0' into release_24.1 2024-08-07 12:58:32 +02:00
mvdbeek 847ac059d5 Test that we don't reset the file size 2024-08-06 17:33:02 +02:00
mvdbeek 9c507f2b2c Merge branch 'release_24.0' into release_24.1 2024-07-25 17:23:48 +02:00
Arash 5beb876b6e Fix encoding issue in ZipstreamWrapper 2024-07-22 18:07:01 +02:00
mvdbeek b403bf8237 Add test case for runtime input map over 2024-07-14 20:53:52 +02:00
mvdbeek b4af9b39e4 Merge branch 'release_24.0' into release_24.1 2024-07-10 15:50:31 +02:00
davelopez 79864d4cad Add test for default view in job list 2024-07-10 11:11:19 +02:00
davelopez 5f48ca780e Update test_jobs.py to add a new test for job list collection view 2024-07-10 09:43:55 +02:00
mvdbeek ee56d70b24 Add test for submitting hdca with deleted elements 2024-07-09 12:32:28 +02:00
mvdbeek 33f27d5456 Merge branch 'release_24.0' into release_24.1 2024-07-01 18:23:55 +02:00
Marius van den Beek 6b8c7f75ba Merge pull request #18456 from arash77/subworkflows_tags_fix
[24.0] Fix subwofklow tags serialization type
2024-06-29 12:02:47 +02:00
Arash 9592520737 Add test 2024-06-28 13:42:08 +02:00
mvdbeek 853ec92d82 Merge branch 'release_24.0' into release_24.1 2024-06-17 22:28:46 +02:00
davelopez 84d6971d5e Use random user in test
Since we cannot remove the user from the group to restore its previous state we need to use a user that will not be part of other tests to avoid unwanted interactions.
2024-06-13 19:15:40 +02:00
davelopez fbf903d1e7 Refactor API test for updating a group 2024-06-13 18:24:18 +02:00
davelopez a8cb547519 Add tests for replacing and removing group users and roles 2024-06-13 16:53:41 +02:00
davelopez d73a82052b Increase API test coverage for group update
The second update does not provide a group_name as we are not changing it. This will  fail with the current code as the update payload model is the same as the create one.
2024-06-12 12:40:48 +02:00
mvdbeek 093dcc8d3d Merge branch 'release_24.0' into release_24.1 2024-05-28 14:34:20 +02:00
Marius van den Beek ae9ea865e1 Merge pull request #18214 from mvdbeek/error_messages_when_accessing_datasets_we_cannot_access
[24.0] Check dataset state when attempting to acces dataset contents
2024-05-24 16:02:33 +02:00
mvdbeek 59803e968e Check dataset state when attempting to acces dataset contents 2024-05-23 18:45:13 +02:00
Nicola Soranzo 8cdca0f343 Revert some requests import changes
introduced in https://github.com/galaxyproject/galaxy/pull/18003 .
In particular, when using requests in the tests to connect to Galaxy
or the ToolShed it's not needed to use the modified headers.

Also:
- Move some imports after conditional imports.
- Fix type annotations in `lib/tool_shed/test/base/populators.py`
- Fix typo bug in `test/unit/util/test_get_url.py`
2024-05-23 15:55:56 +01:00
Ahmed Awan f516679399 add api test for running workflow as anon user 2024-05-22 13:47:19 -05:00
John Chilton 2f43c32fd9 Merge pull request #18003 from mvdbeek/add_galaxy_to_user_agent
Add galaxy to user agent
2024-05-20 12:14:13 -04:00
Marius van den Beek 04485399aa Merge pull request #17366 from jmchilton/cross_product
Enable all-vs-all collection analysis patterns.
2024-05-14 16:17:44 +02:00
Nicola Soranzo 1e9205a05a Merge branch 'release_24.0' into dev 2024-05-10 12:54:44 +01:00
mvdbeek 1e4f406004 Merge branch 'release_23.2' into release_24.0 2024-05-09 13:08:39 +02:00
Nicola Soranzo 40b3151626 Update `test_purge_user` test to use request parameter 2024-05-09 11:21:04 +01:00
mvdbeek 65559a8676 Merge branch 'release_24.0' into dev 2024-05-03 13:48:16 +02:00
Marius van den Beek 2bb61eaa30 Merge pull request #18078 from mvdbeek/better_exception_extract_dataset
[24.0] Improve error message for ``Extract dataset`` tool
2024-05-03 13:40:51 +02:00
mvdbeek acec4f6de3 Improve error message for __EXTRACT_DATASETS__ tool
Provides a reasonable error message to users, instead of the internal
error https://sentry.galaxyproject.org/share/issue/a197159192b64b9db065a762ee5dbbfc/:
```
KeyError: 'Dataset collection has no element_identifier with key 2.'
  File "galaxy/tools/__init__.py", line 1972, in handle_single_execution
    rval = self.execute(
  File "galaxy/tools/__init__.py", line 2069, in execute
    return self.tool_action.execute(
  File "galaxy/tools/actions/model_operations.py", line 88, in execute
    self._produce_outputs(
  File "galaxy/tools/actions/model_operations.py", line 119, in _produce_outputs
    tool.produce_outputs(
  File "galaxy/tools/__init__.py", line 3351, in produce_outputs
    extracted_element = collection[incoming["which"]["identifier"]]
  File "galaxy/model/__init__.py", line 6434, in __getitem__
    raise KeyError(error_message)
```
Also makes the `identifier` parameter explicitly required (it is now
inferred to be optional because text parameters are by default optional
if no validator raises an exception upon validating an empty string).

That prevents
```
KeyError: 'Dataset collection has no element_identifier with key None.'
  File "galaxy/tools/__init__.py", line 1972, in handle_single_execution
    rval = self.execute(
  File "galaxy/tools/__init__.py", line 2069, in execute
    return self.tool_action.execute(
  File "galaxy/tools/actions/model_operations.py", line 88, in execute
    self._produce_outputs(
  File "galaxy/tools/actions/model_operations.py", line 119, in _produce_outputs
    tool.produce_outputs(
  File "galaxy/tools/__init__.py", line 3351, in produce_outputs
    extracted_element = collection[incoming["which"]["identifier"]]
  File "galaxy/model/__init__.py", line 6434, in __getitem__
    raise KeyError(error_message)
```
2024-05-02 12:40:52 +02:00
mvdbeek 0456ff1cfd Merge branch 'release_24.0' into dev 2024-05-02 11:32:44 +02:00
davelopez c6f776dba5 Add tests to ensure history update_time gets updated
We need this after a bulk operation to ensure the client will catch-up with the results (even if no-op) so it knows the operation ended.
2024-04-30 10:43:45 +02:00
Nicola Soranzo 0629908541 Fix new UP031 errors from ruff 0.4.2 2024-04-29 00:09:38 +01:00
John Chilton ac197e7f25 Refactor galaxy.files plugin + config handling.
- Downstream I want a way to load plugins from outside the ConfiguredFileSources class.
- Adds some more typing as I went in there and refactored things.
2024-04-25 13:05:02 -04:00
Nicola Soranzo 1d64120a00 Merge branch 'release_24.0' into dev 2024-04-25 14:32:52 +01:00
Martin Cech 4582704332 Merge pull request #18044 from mvdbeek/ensure_offset_and_limit_not_negative
[24.0] Ensure that offset and limit are never negative
2024-04-23 17:49:04 +02:00
mvdbeek 5545dcd7bc Adjust and enhance job filtering test 2024-04-23 14:00:13 +02:00