Commit Graph
1889 Commits
Author SHA1 Message Date
carlfeberhard e7cb0ac2a1 Datasets: test for anon deserialization 2016-09-13 13:10:42 -04:00
carlfeberhard 9636ea1b6c Datasets: test for anon access/manage 2016-09-13 13:09:11 -04:00
carlfeberhard fc3dcf3b87 Permissions, datasets: allow admin in RBAC
- Admin are considered permitted when calling
  ** dataset_manager.permssions.access and
  ** dataset_manager.permissions.manage
- Update bad test
- Add admin test to other permission checks
2016-09-13 13:00:58 -04:00
carlfeberhard b88035955d Datasets: confirm admin ability to set permissions
The power was inside you all along.
2016-09-12 11:04:39 -04:00
carlfeberhard 91a190c6eb Datasets: allow admin to serialize permissions
And updates tests.
2016-09-12 10:50:57 -04:00
Eric Enns 85671bd466 Fixed E302 2016-07-19 14:27:39 -04:00
Eric Enns 09b9339569 Fixed to only line_count not line_count + 1 lines and added in really basic test 2016-07-19 14:27:09 -04:00
carlfeberhard 2a29e92ef9 API, history: fix order in most_recently_used
- Fix ascending order used in HistoryManager.most_recent to descending
- Slightly update the docs to reflect actual value better
- Add tests
2016-05-24 17:08:08 -04:00
Martin Cech 912e6ea30f port TS test fix so we can rely on jenkins 2016-04-21 13:02:09 -04:00
Martin Cech 0bcc7e37e1 rename test to reflect insides 2016-03-31 11:11:38 -04:00
Martin Cech 28b5dd3683 add TS test for disabled hg push 2016-03-31 11:11:31 -04:00
Nicola Soranzo a560ad8999 Update Tool Shed tests after disabling 'hg push' 2016-03-31 11:11:26 -04:00
John Chilton 7b2a2b1ef1 [16.01] More robust test_lazy_process.
Hopefully this will fix a transiently failing test (I've only seen in fail on OS X).
2016-03-29 12:24:51 -04:00
John Chilton cb19630bd4 Fix unit tests for 56076db848 2016-02-26 12:25:34 +00:00
Nicola Soranzo 7a9d4943cd Fix tool shed tests for e4a1d57278 . 2016-02-25 13:37:23 +00:00
John Chilton b402093479 format_source in workflow editor is too restrictive.
Case made well by @erasche on #1746, fixes #1746.

To resolve this more correctly (and many other potential type problems) - the workflow editor should be significantly reworked to track the datatype (or a range of datatypes) on each terminal (the way it does for collection mapping information). The change would be a weeks worth of development effort and inappropriate to apply to a release branch.
2016-02-23 17:16:27 +00:00
John Chilton dbab6f5b97 Workaround for #1739 - fixing up subworkflow inut connections.
Do the same relaxed thing we do for inputs of type 'input' as we do for outputs of this type. Someday we should have better tracking, but such a change is probably not wise for a release branch.
2016-02-22 21:46:03 +00:00
Martin Cech 35f90da20c Merge pull request #1542 from jmchilton/did_fix
[16.01] Attempt to fix #1531.
2016-01-26 16:24:42 -05:00
John Chilton 3f51101527 Attempt to fix #1531.
I was unable to reproduce #1531 in testing, but if the problem is something to do with stale state the following sledge hammer should fix it.

Runt the new test case with:

./run_tests.sh -api test/api/test_workflows.py:WorkflowsApiTestCase.test_delete_intermediate_datasets_pja_1
2016-01-20 12:46:05 +00:00
John Chilton eca2c3bcee Failing test case to exhibit #1514. 2016-01-19 13:50:53 +00:00
Dannon Baker 817f36626d Merge pull request #1474 from jmchilton/workflow_copy
[16.01] Copy workflow objects when importing them.
2016-01-15 10:39:05 -05:00
John Chilton e69638277f Fix tab problem in test tool.
dash will convert the literal characters \t to a tab, bash doesn't seem to do this. Use portable printf as suggested by nicola.
2016-01-14 06:17:45 +00:00
John Chilton 3e47aa23b8 Switch to bash as default shell (for conda resolver).
I'm making more things configurable in case someday the BSD user wants to use Galaxy - the default shell for jobs can be configured at the galaxy or job destination level now.
2016-01-14 06:17:43 +00:00
John Chilton 0902c23f34 Merge pull request #1501 from guerler/fix_disabled_000
[16.01] Fix disabled css
2016-01-14 04:08:18 -05:00
guerler 4b5b970d78 Fix disabled css 2016-01-13 20:50:40 -05:00
Dannon Baker 2f1dbeee68 Address W503 and E721 errors now enforced by pep8 1.7. 2016-01-13 10:41:27 -05:00
John Chilton 55677f2d3d Fix to ensure integrity of tool_script.sh also.
Previously the job script underwent these checks and I had assumed since that got written later it would never be the case that tool_script.sh wouldn't be synchronized by the job script was - turns out file systems are more creative and less logical than one might expected.

Also increases the count for the number of syncs that will execute because 15 on rare occasion proved not to be enough as well as making both the count and sleep time configurable.
2016-01-13 14:58:28 +00:00
John Chilton 66c94125ee Copy workflow objects when importing them.
If not anywhere workflow.stored_workflow is checked will be broken.
2016-01-11 16:12:57 +00:00
John Chilton dff94d743f "Fix" collection outputs to hide the HDAs in the history.
Long term this is just not a solution, but it is the strategy we use for mapped over output HDAs also.

Rebased and fixed based on comments from @nsoranzo indicating the previous attempt did absolutely nothing to fix the problem.

xref https://github.com/galaxyproject/tools-iuc/pull/412/files

Conflicts:
	lib/galaxy/tools/actions/__init__.py
2016-01-08 17:04:51 +00:00
Dave B 073609d005 Fix casper tests. 2016-01-06 13:58:13 +00:00
John Chilton b9faf84b24 Stub an API test for tours so I can refactor a little. 2016-01-05 00:18:22 +00:00
Eric Rasche 5a441044fb Merge pull request #1308 from jmchilton/multi_collection_types
Allow input collections to specify multiple collection types.
2016-01-04 14:43:37 -06:00
John Chilton 61f4c82642 Add test case for importing a workflow with missing tool. 2016-01-04 09:55:44 +00:00
Björn Grüning 34bb21c411 Merge pull request #1407 from guerler/revise_masthead_000
Masthead/Scratchbook revision and test cases
2016-01-04 01:31:44 +01:00
Björn Grüning 905adbac38 Merge pull request #1412 from jmchilton/isolate
Isolate tool commands by default.
2016-01-04 01:28:41 +01:00
John Chilton 4086dd61da Implement toolbox monitoring.
- Add monitor tag on toolbox root elements to force Galaxy to watch the toolbox for changes.
 - Refactoring and test improvements for existing tool monitoring code.
 - Implement toolbox shutdown process to ensure different watchers don't compete with each other.
 - Set the default tool conf to be monitored.
2016-01-03 13:10:08 +00:00
John Chilton b68991c4ca Allow loading tool confs written in YAML and JSON.
Because lets say someone was writing a programatic way to manage elements in a tool conf, that hypothetical person probably shouldn't be writing XML.
2016-01-03 13:10:08 +00:00
John Chilton 1084f14dd0 Unit test modifications for running tool commands in isolated scripts. 2016-01-02 14:29:13 +00:00
John Chilton 868a7dfe0e Modify unmodified conda behavior.
- Add configuration option for overriding condarc location used by conda resolve commands.
 - Default location of condarc to be in tool_dependency_dir.
 - Delay updating the condarc to ensure channels until this would actually be needed (during package installation).
 - Add configuration flag to allow Galaxy to *NOT* check the PATH for conda.
 - Update unit test that verifies conda's installation to never use conda on PATH, since a precondition of this test is that certain packages haven't been installed previously.
 - Change default behavior to not check the PATH for conda, everything else here I feel pretty good about - this I'm ambivalent about - it will reduce error reports and problems with network filesystems, but doesn't seem to be good Unix best practice.

Points 2 and 3 above should address this issue: https://github.com/galaxyproject/ansible-galaxy-extras/pull/33#issuecomment-168384555

This commit also addresses most of #1406.
2016-01-02 12:38:20 +00:00
guerler 4cd621dd37 Add test cases 2015-12-31 01:46:37 -05:00
Eric Rasche 0aa1c5133e Merge pull request #1345 from jmchilton/conda_0
Implement a conda dependency resolver.
2015-12-30 15:03:52 -06:00
John Chilton 204aa96206 API-ify tool dependency resolution. 2015-12-30 20:17:44 +00:00
John Chilton cd32b91dc9 Update inputs_as_json.xml to drop version attribute.
Also add note about filename.
2015-12-30 11:24:01 +00:00
John Chilton de0c913b8b More work on converting tool inputs to json.
- Drop version requirement per commends by @bgruening.
 - Add examples for conditionals, repeats, sections, colors, and booleans specified truevalue/falsevalue.
 - Various bug fixes unearthed by new test cases.
2015-12-30 11:17:13 +00:00
John Chilton d5d404c912 Implement special config file to dump parameters as json.
```
    <configfiles>
        <inputs name="inputs" format="json" version="1" />
    </configfiles>
```

Version is specified as 1, because the Galaxy tool plumbing doesn't really distinguish between parameter is '', parameter was explicitly supplied as None, parameter was absent, etc... - everything is a just a string in some ways. This distinction may be more important with JSON and for instance the CWL will require more percision, so we may want to revise Galaxy's tool handling in a backward compatible way someday.
2015-12-29 15:09:49 +00:00
Martin Cech 14a618ee3a Merge pull request #1401 from jmchilton/transient_tests_2
Fix and potential fix for transiently failing tests.
2015-12-28 12:00:29 -05:00
John Chilton 1148081435 Implement a conda dependency resolver.
Much more information on planemo PR that I used to build a test bed for this:

https://github.com/galaxyproject/planemo/pull/392

Also syncs galaxy with planemo shared library changed.
2015-12-26 22:46:28 +00:00
Martin Cech 6aa7691a63 Merge pull request #1137 from jmchilton/workflow_api_order_2
Finish swapping unencoded ids with order_index in workflows API.
2015-12-26 16:59:52 -05:00
John Chilton 79bbc97a18 Attempt to fix transiently failing capsule TS test.
Guess here is that a flush is not occuring on that file because it is happening as part of garbage collection and not explictly as part of an explicit close.
2015-12-26 12:37:21 +00:00
John Chilton 7269f76e6e Remove transiently failing maxseconds.xml framework test. 2015-12-26 12:37:17 +00:00