Commit Graph
132 Commits
Author SHA1 Message Date
Greg Von Kuster 2986e5f01a Bug fixes: fix importing a history item to a library, fix checking security on libraries from requests, send hid every time to functional test's verify_dataset_correctness() since we can now test multiple output datasets., and fix displaying info for library datasets in some scenarios. 2010-01-13 18:02:37 -05:00
Greg Von Kuster 093a9700ed Enhance test framework to handle testing multiple outputs from tools. 2010-01-11 16:35:16 -05:00
Greg Von Kuster 98f8c9df29 Enhance lastz tool, enhance functional test framework, and fix a bug in editing permissions on a folder:
- until now, lastz will (mostly) ignore alignments in masked regions since soft-masking has been enabled.  Now the default has changed to disable soft masking, and an option has been added to the tool to enable it if desired.
- the functional test framework now allows for a new "sort" attribute in the output tag for functional tests.  For example:  <output name="output1" file="lastz_wrapper_out4.tabular" sort="True" />
If set to True, the output dataset will be sorted prior to comparing.  This is needed for the lastz tool since multiple threads generate output randomly if the input file has more than 1 sequence.  The default is False.
- Decode the id of a folder prior when retrieving from the database - fixes the bug reported by Guru.
2010-01-11 13:26:00 -05:00
Nate Coraor d2102123d9 Add a "maxseconds" attribute to the "test" tag in tool configs. Allows the tool writer to decide how long Galaxy should wait for tool execution to complete. Resolves issue #219. 2009-11-12 11:07:05 -05:00
James Taylor 905a6e503b Fix closure in creation of generated test methods, otherwise the last testdef is used for every test 2009-11-06 00:25:02 -05:00
James Taylor 6fdcd4ba08 Fix for tools with multiple tests 2009-11-05 17:55:14 -05:00
James Taylor 1bc08c9546 Fix tool test specification by id 2009-11-04 11:35:50 -05:00
Greg Von Kuster 29b55b8707 Make sqlalchemy queries use sa_session.query( object ) rather than object.query(). This eliminates the need for the _monkeypatch_query_method() in assignmapper.py. Also eliminate the need for the _monkeypatch_session_method() for everything except object.flush() - I just ran out of time and will handle flush() asap. I also eliminated the .all() call on several queries where it was not necessary - should improve performance. I fixed several bugs I found as well. 2009-10-22 23:02:28 -04:00
James Taylor 4cf17c1961 Fix for tool tests. Comment out get_peek test, doesn't appear correct (result is unicode and forced to multiple lines, when did this change?) 2009-10-21 15:45:01 -04:00
Daniel Blankenberg 0e651adbe1 Allow nested groupings in testing framework. 2009-08-05 08:58:23 -04:00
Greg Von Kuster ca6ba6e011 Many history-related feature enhancements, some fixes and enhanced functional tests:
- history sharing is now modeled after workflow sharing - fixes ticket # 63.
- all history features pass encoded history ids between requests
- new, empty histories are no longer created when a user logs in, instead their last accessed history is displayed
- some other things I'm forgetting, I'm sure
This commit also includes a fix for remote user authentication where private roles and default permissions were not created for users ( Ross's and Assaf's issues ).
Many functional test enhancements.
2009-06-29 16:30:16 -04:00
Greg Von Kuster 3ed821a39d Better exception handling, messaging for upload utility. 2009-01-06 11:35:49 -05:00
Greg Von Kuster 42ca95a373 Enhance the tool panel, now supports following tags:
<toolbox>
    <tool file="data_source/upload.xml"/>            # tools outside sections
    <label text="Basic Tools" id="basic_tools" />    # labels outside sections
    <workflow id="529fd61ab1c6cc36" />               # workflows outside sections
    <section name="Get Data" id="getext">            # sections
        <tool file="data_source/biomart.xml" />      # tools inside sections
        <label text="In Section" id="in_section" />  # labels inside sections
        <workflow id="adb5f5c93f827949" />           # workflows inside sections
    </section>
