Commit Graph
25874 Commits
Author SHA1 Message Date
John Chilton 5661e0db9f Exploratory Jupyter environment for `galaxy-selenium`.
The new Makefile-based command ``make serve-selenium-notebooks`` will serve notebooks in lib/galaxy_test/selenium/jupyter.

The notebooks will target a Galaxy host running on port 8080 - but are parameterized to be run with papermill (https://papermill.readthedocs.io/) for automate targeting different Galaxy servers, remote Selenium servers, etc..

Screenshots will be embedded right into the notebook.

Example notebooks setup to target just the library code in ``galaxy-selenium`` as well as one appropriate to leverage the Galaxy testing framework are included and documented in depth via modules docstring for ``galaxy_test.selenium.jupyter``.
2021-01-18 17:24:28 -05:00
John Chilton a13fe04489 Remove older, deprecated casperjs version of UI navigation data. 2021-01-18 14:45:56 -05:00
John Chilton 25b12da947 Merge pull request #11142 from jmchilton/app_typed
Start type signature for UniverseApplication.
2021-01-18 10:10:26 -05:00
John Chilton b6d99320d9 Selenium test case for workflow invocation details. 2021-01-17 00:36:08 -05:00
John Chilton 786fded90f Fix admin key handling in selenium populators. 2021-01-17 00:33:06 -05:00
John Chilton bc0f3296bb More typing for selenium plumbing. 2021-01-16 20:14:18 -05:00
John Chilton f32a81f53b Remove unused import. 2021-01-16 20:12:52 -05:00
John Chilton 106337e91d Setup a mechansim for using selenium populators outside testing contexts.
An extended version of the library functions in #10783 - to allow interacting with workflows, etc.. creating using the API from Selenium. Should make my test prototyping environment in #10784 a bit closer to test case enviornments and allow more rapid development of test cases.
2021-01-16 20:12:52 -05:00
John Chilton d8da53ef64 docstring improvement for galaxy_test.base.api. 2021-01-16 20:11:39 -05:00
John Chilton 3a9596a66f Cleanup galaxy_test.base.api_util.
- Rename get_master_api_key to get_admin_api_key - less offesnive and more accurate since it doesn't need to be the bootstrap key.
- Add types and cleanup docstrings.
2021-01-16 20:11:39 -05:00
John Chilton 239d6d095e Fix typing issues in galaxy_test.base.populators hierarchy.
- Consistent abstract methods with consistent implementation signatures.
- Add a bunch of types to methods to ensure mypy gets in there and checks everything it can while also improving the docs.
- Fix a bunch of issues where Base*Populators were using ``galaxy_interactor`` instances directly - which is bad since the whole point is to not require one of those to execute those methods.
2021-01-16 20:11:39 -05:00
John Chilton d40146dd19 docstring for galaxy_test.base.populators 2021-01-16 20:11:39 -05:00
John Chilton 5c72eb30bf Drop older nose-ism in galaxy_test.base.populators. 2021-01-16 20:11:39 -05:00
John Chilton 9d90da8d5f Drop last use of deprecated mixin. 2021-01-16 20:11:39 -05:00
Nicola Soranzo 73d9336207 Merge pull request #11157 from bernt-matthias/topic/fix-error-message
fix error message
2021-01-16 18:01:33 +00:00
Matthias Bernt aaa22cec31 fix error message 2021-01-16 17:02:32 +01:00
Nicola Soranzo 452aba9ee3 Fix remaining issues reported by bugbear; add it to flake8 reqs 2021-01-16 05:58:15 +00:00
Nicola Soranzo 7763aae5b5 Merge branch 'release_21.01' into dev 2021-01-16 05:26:28 +00:00
Nicola Soranzo 2d6ab5d76b Merge branch 'release_20.09' into release_21.01 2021-01-16 05:25:48 +00:00
Nicola Soranzo dd80d624e4 Sync social-auth-core requirement in data package
v4.0.2 dropped support for Python 3.5
2021-01-15 19:07:26 +00:00
John Chilton 7f0cfd690f More controller typing. 2021-01-15 13:02:11 -05:00
John Chilton cca4308d92 Implement partially typed version UniverseApplication. 2021-01-15 13:02:11 -05:00
Nicola Soranzo 98490490f5 Merge branch 'release_21.01' into dev 2021-01-15 17:30:56 +00:00
Nicola Soranzo 166087ea7a Merge branch 'release_20.09' into release_21.01 2021-01-15 17:05:47 +00:00
John Chilton 921648c471 docstrings and type annotations for galaxy.managers.context.
sphinx isn't rendering the types on the abstract properties - which makes me sad but I'm confident that will be fixed at some point. I did change some dependents around to ensure the type annotations are being used by mypy in this case and and they are.
2021-01-15 11:17:39 -05:00
mvdbeek 588f2c49b6 Log exception but continue if cli is available but not functional
That is a good idea, thanks Nicola!
2021-01-15 15:47:16 +01:00
John Chilton bbd325527c Merge pull request #11132 from davelopez/ignore-mypy-error
Fix mypy error with Union in response_model
2021-01-14 13:37:18 -05:00
mvdbeek 5fed2b4c79 Don't load BuildMulled resolvers if docker not available 2021-01-14 18:18:06 +01:00
davelopez e3f7948a4a Use InferringRouter in licenses router
And remove all response_model declarations
2021-01-14 18:09:22 +01:00
davelopez f11d675753 Use InferringRouter in datatypes router
And remove all response_model declarations
2021-01-14 18:06:42 +01:00
selten 42ff20f6a0 Minor spelling error fix
Fixes a minor spelling error.
2021-01-14 17:43:35 +01:00
mvdbeek 40a7cd8f3c Don't attempt to use docker cli if it is not available
This fixes https://github.com/galaxyproject/galaxy/issues/11125, which
became a problem with https://github.com/galaxyproject/galaxy/pull/10814
and the recent removal of the docker runtime from kubernetes.

This is the quick fix, but I don't like the guessing and disabling
that we do if docker is not available or not functional.

I'm hesitating between adding a config option for the resolver
(`docker_cli_available` or `docker_list_images` + `docker_pull_images`)
and adding a `KubernetesContainerResolver` / `RemoteContainerResolver`
class that doesn't assume docker is available for listing and pulling
iages.

Not wanting to list/pull images on the Galaxy node is probably a
reasonable thing outside of kubernetes as well, so I tend to
go with a `RemoteContainerResolver` class in dev ?
2021-01-14 17:43:25 +01:00
davelopez 970edcd8c3 Ignore mypy error with Union in response_model 2021-01-14 15:30:28 +01:00
Dannon e8af1abbfc Merge pull request #11128 from jmchilton/revert_10
Revert "Make all fastapi methods async (for consistency)."
2021-01-14 08:32:23 -05:00
Marius van den Beek 2757d7b3b7 Merge pull request #11116 from jmchilton/uvicorn_factory
uvicorn-compatible factory function for fastapi.
2021-01-14 12:50:14 +01:00
John Chilton 5543ddf728 Revert "Make all fastapi methods async (for consistency)."
This reverts commit 8c7d74cb10.
2021-01-14 06:45:20 -05:00
John Chilton 8c7d74cb10 Make all fastapi methods async (for consistency). 2021-01-13 18:55:43 -05:00
John Chilton a43e9820ed Auto-discover fastapi controllers. 2021-01-13 18:54:30 -05:00
John Chilton 37f8684582 Extract code for walking controller modules. 2021-01-13 18:54:07 -05:00
John Chilton 42bd3b269e Remove unused, deprecated ControllerUnavailable. 2021-01-13 18:42:44 -05:00
John Chilton 5e011fa82e Merge pull request #11098 from davelopez/fastapi-migration-datatypes
Add FastAPI routes for datatypes
2021-01-13 18:23:53 -05:00
John Chilton 58620c0602 Merge pull request #11113 from jmchilton/types_and_trans
Establish a best practice for trans dependency management.
2021-01-13 18:11:57 -05:00
mvdbeek e5e7b6258d Update version to 21.01.rc1 2021-01-13 21:11:32 +01:00
mvdbeek 0492602e80 Update version to 21.05.dev 2021-01-13 21:11:32 +01:00
Dannon d4f5a93027 Merge pull request #10524 from OlegZharkov/proper-error
informative error message on /api/authenticate/baseauth
2021-01-13 12:57:38 -05:00
John Chilton fa685e4fd0 uvicorn-compatible factory function for fastapi. 2021-01-13 11:34:19 -05:00
Marius van den Beek eec72b2e24 Merge pull request #10984 from davebx/stc_sections
Put new toolshed tools in existing tool panel sections if the ID matches
2021-01-13 15:17:09 +01:00
davelopez 02e9f02db9 Refactor move pydantic model to datatypes/_schema.py 2021-01-13 14:04:14 +01:00
Marius van den Beek c148445e6c Merge pull request #10880 from bernt-matthias/topic/options-fallback-name
Dynamic select parameters: also allow to choose legal options by name
2021-01-13 12:00:08 +01:00
Sergey Golitsynskiy 882ad635d8 Merge pull request #11089 from ic4f/dev_fastapi_tours
Add FastAPI routes for tours
2021-01-12 22:08:47 -05:00