Commit Graph
1083 Commits
Author SHA1 Message Date
Sergey Golitsynskiy ec74687d12 Refactor reading config properties from a file 2019-08-14 19:11:04 -04:00
Marius van den Beek a86ed8a064 Merge pull request #8414 from jmchilton/record_job_tool_version
Record Galaxy version job was created with.
2019-08-14 08:11:38 -04:00
John Chilton f1c4bafbdc Record version of Galaxy job was created with.
We have so much job code dependant on what version of Galaxy created a job. This should help keep track of that without having to hit the job directory and guess.
2019-08-08 11:52:28 -04:00
Martin CechandNicola Soranzo cef66191c7 remove debug
Co-Authored-By: Nicola Soranzo <nicola.soranzo@gmail.com>
2019-08-08 09:22:57 -04:00
Martin CechandNicola Soranzo 2a048300c1 fix typo
Co-Authored-By: Nicola Soranzo <nicola.soranzo@gmail.com>
2019-08-08 09:22:40 -04:00
John Chilton d9100e25f3 Add more tests for XML macro expansion. 2019-08-07 14:30:41 -04:00
mvdbeek 5e9dd557d5 Add basic unit test for lint_inputs
This could of course be extended much more.
2019-08-04 11:58:39 +02:00
John Chilton 34f9c91dd0 Merge pull request #8365 from ic4f/dev_unittests_refactor_tools
Remove some test interdependencies in unit/tools
2019-07-22 15:01:07 -04:00
Sergey Golitsynskiy a3c4d753b9 [Commit to squash] (restart test/undo prev edit) 2019-07-21 21:35:31 -04:00
Sergey Golitsynskiy f060d3c1f2 [Commit to squash] (restart tests) 2019-07-21 21:33:27 -04:00
Sergey Golitsynskiy e345bcab98 Remove some test interdependencies in unit/tools
Factor out BaseParameterTestCase into a helper module.
2019-07-21 19:41:10 -04:00
Wolfgang Maier 652f19a422 Use more elegant way to test stream type 2019-07-21 10:59:09 +02:00
Wolfgang Maier b66eeea526 Fix and improve unit tests 2019-07-21 10:48:15 +02:00
Wolfgang Maier 2c20eeba3f Add unit test for get_fileobj_raw 2019-07-21 00:09:17 +02:00
Sergey Golitsynskiy 65490868fb Fix linting errors 2019-07-16 20:54:01 -04:00
Sergey Golitsynskiy 0e4e1d9249 Restructure unit tests for tool_util package
This replaces a previous (now closed) PR:
https://github.com/galaxyproject/galaxy/pull/8279

A few changes:
- tests for code in galaxy/tool_util moved under test/unit/tool_util
- common parts (used in both tools and tool_util) factored out into
  unittest_utils/sample_data.py
- symlink to sample_data.py in test/unit/tool_util/ is needed to make
  the tool_util package tests run. This is not an ideal solution, but it
  avoids duplication of the sample data used by tests in tools/ and
  tool_util/.
2019-07-16 20:15:45 -04:00
Sergey Golitsynskiy f3f979fd5d Fix linting errors (import stms) 2019-07-13 19:28:31 -04:00
Sergey Golitsynskiy 3d59d94aa8 Restructure/modify environ context manager + tests
Factor out __environ context manager into helper class (and rename).

Move context manager tests into separate test module. Improve tests.

Refactor context manager:
- Change default arg to None
- Simplify: I don't think we need to keep track of new keys;
  environ.clear() + environ.update(old_environ) should be sufficient.
  We significantly reduce complexity at the minor cost of a little more
  space.
- Instead of wrapping in a try/except block, just check if key exists
  before deleting.

Modify test_tool_deps to use the new context manager.
2019-07-13 13:08:59 -04:00
Sergey Golitsynskiy 205d82e3f6 Merge remote-tracking branch 'upstream/dev' into dev_unittest_bugfix 2019-07-13 12:43:13 -04:00
Sergey Golitsynskiy 9713184b03 Move tools/verify/ into tool_util/verify/
Ref: https://github.com/galaxyproject/galaxy/issues/8073
2019-07-12 18:06:53 +01:00
Marius van den Beek 2691a4470d Merge pull request #8310 from dglaetzer/dev
Add and run tests for auth package
2019-07-09 13:07:40 +02:00
Marius van den Beek ef86713754 Merge pull request #8304 from nsoranzo/remove_temp2.txt
Use temporary file for sniff tests
2019-07-09 12:55:25 +02:00
Sergey Golitsynskiy 73cd69a13f Fix lint errors 2019-07-09 00:39:21 +02:00
Sergey Golitsynskiy 6e78cc6847 Fix bug in a unit test
There was a bug in a context manager inside a unit test. This caused
nondeterministic behavior of some unit tests after a refactoring.

