Commit Graph
577 Commits
Author SHA1 Message Date
mvdbeek 9b42032098 Fill in default state for test_optional_workflow_output 2018-11-05 13:09:31 +01:00
M Bernt 4e098c5d52 tests: add parameter to output_filter 2018-11-01 17:23:17 +01:00
John Chilton f3da0864b4 Test case for regression #6856. 2018-10-12 09:03:12 -04:00
mvdbeek ab660686c2 Add test for single and multi-input identifiers
test_identifier_map_over_input_in_conditional fails at the
moment (same issue as in https://github.com/galaxyproject/galaxy/issues/6182)
2018-09-28 19:01:28 +02:00
mvdbeek 70e325574c Use with statement for all file uploads 2018-09-27 22:20:00 +02:00
mvdbeek 53b062f804 Add bam upload test
`test_upload_bam_file` fails on release_18.09 but passes on 18.05.
2018-09-27 20:31:33 +02:00
John Chilton 7eac08979b Undo auto-propagation of group tags.
@mvdbeek and I discussed this in the Galaxy project gitter a few weeks ago and decided the propagation is too aggressive and should likely be done manually at the end of a workflow for now - using for instance the set tags collection operation tool.
2018-09-20 14:15:29 -04:00
Martin Cech 3072889905 Merge branch 'release_18.05' into release_18.09 2018-09-20 11:48:45 -04:00
Dannon 02c177152b Merge pull request #6740 from mvdbeek/backport_tool_version_select_fixes
[18.05] Backport tool version select fixes
2018-09-20 09:41:15 -04:00
Nicola Soranzo 5eb7e5ce6f Merge branch 'release_18.05' into release_18.09 2018-09-20 09:49:39 +01:00
mvdbeek f5dcf60561 Fix and test anonymous error reports
Fixes https://github.com/galaxyproject/galaxy/issues/6675
2018-09-19 21:00:50 +02:00
mvdbeek 3017568e77 Drop unnecessary history in test_show_with_wrong_tool_version_in_tool_id test 2018-09-19 16:40:59 +02:00
mvdbeek 5635a05a2a Look up collection_type if collection_type_source is set
We do this in the wf-editor and in the backend, so this works for
subworkflows. This should make quite some tools more usable in a
workflow scenario. Should fix
- https://github.com/galaxyproject/galaxy/issues/6514
- https://github.com/galaxyproject/galaxy/issues/6012
- https://github.com/galaxyproject/galaxy/issues/6569
- https://github.com/galaxyproject/galaxy/issues/1889
and perhaps more issues related to this.
2018-09-19 09:48:25 -04:00
mvdbeek f6f526a0a5 Use tool_version instead of version parameter
To be consistent with other routes that accept this parameter.
2018-09-19 15:39:00 +02:00
mvdbeek 806beaca9b Test that newest version will be returned if tool id or version don't match 2018-09-19 15:39:00 +02:00
John Chilton 376516610e Bugfix - missing tests for data source sniffing.
Ensure #6334 is fixed I think.
2018-09-18 11:29:58 -04:00
Dannon d349d4763d Merge pull request #6678 from jmchilton/subworkflow_parameters
Workflow replacement parameters polish.
2018-09-10 15:28:05 -04:00
Nicola Soranzo 64bb339a31 Merge pull request #6641 from martenson/rename-and-document-config-value
document config for sniffing compressed files, enable by default
2018-09-08 00:32:08 +01:00
John Chilton 8f979b4da1 Workflow replacement parameters polish.
- Selenium test case demonstrating their use in simple workflows.
- API test demonstrating they work with nested workflows from the run perspective.
- Update run variant of workflow to_dict to parse out replacement parameters to display on the backend and tweak the client to just accept these.
- Parse out replacement parameters for subworkflows recursively, include in new run output attribute - nested workflow replacement parameters work now.
- Selenium test case demosntrating subworkflow replacement parameters are rendered and used when submitted.
2018-09-07 11:22:20 -04:00
Marius van den Beek da18624067 Merge pull request #6664 from jmchilton/runtime_parameters
Implement runtime parameters for subworkflows.
2018-09-07 10:26:17 +02:00
John Chilton fc75d4f9fb Test case - verify step parameters replace after workflow invoke pauses. 2018-09-06 14:43:22 -04:00
John Chilton 7806a84d1c Implement runtime parameters in nested workflows. 2018-09-06 14:43:22 -04:00
John Chilton 6a266a19a9 More tests for runtime workflow parameters. 2018-09-06 09:02:55 -04:00
mvdbeek 64652c28cf Drop wait from cached job tests 2018-09-05 12:16:08 +02:00
Martin Cech 9b5724d62d add back the unstable flags for bed.gz datasets
I expect the datatypes_conf.xml bed compress default will change in near future
2018-08-30 13:09:32 -04:00
Martin Cech 4a21ac30ea Merge branch 'rename-and-document-config-value' of github.com:martenson/galaxy into rename-and-document-config-value 2018-08-30 10:41:44 -04:00
Martin Cech e1b3236802 fix tests for the bed.gz dtaatype
compressed beds are not part of the datatypes_conf.xml.sample
2018-08-30 10:40:24 -04:00
mvdbeek 7c339c9bff Use uses_test_history for selected upload tests 2018-08-29 22:41:55 +02:00
Martin Cech 0acdc8a1a3 adjust test definitions for compressed handling
so it tests the new defaults
2018-08-29 13:54:06 -04:00
mvdbeek cfd8379917 Send copy_elements=True in new create collection test 2018-08-26 22:13:50 +02:00
mvdbeek b13cce0a13 Revert "Adjust API tests to copying HDAs when creating collection"
This reverts commit f120390a63700ff0ec6c09185aad26b91ad8f842.
2018-08-26 22:13:50 +02:00
mvdbeek 34cfdcac6a Test for proper 403 response
Coincidentally fixed by e013f2fbd1596b103ef195afcba8cbd787c49b33.
2018-08-26 22:13:50 +02:00
mvdbeek a9cb290754 Adjust API tests to copying HDAs when creating collection 2018-08-26 22:13:50 +02:00
mvdbeek 91438996df Test creation of collection from existing dataset, with a new tag 2018-08-26 22:13:50 +02:00
Marius van den Beek 0e69ca8bfb Merge pull request #6545 from jmchilton/rule_builder_use_group_tags
Allow Consuming Tags in the Apply Rules Tool
2018-08-26 11:17:14 +02:00
Dannon 107c89a0a9 Merge pull request #6580 from jmchilton/wf_invocation_update
Add API endpoint to fetch a history's workflow invocations.
2018-08-24 11:41:25 -04:00
John Chilton 3879a01949 Add API endpoint to index all invocations for a user or history.
Refactor toward managers to allow unified serialization of invocations and such. Add test case.
2018-08-24 10:00:47 -04:00
Helena Rasche 53b8f08752 Merge pull request #6568 from jmchilton/dataset-permissions-api-2
Unified dataset permission API.
2018-08-22 15:04:28 +00:00
John Chilton 35ebdc5b10 Add a legacy_job_state mode to restore 17.09 workflow invocation behavior. 2018-08-22 10:45:07 -04:00
John Chilton 2d4b717aaf Test case to clarify workflow API a bit in simple cases. 2018-08-22 10:45:06 -04:00
Nicola Soranzo f54246e1a1 Use encode() method instead of bytearray()
to encode a Unicode string to a binary one.
2018-08-21 12:35:05 +01:00
Nicola Soranzo 5bddd24d8b Remove unreachable return statement 2018-08-20 23:52:50 +01:00
mvdbeek 2d60d9af01 Wait for first workflow when testing cache
That should make the test less flakey. While in theory we should be able
to replace scheduled workflow jobs with cached jobs, this is not what
we're testing here, and I assume it doesn't work for now.
2018-08-20 11:29:02 +02:00
Dannon b9ca3b7c33 Merge pull request #6593 from jmchilton/toward_test_history_cleaning
Migrate API tests in test_jobs.py to use test_history context.
2018-08-16 09:46:39 -04:00
John Chilton c6b593b1ca Migrate API tests in test_jobs.py to use test_history context.
More configurable, better error reporting, cleans up jobs, etc..
2018-08-10 19:43:24 -04:00
John Chilton 49693814a9 Unified dataset permission API.
There was an existing library dataset permission API and one proposed for HDAs in #6461. This tries to reconcile the two approaches and move toward managers.

- Proper treatment of "master_api_key" throughout the manager layers related to this.
- Use PUT instead of POST, since that is more appropriate for updates I believe.
- Use a similar URL pattern for library datasets, history contents, and dataset APIs.
- Generalize the dataset API to allow HDA or LDDA inputs (the proposal for the new API in #6461 added an HDA-only option to the dataset API - this isn't how that API layer is meant to be used I believe).
- Add an HDA only endpoint in the history contents API for this functionality to mirror the library dataset API.
- Use consistent and backward compatible payload parsing for these endpoints.
- Use consistent serialization for the result of these changes.
- Generalize the HDA variant of this to allow different actions - such as make public and make private that were available in the library dataset variant.
- Test cases for the new API endpoints, the roles API, tests for permissions during collection creation and running tools with both dataset and collection inputs.
2018-08-10 19:42:31 -04:00
mvdbeek 3d9c0b154a Make random_lines1 consistent on py2 and py3 (again)
Turns out integers are used as is in `random.seed()`, but strings are
hashed (in the version 1 protocol), and the hashing isn't stable. So
instead we hack around this by using `ord()` on each character and
concatenating the digits.  Yucky, but probably better than using numpy
and putting this tool on the list of tools that inherit galaxy's
environment (or adding a requirement tag and resolving with conda ...).
2018-08-10 22:21:21 +02:00
John Chilton 36e1d6cfce More use of test_history contextmanager in test_tools. 2018-08-09 11:37:18 -04:00
John Chilton 55436c3800 Merge pull request #5457 from mvdbeek/select_tag_parameter
Allow selecting subset of collection by group tag
2018-08-07 13:09:18 -04:00
Dannon Baker d1423b6e18 Merge branch 'release_18.05' into dev 2018-08-06 20:20:02 -04:00