Commit Graph
251 Commits
Author SHA1 Message Date
carlfeberhard ff26129667 API, batch: update docs and test, cleanup 2016-07-29 10:59:12 -04:00
carlfeberhard 15a686e316 Merge remote-tracking branch 'upstream/dev' into api.batch 2016-07-28 13:33:55 -04:00
John Chilton 54b8ae00db Rework test case that fails occasionally on Jenkins.
Should be a little more robust now.
2016-07-20 12:08:18 -04:00
John Chilton 30fd1e0e64 Test case for dynamically creating list:list:lists.
This could check the outputs ideally, but it was failing to simply execute the workflow so this does serve as check that some bugs are fixed.
2016-07-19 16:20:09 -04:00
Dannon Baker e21a81fbf0 Merge pull request #2595 from carlfeberhard/users.api-update
Users API: add the update endpoint
2016-07-18 11:08:47 -04:00
carlfeberhard 6825f4c5f4 API, batch: add allowed_list to narrow use
- only allows processing batch calls to the urls that match the regexs
in allowed_list controlling/decreasing the scope of the middleware
2016-07-14 15:43:24 -04:00
carlfeberhard 7ef9b2325e API, users: remove log, change assertion style 2016-07-07 14:04:01 -04:00
carlfeberhard ad95cad990 API, users: implement users update
- users and admin can now update usernames via the API
- adds api tests to update
2016-07-07 13:42:44 -04:00
Nicola Soranzo 05eebac85d Merge pull request #2570 from abretaud/identifier_bug
Fix element_identifier unavailable with data_collection input param
2016-07-07 16:47:35 +01:00
carlfeberhard f724e84fda API, users: use default to assign username 2016-07-07 11:20:02 -04:00
Anthony Bretaudeau 706a9bfb23 cleanup test tool 2016-07-07 17:10:03 +02:00
carlfeberhard 54e07906f5 User API tests: add update test 2016-07-06 14:10:14 -04:00
carlfeberhard aa69199bd1 User API tests: add show 2016-07-06 13:33:28 -04:00
Anthony Bretaudeau cf29b1dcd6 apply comments 2016-06-29 15:20:22 +02:00
Anthony Bretaudeau fb116f5715 fix missing element_identifier with data_collection input parama 2016-06-29 14:04:43 +02:00
Anthony Bretaudeau 1d228d9a5c add test case for galaxyproject/tools-iuc/issues/857 2016-06-28 20:00:25 +02:00
Nicola Soranzo 40f85f2913 Python3: add missing print_function imports 2016-06-27 12:41:40 -04:00
Nicola Soranzo cd13423953 Python3: small fixes to previous commits 2016-06-26 02:43:57 -04:00
Junzhou Wang 7d7396f18f Python3: test/api/ 2016-06-25 17:31:20 -04:00
carlfeberhard 7bfd6410eb Merge remote-tracking branch 'upstream/dev' into api.batch 2016-06-23 16:13:49 -04:00
John Chilton d8ca09bcbe Test and linting fixes for fewer_collection_opts branch. 2016-06-10 14:50:44 -04:00
John Chilton a2578eb31a Update unzip collection action to allow it to be mapped over. 2016-06-10 13:34:19 -04:00
John Chilton ddeff4ec0c New model tool that filters failed datasets out of a collection.
This differs from a traditional tool in that its inputs don't need to be in an 'ok' state and instead of creating new datasets and duplicating data on disk, new HDAs are created from the existing datasets.
2016-06-10 13:34:18 -04:00
John Chilton 6ddb2c2a6a Implement framework for model tools.
This special class of tools leverages the infrastructure for tool inputs, tool state tracking, tool module for workflows, tool API, etc... without actually producing command-line jobs. Instead these tools are provided the input model objects and are expected to produce output model objects directly. This provides an oppertunity to copy HDAs without copying the underlying datasets.

The first driving use case for these tools are also included - namely tools that allow zipping and unzipping paired collections. These tools can be mapped over lists (e.g. list:paired to (list, list) or the inverse) using much of the existing infrastructure for tools. Test cases included that validate these work with mapping operations and in workflows.

The most obvious advantage of these versus traditional tools that do the same thing is that the data isn't copied on disk - new HDAs are created directly from the source datasets.

Testing:

This PR includes various API test cases for functionality, these can be run with the following command:

```
./run_tests.sh -api test/api/test_tools.py:ToolsTestCase.test_unzip_collection
./run_tests.sh -api test/api/test_tools.py:ToolsTestCase.test_zip_inputs
./run_tests.sh -api test/api/test_tools.py:ToolsTestCase.test_zip_list_inputs
./run_tests.sh -api test/api/test_workflows.py:WorkflowsApiTestCase.test_workflow_run_zip_collections
```
2016-06-10 13:34:18 -04:00
Nicola Soranzo cc336f61c0 Make some files compatible with Python3
Also enlarge the set of files tested with flake8 under Python3
2016-06-03 19:24:46 +01:00
John Chilton 4765f5876e Enhancements to tool test output verification.
Refactor test verification into galaxy-lib-compat module.

