Commit Graph
46 Commits
Author SHA1 Message Date
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 3091737ab9 Misc test fixes 2022-09-27 03:34:55 +01:00
Dannon 4644922783 Merge pull request #13655 from mvdbeek/metadata_embed
Create data_fetch and set_metadata celery tasks
2022-06-07 10:27:06 -04:00
Marius van den Beek 2c30acbd8f Merge pull request #14008 from bgruening/swift_integration_tests
try fixing the swift integration tests that are using some minio container
2022-06-03 12:16:39 +02:00
Björn Grüning 235e47a0bd try fixing the integration tests 2022-06-03 11:04:59 +02:00
mvdbeek b4fd03b27a Wait for purge so we don't hang the celery task 2022-05-27 17:33:54 +02:00
mvdbeek fefb346478 Don't run object store upload tests w/celery
If run that way the irods tests seem to hold on to threads.
2022-05-26 12:48:44 +02:00
mvdbeek 28d58edbcc Use celery in more integration tests 2022-05-26 12:48:44 +02:00
John Chilton c5bf63bc91 Add DEFERRED datasets to Galaxy
- Improves options and display around discarded datasets.
- Adds new APIs for importing model stores.
- Adds support to model store layer for importing/exporting workflow invocations and APIs and tests to support this.
- Add new DEFERRED dataset state - with APIs for materializing them or the option to defer them on the worker node if using tool_evaluation_strategy=remote on the job destination.
- UI and API options for uploading deferred datasets individually or into collections.
2022-05-23 19:48:47 -04:00
mvdbeek 2aca80d070 Can't change API endpoint parameter, is already used 2022-02-10 18:13:34 +01:00
mvdbeek fc493c9280 Add test for storing metadata file in object store 2022-02-10 15:58:16 +01:00
Dannon Baker 623a5e165a Apply black formatting.
Apply isort.
2022-02-03 07:42:20 -05:00
Kaivan Kamali 85ade3df4f Clear the cache before fetching a file from irods object store, to verify file is fetched from the object store, not from the cache 2022-01-13 15:19:10 -05:00
Nicola Soranzo 6a6abf37ef Split run_tool_raw() out of BaseDatasetPopulator.run_tool()
so that the former always returns a `Response` object while the latter
returns the response content.

Also:
- In `CwlPopulator.run_cwl_job()` wait for the run only if `assert_ok`
  is True; if the `wait()` call fails, summarize history also for
  workflow runs.
2021-11-27 03:14:52 +00:00
mvdbeek 8b7614ccd9 Fix mypy tests that broke while merging forward 2021-11-01 18:46:05 +01:00
mvdbeek 58b2837c7c Merge branch 'release_21.09' into dev 2021-11-01 18:17:54 +01:00
mvdbeek 673e068358 Add test case that verifies various object store cache operations 2021-10-30 16:41:41 +02:00
mvdbeek 8507756ae4 Refactor SiwftObjectStore test so it can be re-used more easily 2021-10-30 16:36:50 +02:00
John Chilton 297e2d5419 Type fixes for integration.objectstore modules. 2021-10-11 16:32:30 -04:00
John Chilton 8484f40f31 mypy for test/ 2020-12-25 17:38:51 -05:00
John Chilton 5a00d29a0c User-facing objectstore metadata. 2020-10-09 09:09:32 -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
Dannon Baker bd17f4f620 Merge remote-tracking branch 'upstream/release_20.05' into dev 2020-08-25 20:20:14 -04:00
mvdbeek 2b1d29cdcf Extend test cases to use outputs_to_working_dir and metadata_strategy extended 2020-08-13 12:16:41 +02:00
Kaivan Kamali b8445be863 Added poolsize to config 2020-05-22 11:00:12 -04:00
Kaivan Kamali 2a9eca2be9 Fixed a bug in object store integration test. 2020-04-28 09:56:12 -04:00
mvdbeek 4ba2ea2769 Move object store test upload test cases to test/integration/objectstore 2020-04-21 21:19:15 +02:00
mvdbeek e954807275 Merge branch 'release_20.01' into dev 2020-03-05 12:52:43 +01:00
mvdbeek 510504075f Don't run extended metadata strategy 2020-03-03 14:22:54 +01:00
mvdbeek b5dd8346fb Fix test container shutdown 2020-03-03 14:18:49 +01:00
mvdbeek 0a252ed4f1 Manage minio docker container in integration test 2020-03-03 13:01:13 +01:00
mvdbeek 20aaca36b1 Add an integration test case for swift/s3 2020-03-03 12:37:05 +01:00
John Chilton 801182c358 Make store_by a true per object store configuration. 2020-01-13 21:22:49 -05:00
John Chilton 64f3690367 Reduce duplication in object store integration tests. 2020-01-13 11:01:18 -05: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
vahid a4656c2654 Remove \n from test content strip. 2019-06-17 09:46:22 -07:00
vahid 428a29dac4 Remove an unnecessary tab strip. 2019-06-17 09:29:09 -07:00
VahidandMarius van den Beek a2bfba12a1 Update test/integration/objectstore/test_jobs.py
Co-Authored-By: Marius van den Beek <m.vandenbeek@gmail.com>
2019-06-17 09:08:05 -07:00
VahidandMarius van den Beek 1dbca872d5 Update test/integration/objectstore/test_jobs.py
Co-Authored-By: Marius van den Beek <m.vandenbeek@gmail.com>
2019-06-17 09:07:22 -07:00
vahid 4b3dbc6bcb Add a todo comment. 2019-05-27 11:15:10 -07:00
vahid ffc8b87ee9 Extend ObjectStore integration test to assert the content of datasets. 2019-05-25 19:47:13 -07:00
vahid 216f31a2f1 Refactor a test name. 2019-05-25 17:31:01 -07:00
vahid 28c8943919 Assert the exact number of files in the OS jobs output than a range. 2019-05-25 17:30:14 -07:00
vahid 275cc365a5 Move some code from test method to setUp method in OS integration tests. 2019-05-25 17:26:14 -07:00
vahid 6acb9e50eb Remove objectstore from its integration tests filenames. 2019-05-25 17:20:00 -07:00
vahid 52596d186e Organize ObjectStore integration tests under a dedicated package. 2019-05-25 16:36:50 -07:00