Commit Graph
339 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 fa15a53890 Fix functional tests for library features. 2014-04-21 16:51:05 -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
John Chilton 2bda90ec6c Add option test system environment option GALAXY_TEST_VERBOSE_ERRORS to report on dataset errors.
Implemented a while ago to aid debugging but disabled by default because it can cause sqlite locking errors. It can now be enabled as needed using GALAXY_TEST_VERBOSE_ERRORS.
2014-04-18 08:41:59 -05:00
Dave Bouvier 5bdb75aa82 Correct usage of "it's" versus "its". 2014-04-17 15:49:32 -04:00
Dave Bouvier 2a8882a446 Modify test framework to account for recent UI changes. 2014-04-16 09:18:56 -04:00
John Chilton c02c19011a Force use of requests in API tests, eliminate hacked together compatibility layer. 2014-03-20 10:43:57 -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 a18dbc0a07 Initial work on test cases for history contents API. 2014-02-27 18:06:36 -06:00
John Chilton 9a06cdd454 Fix mock-requests PUT action.
Should fix failing history import/export test on buildbot server that doesn't have requests dependency available.
2014-02-20 15:28:06 -06:00
Dave Bouvier 36a0a88256 Make GALAXY_TEST_NO_CLEANUP apply to uploaded and tool output datasets. 2014-02-11 10:38:50 -05: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 2f775a0a9c API testing helpers to run methods as alternative users.
Previous run_as method has some potential limitations, seems testing permission/security things is more correct if actually using normal alternative user key.
2014-01-26 22:17:01 -06: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 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 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
John Chilton 2ac58018d5 Eliminate interactor dependency on deprecated global variable.
Lessens the need to import things in a specific order - as long as database context is run before interactor methods everything should be fine now. TODO: Eliminate rest of dependencies on this variable.
2014-01-10 08:45:36 -06:00
John Chilton 22963027d9 Flush out API interactor...
... this will enable functional testing of API.
2014-01-10 08:45:36 -06:00
John Chilton 02aeedeef7 Rework key injection logic in test framework.
Pull logic for how master and user API keys are determinined for testing out of functional_tests.py for reuse elsewhere.

This refactoring will help the creation of an API test framework.
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
Greg Von Kuster 33a6718a4d Fix imports in various functional test scripts. 2013-12-17 11:20:23 -05:00
Greg Von Kuster 2f38da8025 Enhance the tool shed's install and test framework to uninstall repositories in an ordered fashion so that repositories are not uninstalled when they are dependencies of other installed repositories. 2013-12-16 15:52:29 -05:00
John Chilton 4ae032181a Disable extra verbose logging with API interactor on test errors.
It is useful but seems to cause sqlite locking errors.
2013-12-07 08:38:30 -06:00
Dave Bouvier 048e4af5d7 Use walltime configured in job_conf.xml instead of maxseconds for determining whether a test tool run is stuck. 2013-12-05 13:52:22 -05: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
Greg Von Kuster 340762bbf1 Correctly use the initialized test_environment dict when running the tool shed's install and test framework and additional code cleanup for the framework. 2013-12-04 15:07:39 -05: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 150b5aa49e API Driven Tests: Option for very detailed per dataset error messages for when histories error out. 2013-11-21 19:17:13 -06:00
John Chilton 9dc1c1d3bc Fix for using API driver with tool outputs that change their name.
E.g. composite data types. API should probably return the original output name since that is the purpose of the parameter but I am not sure how much work that would be.
2013-11-21 19:17:13 -06:00
John Chilton 79458d0d0b Further refactoring for iteractors for reuse. 2013-11-21 19:17:13 -06:00
John Chilton edc88f8aaf Refactor interactors out of test_toolbox into base.
For potential reuse in other tests.
2013-11-21 19:17:13 -06:00
John Chilton 0ebfbc27fe Twill-less tool tests - enhancements related to errors.
- Report formatted standard error and standard output of tools like Twill interactor.
 - Respect testdef.maxseconds to timeout test cases.
 - Check history item - like Twill interactor do not verify 'error' datasets.
 - Properly raise exceptions with reported API error messages when running tools.
2013-11-21 19:17:12 -06:00
John Chilton a427e33788 Tool functional tests - refactor reusable function for verifing output
... from verify_dataset_correctness. Introduce simple, extensible abstraction for fetching outputs for verification in twilltestcase.py. Will want to reuse the core verification of the displayed dataset in the API driven case and will not need or be able to use the extra cruft related to checking UI, job state, etc...

Also small twilltestcase code structure updates for Python 2.6+.
2013-11-21 19:17:12 -06:00
John Chilton aedd40c2eb Upload a tool test's inputs in parallel.
Probably small optimization in most cases since tests generally have few inputs.
2013-11-21 19:17:12 -06:00
John Chilton f35c0a89d6 Refactor twill tool test driver to encode hda id earlier.
And pass an encoded id to display action in root controller.

Would definitely like to simplify or better yet remove root.display if not used anywhere else, it should be coming in through dataset controller.
2013-11-21 19:17:12 -06:00
Greg Von Kuster 0659e43b41 Add a script to check repositories of type tool dependency definition in the tool shed to prep for installation testing. 2013-11-20 16:41:33 -05:00
John Chilton 5142dbe44d Redo fix from 8b65e61 so it works when no Twill clicking at all occurs (e.g. all default params used). 2013-11-18 00:51:54 -06:00
John Chilton 3d03f12e0a PEP-8 fixes for test/base/twilltestcase.py.
Still hundreds of lines to fix.
2013-11-14 17:49:58 -06:00
Dave Bouvier 1f332d93b3 Fix error in test_get_data.py's url paste upload test. 2013-11-13 11:23:54 -05:00
Dave Bouvier a624be120f Fix exception when a tool test attempts to add to a repeat parameter. 2013-11-08 15:50:50 -05:00
John Chilton 2897607f25 Bug fix for tool functional tests with repeat elements. 2013-11-05 14:16:00 -05:00
Dave Bouvier a948eaa352 Fill form by name instead of number. 2013-10-14 13:55:39 -04:00
Dave Bouvier cdd1e90b47 Fill form by name rather than number when uploading files for tool functional tests. 2013-10-01 10:23:59 -04:00
Dave Bouvier bb30319154 Do not truncate tool test input dataset names, as Galaxy no longer displays them truncated. 2013-07-29 12:01:24 -04:00
Dave Bouvier 13793b39cc Add missing hda name length check to submit_form. 2013-05-09 13:49:13 -04:00