Commit Graph
16 Commits
Author SHA1 Message Date
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
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
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 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
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
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
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 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