Bug fixed; added 3 unit tests to test the context manager.
2019-07-08 17:59:25 +02:00
dglaetzer 2a1dd4b1a6 Update test_auth.py 2019-07-08 17:52:36 +02:00
dglaetzer ec454313ea dummy tests for auth package 2019-07-08 17:28:32 +02:00
John Chilton c9ef1b6fad Merge pull request #8302 from dglaetzer/dev
dummy tests for containers package
2019-07-08 15:41:48 +02:00
Nicola Soranzo 8876f165d1 Use temporary file for tests
Remove `lib/galaxy/datatypes/test/temp2.txt` which was added by
mistake in commit 54d2ca01f8 .
2019-07-08 12:45:10 +01:00
dglaetzer 4a6ecd0b61 linting 2019-07-08 13:07:56 +02:00
dglaetzer 2a42853bfa add tests 2019-07-08 12:55:43 +02:00
Nate Coraor 058fabc121 Merge branch 'dev' of https://github.com/galaxyproject/galaxy into installable 2019-07-08 12:27:21 +02:00
John Chilton 1815a6547a Bring top-level galaxy Python files into galaxy-app. 2019-07-07 19:45:48 +02:00
Nate Coraor a0b1d0066f Unit test fixes 2019-07-07 16:29:58 +02:00
Nate Coraor 2034980b77 Merge branch 'dev' of https://github.com/galaxyproject/galaxy into installable 2019-07-07 13:50:41 +02:00
John Chilton d194520fdf Merge pull request #8152 from jmchilton/tool_deps_serialize
Re-try dependency manager serialization and embedded config.
2019-07-07 12:44:35 +02:00
Nate Coraor 37522f5e8e Merge branch 'dev' of https://github.com/galaxyproject/galaxy into installable 2019-07-05 16:05:17 +02:00
Dannon 72cc063451 Merge pull request #7905 from ValentinMarcon/toolrefs
Implement "xref" tag on the tool structure (with visualisation)
2019-07-05 09:54:24 -04:00
Nate Coraor cdb9040e26 Merge remote-tracking branch 'origin/dev' into installable 2019-07-05 15:51:15 +02:00
Marius van den Beek 71d315cf36 Merge pull request #8246 from mvdbeek/merge_8221
Merge 19.05 into dev
2019-06-29 09:24:02 +02:00
Marius van den Beek 49d09e2c45 Merge pull request #8090 from guerler/new_toolshed
Convert repository client to vue
2019-06-29 09:17:36 +02:00
mvdbeek 928f9453e5 Merge branch 'release_19.05' into dev 2019-06-29 00:24:51 +01:00
ValentinMarcon 03ba7a3c01 standardization of 'reftype' & 'value' 2019-06-28 11:02:57 +02:00
ValentinMarcon 6a6ade54fa xrefs yaml parser 2019-06-27 15:39:07 +02:00
ValentinMarcon 7347e57509 add parsing xml and yaml test 2019-06-27 11:41:31 +02:00
John Chilton 584c117df3 Refactor to cleanup dependencies around galaxy.web.stack.
Move galaxy.web.stack.database_heartbeat into galaxy.model - since it was the only thing in galaxy.web.stack that used galaxy.model at all and it didn't import anything else from galaxy.web.stack.

Once that was done, I refactored this whole package (galaxy.web.stack) into galaxy.web_stack. It doesn't use the framework setup or exported by the base galaxy.web package so it wouldn't seem to belong there. It also has very different dependencies than the rest of that. And finally and most importantly, this elimiantes almost all dependency from galaxy.jobs and galaxy.tools and galaxy.workflows to anything in galaxy.web.
2019-06-26 18:54:52 -04:00
mvdbeek 05a5628df0 Add test for fetching section by label 2019-06-25 18:29:52 +02:00
John Chilton 719eca2d36 Fix portable metadata datatypes.
Absolute paths were preventing this from being re-locatable.
2019-06-20 15:18:22 -04:00
John Chilton 450ae76ddb Re-try dependency manager serialization and embedded config.
PR #8118 - adding to_dict to the dependency manager and an embedded loading of dependency resolution options from galaxy.yml - was really quite poorly thought through.

Certain options could be embedded - but only the resolvers and the actual dictified representation of the DependencyManager couldn't be actually embedded properly in the app config - but this is exactly what I wanted to do on the Pulsar side and it would make no sense to have the exact same options in both apps and configured differently.

So now the actual dictified representation of the whole DependencyManager can be directly embedded in galaxy.yml as the ``dependency_resolution:`` parameter. All the parameters can still be configured at the top level of the YAML file but with 'dependency' in the config option name (some prefixes, some suffixes, etc... a hodgepodge that has grown organically). Give the messiness of the existing options might be better to encourage using ``dependency_resolution:`` in the future.
2019-06-20 14:36:40 -04:00
M BerntandMarius van den Beek dcec15a852 include parameter name in exceptions
- to simplify tool testing its of advantage to know
  which parameter caused a problem
- for select parameters the illegal value and the
  list of legal values is added
- also unified the text of the messages

Co-Authored-By: Marius van den Beek <m.vandenbeek@gmail.com>
2019-06-20 09:49:35 -04:00
Martin Cech 1b4ff60f06 Merge pull request #8163 from bernt-matthias/topic/raise-parameter-name
Improved tool parameter error reporting
2019-06-20 09:39:28 -04:00