Commit Graph
27 Commits
Author SHA1 Message Date
Nicola Soranzo e975ca3754 Update to black 2024 stable style 2024-01-30 18:09:51 +00:00
mvdbeek 130d2b078e Update and apply ruff refactorings
ruff 0.280.0 has a bug that would turn the imports guarded by `if
TYPE_CHECKING` into their non-string variant, which would break the
runtime. So we can't merge 23.1 into dev without this.
2023-08-09 17:14:07 +02:00
Nicola Soranzo c35d8f2a06 Replace `unittest.TestCase` with pytest-based partial re-implementation
Also:
- Rename `FooBarTestCase` test classes as `TestFooBar`. These were collected
  by pytest only because they were `unittest.TestCase` derived, but normally
  pytest collects only test classes whose name starts with `Test`, see
  https://docs.pytest.org/en/7.1.x/reference/reference.html#confval-python_classes
2022-09-27 03:34:58 +01:00
Nicola Soranzo 7646d9eb7b Workaround for abstract test classes 2022-09-27 03:34:56 +01:00
Nicola Soranzo 3091737ab9 Misc test fixes 2022-09-27 03:34:55 +01:00
mvdbeek 80e9e440da Mark openPBS integration test cases as xfail
I don't think our time is well-spent debugging this one.
It mostly works, but sometimes the startup fails.
This shouldn't makr the whole test suite as failed.
2022-06-20 16:04:28 +02:00
Dannon Baker 623a5e165a Apply black formatting.
Apply isort.
2022-02-03 07:42:20 -05:00
Nicola SoranzoandMarius van den Beek 4b46c898a7 Add comment
Co-authored-by: Marius van den Beek <m.vandenbeek@gmail.com>
2022-01-29 13:00:33 +00:00
mvdbeek be43f1d1a7 Use updated test images for CLI runner 2022-01-28 19:55:45 +01:00
Nicola Soranzo f355da5865 Move ssh_util from galaxy_test.base to galaxy.security
so it can be used by both unit tests of the `galaxy-app` package and by integration tests
2021-11-09 14:37:48 +01:00
John Chilton 1c1ab02ce3 Type fixes for test_cli_runners.py 2021-10-11 16:32:30 -04:00
John Chilton 2a0474730b Rev mypy. 2021-04-23 14:49:53 -04:00
Nicola Soranzo 9d74bba7fb Drop support for retired Python 3.5
Upgrade syntax using `pyupgrade --py36-plus` .

Manually drop several `six` imports.

Also:
- Remove broken pr_cache in scripts/bootstrap_history.py
- Fix broken prefix removal in lib/galaxy/tool_util/deps/mulled/mulled_build.py
2020-10-07 11:52:13 +01:00
mvdbeek 797fc57b0a Decorate class to skip, not class setup method 2020-01-09 14:40:48 +01:00
mvdbeek 55cf4451d0 CliRunner lint fix 2020-01-09 14:40:48 +01:00
mvdbeek cfe1ad7f85 Skip usermod on osx, isn't necessary with docker for mac 2020-01-09 14:40:48 +01:00
mvdbeek 1f9dc90f25 Run ssh/cluster containers in privileged mode 2020-01-09 14:40:48 +01:00
mvdbeek 9be9a5b5d2 Adjust uid of testuser inside slurm/pbs container 2020-01-09 14:40:48 +01:00
mvdbeek 5b09f6d74c Disable strict host key checking during tests
And fix parsing of shell_strict_host_key_check
2020-01-09 14:40:48 +01:00
John Chilton 45019c3fbd Move galaxy testing utilities into more sane package structure.
Split test/base into lib/galaxy_test/base and lib/galaxy_test/driver. Dividing things on whether they import galaxy-app code or not - with the goal of a galaxy-test-base package that doesn't depend on galaxy-app and a galaxy-test-driver package that does.

I've been refactoring around this division for a long time. Certain tests (namely the integration tests) always need to bootstrap Galaxy - but the API tests and the Selenium tests should be installable and runnable without Galaxy in the Python environment. So future galaxy-test-api and galaxy-test-selenium packages should have only an optional dependency on galaxy-test-driver.

Properly sturcturing these namespaces is a precursor for real packages on PyPI, clean separation of the tool shed testing code, and cleans up all the flake8 noqa hacks in test/.
2019-11-12 09:03:06 -05:00
mvdbeek ab952886b4 Include .xml in job_config_file 2019-06-16 17:26:10 +02:00
mvdbeek 20526ceb50 Share ssh key generation across tests
Closes https://github.com/galaxyproject/galaxy/issues/6860
2018-10-14 18:08:17 +02:00
Nicola Soranzo bc226e6d41 Use more generic destination name
xref. https://github.com/galaxyproject/galaxy/pull/6845#pullrequestreview-163617248
2018-10-12 09:53:47 +01:00
Nicola Soranzo ac3e1ca1d0 Use Crypto to generate SSH keys
Also remove key files in `stop_ssh_docker()`.
2018-10-10 16:22:05 +01:00
mvdbeek b08c6219c3 Simplify ssh key handling in integration test 2018-10-10 14:56:05 +02:00
mvdbeek 5e12e509bf Fix selection of job plugin and image
Thanks @nsoranzo.
2018-10-10 14:56:05 +02:00
mvdbeek 5844bdc7aa Add integration test for remote shell CLI runners
This tests both the SecureShell and Paramiko shell plugins and the
Slurm and Torque CLI runner.
2018-10-10 10:10:51 +02:00