Commit Graph
445 Commits
Author SHA1 Message Date
Dave Bouvier b8981f4659 Fix library template functional tests. Revert change to user info tests that was breaking library template tests. 2014-04-22 12:58:42 -04:00
Dave Bouvier 5dab91f4ba Fix functional tests for history functions. 2014-04-21 15:42:22 -04:00
Dave Bouvier 45ff30f6e1 Fix for registering an account with custom user information when only one custom user info form is defined. Fix editing user info when custom user info forms are defined. Fix functional tests for user info. 2014-04-21 12:41:05 -04:00
Dave Bouvier 30bc77e7ea Fix most of the failing functional tests in test_sample_tracking.py. 2014-04-17 15:16:57 -04:00
Dave Bouvier ac68f98bbd Fix certain failing functional tests. 2014-04-16 16:13:11 -04:00
Dave Bouvier 2a8882a446 Modify test framework to account for recent UI changes. 2014-04-16 09:18:56 -04:00
John Chilton 03303e51f2 Merged in jmchilton/galaxy-central-fork-1 (pull request #348)
Enhance workflows API to allow extracting workflow from history.
2014-03-26 16:21:15 -05:00
John Chilton 34e76f3360 Drop functional test for jobs that fails randomly. 2014-03-20 16:15:20 -05:00
John Chilton c425907780 Merged in jmchilton/galaxy-central-fork-1 (pull request #347)
Check ftype attribute (if defined) on test output datasets.
2014-03-18 12:42:23 -05:00
John Chilton fea5843942 Add ability to extract workflow from a history to workflows API. 2014-03-17 10:44:09 -05:00
John Chilton cb40e02a51 Add tool functional test for parallelism with optional inputs.
This functionality is broken without patch from pull request #334. To run this broken test:

% # First two exports are optional but speed up testing and force newest test framework.
% export GALAXY_TEST_DEFAULT_INTERACTOR=api;
% export GALAXY_TEST_DB_TEMPLATE=https://github.com/jmchilton/galaxy-bootstrap/raw/master/src/main/resources/com/github/jmchilton/galaxybootstrap/universe.sqlite
% ./run_functional_tests.sh -framework -id parallelism_optional
2014-03-16 20:41:42 -05:00
John Chilton 8d1b6a8c74 Check ftype attribute (if defined) on test output datasets.
Only works for newer API driven tests.
2014-03-14 10:12:41 -05:00
John Chilton 77a0d8f277 Start rework of API test mixin TestsDataset into an plain object.
Mirroring the newer WorkflowPopulator and LibraryPopulator.
2014-02-27 18:06:36 -06:00
John Chilton 347e4dd046 Infrastructure for library API testing.
Doesn't really test libraries extensively, but adds enough infrastructure to enable a library dataset to history copy test via API.
2014-02-27 18:06:36 -06:00
John Chilton a18dbc0a07 Initial work on test cases for history contents API. 2014-02-27 18:06:36 -06:00
John Chilton a70419971f Add functional tests for @kellrott's workflow usage additions. 2014-02-20 20:27:26 -06:00
John Chilton e7140af07a Fix failing api search test. 2014-02-20 15:18:37 -06:00
Carl Eberhard 219569de6c Revert return of status 201 in 578b918 as paste can't deal with that 2014-02-10 17:45:32 -05:00
Carl Eberhard 526c5fe06f Fix to 578b918 2014-02-10 17:25:55 -05:00
Carl Eberhard 9e1cc257e2 History API: allow copying another accessible history 2014-02-10 15:00:22 -05:00
John Chilton d7a5f28121 Improve examples of newer tool functional test features. 2014-02-03 10:11:31 -06:00
John Chilton 3b6eb6f7a5 Workflow API functional testing - parameter replacement.
Test parameter replacement while running workflows - both by tool id (deprecated) and new post pull request #317 replacement by step id.
2014-02-02 17:54:28 -06:00
John Chilton 0fd1d64fc4 Implement history import via API. 2014-01-29 08:42:42 -06:00
John Chilton d54e836cce Implement history exporting via API.
Two new routes one that can be PUT against to poll for download_url and one to fetch a completed download via a GET. Includes simple test case. This doesn't cleanly map to REST to my mind so I have hobbled together this approach, happy for further input.

Good reading:
https://restful-api-design.readthedocs.org/en/latest/methods.html#asynchronous-requests
http://stackoverflow.com/questions/4099869/is-it-wrong-to-return-202-accepted-in-response-to-http-get
2014-01-29 08:42:42 -06:00
John Chilton 049f605d1c Add some intial functional testing of search API.
Refactored workflow creation stuff in test_workflows to allow it to be used other places (namely test_search.py). Tests searching for workflows and filtering out deleted workflows.
2014-02-01 19:53:04 -06:00
John Chilton b42e2c1e2c Improved jobs testing.
Fix bug in buildbot related to differences between local handling of list/tuple parameters and requests handling (I mostly use requests locally, but buildbot doesn't have it available). Add test that fails without @kellrott's pull request #314 (and in turn verifies it fixes a problem).
2014-01-30 22:44:10 -06:00
John Chilton af62550939 Fix for a failing API test in buildbot.
Just noticed these are actually running tonight, that is good news.
2014-01-29 00:27:30 -06:00
John Chilton fec9a4939f Merge job-search branch. 2014-01-28 23:57:46 -06:00
John Chilton 0d4b656204 Add functional tests for new jobs API. 2014-01-28 23:34:29 -06:00
John Chilton 17e935528d Add example tool with task splitting to tool functional framework tests.
Enable task splitting in functional tests to test this. Specify tool_dir in samples tool_conf.xml so it doesn't need to be explicitly set in scripts/functional_tests.py.
2014-01-28 14:34:26 -06:00
John Chilton 28fa78bbc0 Workflow API tests for deletion functionality.
Various refactoring to reduce code duplication (in this and subsequent changesets).
2014-01-26 22:17:01 -06:00
John Chilton d6adb73337 Add workflow API tests.
Test import, export, index, show, run workflows, and post job actions.
2014-01-23 02:04:52 -06:00
John Chilton 7be6b9758a Functionally test various upload options via API. 2014-01-17 00:03:26 -06:00
Dave Bouvier d1114a1b0f Fix deletion of test methods after tests have been run. 2014-01-16 11:30:25 -05:00
Dannon Baker 944628f0ea Merged in jmchilton/galaxy-central-fork-1 (pull request #294)
New API Decorator
2014-01-15 08:30:38 -05:00
John Chilton 4de7fb7b1b Initial work on tools API functional tests.
Just tests some simple indexing and tool execution. Tons more one can and should test.
2014-01-13 08:58:22 -06:00
John Chilton d6f8620f62 More work on eliminating references to test_db_util.sa_session.
... tweaked styling of several functional tests (the non-toolbox,datamanager,workflow,api functional tests) along the way - mostly PEP-8 fixes and eliminating * imports. Did not modify tests which do not pass - but did not in the source where they fail inside a TODO.
2014-01-11 22:40:18 -06:00
John Chilton fb0f7e6fde Rework workflow functional testing so isn't tested by default...
Meant to be used with a specific workflow, but nose is picking it up by default when no workflow has been specified.
2014-01-11 22:40:18 -06:00
John Chilton e66768ea74 Add functional tests for pages API.
Touch up pages API in response to test cases. Update pages API to use newer API decorator.
2014-01-10 15:10:52 -06:00
John Chilton e62b2ccb56 Implement framework for testing API...
... if you can call 1 new class a framework. Includes a few test cases to exercise/drive it. These examples include a histories API test (a typical API test) and a general test of the API framework itself (mostly just the run_as functionality).

This includes changes to interactor.py to make it more useful outside the context of tool/workflow testing as well as a tweak to test Galaxy that gets started to allow testing of the run_as feature.
2014-01-10 08:45:36 -06:00
Dannon Baker a40457ab09 Merge. 2014-01-10 07:40:02 -05:00
Dannon Baker 559ecb4ec8 Remove dependency on simplejson; convert everything over to using the json module in the python standard library. 2014-01-10 07:29:05 -05:00
Carl Eberhard 487a51f70c Functional twill tests (history): remove check box assertion on history/list (as it's rendered in js now), fix history json scanning errors 2014-01-09 16:00:07 -05:00
Daniel Blankenberg 1327cc5445 Rename functions to prevent encapsulation / name mangling in test_toolbox.py and test_data_managers.py 2013-12-11 09:00:01 -05:00
Daniel Blankenberg 3db7688a56 Add Functional Testing support for locally and ToolShed installed Data Managers. 2013-12-10 12:59:29 -05:00
John Chilton 5984bbe10c Models: Introduce app.install_model.
All references to galaxy.model.tool_shed_install models should go through this instance. Right now it is a reference to the same ModelMapping instance, but the goal is to allow them to be two different mappings.
2013-12-05 00:20:54 -06:00
John Chilton 79c8f59341 Models: Introduce real class for app.model (ModelMapping).
Shared across Tool Shed and Galaxy to reduce code duplication. Previously this was just a bunch, making it a real class allows placing some shared logic in there.

This refactoring also eliminates some global variables galaxy.model.mapping.Session, galaxy.model.mapping.context, and same for tool shed. This may break things, but these are things that should probably be fixed anyway.

In particular small changes to db_shell.py and a unit test that depended on these global variables have been updated. The functional test frameworks likewise needed to be updated to not depend on these - these changes were more substantial.

To fix these functional tests, I essentially replace old references to global variables in Galaxy with references to global variables just defined in the test framework in test/functional/database_contexts.py (a slight improvement).
2013-12-05 00:20:54 -06:00
John Chilton 9e8a32c460 Extend tools API to allow use of data params with multiple='true' with multiple values.
Likewise extend API driven tool testing framework to support these, add sample test cases.

Also fixup english on a log warning.
2013-11-22 02:09:28 -06:00
John Chilton db014a8559 Add test case for data param with multiple=True even if just 1 file used.
Add fix to twill driver to fix this use case.
2013-11-22 01:27:47 -06:00
John Chilton 48b7a50eb2 Fixes related to implicit defaults of param values.
Logic errors related to them being contained in repeat blocks and to picking the top value in a select by default when no other value is marked as default.

Other small adjustments - add another sample tool demonstrating the problem and clean up error messages.
2013-11-21 23:37:22 -06:00