Commit Graph
277 Commits
Author SHA1 Message Date
John Chilton bf896d621d Move CasperJS history API tests in api/test_histories.py. 2016-11-30 17:44:12 -05:00
John Chilton 9b0390defb Remove CasperJS api-batch-tests.js - already available in API test framework. 2016-11-30 17:44:12 -05:00
Martin Cech 1bbab2d89d Merge pull request #3228 from jmchilton/configuration_test
Fix configuration API admin checking and tests.
2016-11-30 10:25:13 -05:00
Martin Cech b165757288 Merge pull request #3118 from bgruening/remove_mako_user_pref
New User Preferences User Interface
2016-11-30 08:58:25 -05:00
John Chilton b705579125 Fix configuration API admin checking and tests.
- Move CasperJS tests for configuration API into API test framework.
- Fix bug where configuration API wouldn't treat master API key as coming from an admin user.
2016-11-29 14:12:51 -05:00
Nicola Soranzo 3d57c22b63 Fix I201 errors from flake8-import-order
Also fix Python3 compatibility.
Remove unused method
galaxy.tools.parameters.sanitize.ToolParameterSanitizer.restore_param() .
2016-11-23 18:31:04 +00:00
guerler 2cf91d4b15 Add test case for communication server settings 2016-11-18 08:32:56 -05:00
guerler 998fd3036d Add test case to add address to user information 2016-11-18 08:15:17 -05:00
guerler b02eb9e7e0 Add basic information test case, fix validation 2016-11-17 23:12:01 -05:00
Nicola Soranzo 1d17a29c79 Fixes for pycodestyle 2.2.0 2016-11-15 16:56:50 +00:00
Nicola Soranzo e4b3766c1b Change remaining __all__ from list to tuple
Also fix import order and Python3 compatibility.
2016-10-18 19:24:31 +01:00
John Chilton 762337e110 Fix import orders for updates to flake8_import_order. 2016-10-17 11:54:56 -04:00
Nicola Soranzo 77f78cfbc7 Change __all__ from list to tuple
Also fix import order and Python3 compatibility.
2016-10-13 14:05:03 +01:00
Nicola Soranzo dcde64ce40 Fix import order. Fix typos and improve readability 2016-10-12 17:25:37 +01:00
Nicola Soranzo 1e32c0926c Fix import order and Python3 compatibility for most of test/ 2016-10-10 19:06:22 +01:00
guerler 4d871fa734 Check both invocation orders when using the new batch mode feature 2016-10-04 06:16:26 -04:00
guerler c2f1b635cc Rely on deterministic invocations order in batch mode test case 2016-10-03 17:47:08 -04:00
John Chilton b106c48b68 Unify build_workflow_run_configs for API and UI approaches to running workflows.
No more branches - the method runs top to bottom for each approach. One loop for batching regardless and completely available to all API options. Only call WorkflowRunConfig in one place. Remove duplicate fetching of replacement_params. One call to _normalize_step_parameters.
2016-09-30 22:54:06 -04:00
guerler c67e4ac1a3 Test case 2016-09-30 18:35:03 -04:00
guerler 70df25e74b Rename test associated workflow export 2016-09-30 13:29:29 -04:00
guerler 67eb2c6530 Use parameters/batch instead of input_params 2016-09-30 13:17:51 -04:00
guerler e14fe50643 Use order_index instead of step_id 2016-09-30 00:08:38 -04:00
guerler 6f7e9cd5df Use hid from hda 2016-09-29 04:11:00 -04:00
guerler 3545a0ef1f Remove unused history wait 2016-09-29 03:25:31 -04:00
guerler 3d7bfeb6dd Revise target url 2016-09-29 02:26:29 -04:00
guerler 477d3f9ae9 Add batch mode test case for invocations api 2016-09-27 15:59:42 -04:00
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