</toolbox>
2008-12-18 16:35:26 -05:00
Greg Von Kuster 5331dee076 Add functioal test baseline support for the repeat construct, more work needed ( e.g., multiple repeat elements, refresh_on_change when the input to be refreshed is within a repeat construct ). Added functional tests for some tools that use this construct. 2008-11-10 14:22:01 -05:00
Greg Von Kuster 48d05cf6d8 New tools require uploaded compressed files, which the upload tool decompresses on the fly, renaming the file. The do_it function needs to take this into account when running functional tests for these tools. 2008-03-27 17:51:04 +00:00
James Taylor b5d916528c Small fix for functional tests + grouping 2008-03-14 18:37:42 +00:00
James Taylor 962b687556 Reorganizing the galaxy.tools package. Made 'parameters' a package and moved
all parameter related pieces underneath it.
2008-03-14 18:31:52 +00:00
Greg Von Kuster 5b4bc10b88 Functional test enhancements, history functions are now covered. 2007-10-09 18:19:44 +00:00
Greg Von Kuster 48e9652241 More functional test code cleanup and first round of additional functional tests. 2007-10-04 19:43:24 +00:00
Greg Von Kuster aa0dcc81d5 More functional test cleanup, eliminated redundant tests, unused test data, and renamed some test data files. 2007-10-04 14:14:15 +00:00
Greg Von Kuster 7f29b2b047 More functional test cleanup, renamed many functions to make it easier to undrstand what they do. 2007-10-03 20:50:16 +00:00
Greg Von Kuster b3aa4efa6f Cleaned up functional tests, eliminating some redundant tests and unused test data files. Next step, add many missing tests. 2007-10-03 14:17:41 +00:00
Daniel Blankenberg 6b555a51cb Allow tests to work with conditional statements. 2007-09-06 17:51:29 +00:00
Daniel Blankenberg 93bf90e193 Fix Testing Framework handling of multiple select parameters.
If an option was selected by default, it was never cleared before setting the desired options, now it is.
2007-08-31 16:46:19 +00:00
Jianbin He 6568b8a79e fix the current test errors of several maf tools 2007-08-08 19:31:16 +00:00
Greg Von Kuster e424389351 Correction to the last correction to toolbox. 2007-07-18 14:17:51 +00:00
Greg Von Kuster 80fe71fd7f Correction to how test_toolbox handles multiple options for input params (splits comma separated string into list). 2007-07-18 13:42:40 +00:00
James Taylor 7bfc238304 Many changes related to tool interfaces and jobs (DATABASE CHANGE, READ)
#) An "xy_plot" tool and a new "build_ucsc_custom_track" tool that
   demonstrate the various features added here.

#) Grouping constructs for tool parameters:
   - "repeat" element allows for a set of parameters to be repeated an
     arbitrary number of times
   - "conditional" element allows choosing a set of parameters to display
     based on the value of another parameter
   These constructs can be arbitrarily nested. Their values are structured
   and can be used in hooks, validation, et cetera

#) Support for generating arbitrary config files to pass to a tool

#) Command lines are now full Cheetah templates

#) Better job error reporting, includes tracebacks for internal errors
   preparing the job (database change required, see below!)

#) Preparation of command line, config files, exec_before_job hook moved
   into job execution stage

#) Parameter values now jsonified before storing in database (this is much
   more rigorous that before, and restoring from the database now works
   properly)

DATABASE CHANGE:

alter table job add column traceback text;
2007-05-19 16:40:55 +00:00
James Taylor ea9a819235 Working on getting tests going again. Modified the history.xml template to
only return active datasets so deletes should test correctly again.
2007-03-08 18:14:50 +00:00
James Taylor 113bff99bc Use an association object for the relationship between parent and child
datasets.

THIS REQUIRES DATABASE CHANGES!

Also, test parse errors should now cause errors.
2007-03-08 17:52:29 +00:00
James Taylor d87ee75027 Cleaning everything up (should be working as usual) 2006-11-15 16:55:17 +00:00
James Taylor 9cdbe06f09 More moving things around. 2006-11-15 16:32:54 +00:00