- Refactor a bunch class methods in ``test.base.twilltestcase`` into module functions in ``galaxy.tools.verify``.
- Move ``test.base.test_data`` to ``galaxy.tools.verify.test_data``.
- Move ``test.base.asserts`` to ``galaxy.tools.verify.asserts``.

Remove duplication in execution of these methods between composite and normal test outputs. This also entailed reworking the parsing of the composite test outputs to bring them inline with normal outputs. In addition to simplify removing duplication, this means many more tests can be made over composite outputs - such as md5 checks and test assertions. I've added a new framework test tool to verify this.
2016-05-25 09:37:49 -04:00
Nicola Soranzo 6ba6f798ec Fix more E203 flake8 errors 2016-05-17 23:53:16 +01:00
carlfeberhard 7d5cc93737 Merge remote-tracking branch 'upstream/dev' into api.batch 2016-05-11 12:58:50 -04:00
John Chilton af7d7de596 More fixes from downstream projects.
- Fixes a bug in lib/galaxy/tools/linters/general.py found through galaxy-lib.
 - Brings in docstring and import order linting fixes from the gxformat2 project (https://github.com/jmchilton/gxformat2).
2016-05-02 22:44:23 -04:00
John Chilton c2b091d207 Tests demonstrating multi-data params in repeats are broken.
A test cases and a tool that can be tested directory.
2016-04-22 10:10:06 -04:00
carlfeberhard 60936120fb Merge remote-tracking branch 'upstream/dev' into api.batch 2016-03-07 16:14:19 -05:00
carlfeberhard b9744906aa API, batch: remove simplejson refs, fix linting errors 2016-03-07 16:14:08 -05:00
John Chilton eb2005e7a2 Merge pull request #1764 from guerler/fix_check_and_update_000
Use visit inputs for check_and_update_param_values
2016-03-01 12:40:16 -05:00
Martin Cech e43c2ef5de Merge pull request #1808 from jmchilton/empty_dataset
Implement dataset empty input validator.
2016-02-29 15:38:49 -05:00
Marius van den Beek 1019f7b40f Merge pull request #1735 from jmchilton/more_wf_loading_dup
Refactor workflow loading.
2016-02-29 17:42:45 +01:00
John Chilton aeb008ca43 Implement dataset empty input validator. 2016-02-26 10:39:04 +00:00
guerler 0b5651a5ed Do not rely on __current_case__ 2016-02-24 21:26:30 -05:00
guerler d3b343acab Use visit_inputs for check_and_update_param_values 2016-02-24 21:26:30 -05:00
guerler 664ae0c8df Attempt to strip legacy collection handling, fixes 2016-02-18 17:41:41 -05:00
John Chilton 0dac0c2077 Refactor workflow loading.
Remove even more duplication between updating and creating workflows. A few new test cases to verify errors under certain conditions.
2016-02-15 21:37:54 +00:00
carlfeberhard 69de8d58de Merge remote-tracking branch 'upstream/dev' into api.batch 2016-02-10 08:21:24 -05:00
John Chilton 11654a0950 Merge release_16.01 into dev. 2016-01-26 16:43:22 +00:00
Martin Cech 35f90da20c Merge pull request #1542 from jmchilton/did_fix
[16.01] Attempt to fix #1531.
2016-01-26 16:24:42 -05:00
John Chilton 807586ace8 Merge release_16.01 into dev. 2016-01-26 09:06:52 +00:00
John Chilton 151c90183b Merge remote-tracking branch 'jmchilton/release_16.01' into dev_merge_1 2016-01-20 15:14:33 +00:00
John Chilton 3f51101527 Attempt to fix #1531.
I was unable to reproduce #1531 in testing, but if the problem is something to do with stale state the following sledge hammer should fix it.

Runt the new test case with:

./run_tests.sh -api test/api/test_workflows.py:WorkflowsApiTestCase.test_delete_intermediate_datasets_pja_1
2016-01-20 12:46:05 +00:00
John Chilton eca2c3bcee Failing test case to exhibit #1514. 2016-01-19 13:50:53 +00:00
Nicola Soranzo 487ece0f40 Fix all E731 "errors". 2016-01-14 01:19:01 +00:00
John Chilton 66c94125ee Copy workflow objects when importing them.
If not anywhere workflow.stored_workflow is checked will be broken.
2016-01-11 16:12:57 +00:00
John Chilton dff94d743f "Fix" collection outputs to hide the HDAs in the history.
Long term this is just not a solution, but it is the strategy we use for mapped over output HDAs also.

Rebased and fixed based on comments from @nsoranzo indicating the previous attempt did absolutely nothing to fix the problem.

xref https://github.com/galaxyproject/tools-iuc/pull/412/files

Conflicts:
	lib/galaxy/tools/actions/__init__.py
2016-01-08 17:04:51 +00:00