Commit Graph
22 Commits
Author SHA1 Message Date
mvdbeek 049e4d0fa3 py3: Fix test_fetch_zip_to_folder test 2018-08-02 13:21:19 +02:00
mvdbeek 27a30b762d py3: Fix library tests 2018-08-02 13:21:19 +02:00
John Chilton 8d5a4c3625 Transition API tests from upload datasets and assembling collecitons to uploading collections.
Should be a lot more efficient.
2018-06-21 08:12:30 -04:00
mvdbeek 0a599089fa Don't dump json parameters 2018-05-08 12:03:06 +02:00
mvdbeek 276a559cf4 Make interactor._{get,post,put,...} less repetitve
Also inject api key into params, so that we can use `json.dumps` for the
payload instead of writing json strings in python.
2018-05-07 14:51:52 +02:00
John Chilton 64deb63117 Fix broken API test.
I think the URLs changed so checksum computation is failing.
2018-03-20 14:52:40 -04:00
John Chilton 1c6cc02415 Hierarchical upload API optimized for folders & collections.
Allows describing hierarchical data in JSON or inferring structure from archives or directories.

Datasets or archive sources can be specified via uploads, URLs, paths (if admin && allow_path_paste), library_import_dir/user_library_import_dir, and/or FTP imports. Unlike existing API endpoints, a mix of these on a per file basis is allowed and they work seemlessly between libraries and histories.

Supported "archives" include gzip, zip, bagit directories, bagit achives (with fetching and validations of downloads).

The existing upload API endpoint is quite rough to work with both in terms of adding parameters (e.g. the file type and dbkey hanlding in 4563 was difficult to implement, terribly hacky, and should seemingly have been trivial) and in terms of building requests (one needs to build a tool form - not describe sensible inputs in JSON). This API is built to be intelligable from an API standpoint instead of being constrained to the older style tool form. Additionally it built with hierarchical data in mind in a way that would not be easy at all enhancing the tool form components we don't even render.

This implements 5159 though much simpler YAML descriptions of data libraries should be possible basically as the API descriptions. We can replace the data library script in Ephemeris https://github.com/galaxyproject/ephemeris/blob/master/ephemeris/setup_data_libraries.py with one that converts a simple YAML file into an API call and allows many new options for free.

In future PRs I'll add filtering options to this and it will serve as the backend to 4733.
2018-03-08 10:33:36 -05:00
John Chilton 895e9971cb More upload configuration options testing - this time for libraries. 2017-12-19 16:09:44 -05:00
John Chilton abe1b240c3 Fix broken library test I recently added. 2017-11-15 12:49:21 -05:00
John Chilton 5609bfc307 More API library testing. 2017-11-14 09:24:10 -05:00
Martin Cech f79eba25b5 fix small regressions and add tests for the new API 2017-08-30 15:25:00 -04:00
Nicola Soranzo 21b44bf348 Fix all E201 and E202 style errors
using the following command:
```
autopep8 -i -r --exclude $(sed -e 's|^|./|' -e 's|/$||' .ci/flake8_blacklist.txt | paste -sd,) --select E201,E202 .
```
2017-08-17 11:35:39 +01:00
John Chilton 1e70211fa4 Touch up #3559 based on post-merge discussions. 2017-04-03 12:35:57 -04:00
mvdbeek 8b9fd288bc Test creating library datatsets fails when not owning HDA 2017-02-05 15:36:48 +01:00
mvdbeek 08449059f4 Test adding a single dataset to a folder and test creating library using from_hdca_id 2017-02-05 14:36:16 +01:00
mvdbeek e0f80db701 Add possibility to load collections into library
and to conserve element_identifier.
2017-02-04 21:02:29 +01:00
John Chilton de35c85b65 Refactor API helpers for re-use in rest of test framework.
- Move api.helpers to base.populators.
- Refactor helper subclasses adapted to use bioblend instead of test framework stuff into base.populators for greater visibility.
- Refactor workflow format 2 testing stuff for reuse by Selenium.
2017-01-08 08:13:42 -05: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
Martin Cech 43dc7a52e5 add more API tests for data libraries 2015-11-12 12:34:57 -05:00
John Chilton 4132fc8598 Fix library API test for format field redefinition in 9d152ed. 2014-09-16 14:48:39 -04:00
Dave Bouvier 424efdcf9a Moved API tests to live under test/ rather than test/functional/. Removed test for DNAse flanked genes. Added test for UCSC table browser. 2014-04-30 15:35:57 -04:00