-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from cat-bro/destination-inheritance-extra-tests
Add two tests around destination inheritance (one fails)
- Loading branch information
Showing
4 changed files
with
89 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
wheel | ||
galaxy-util@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/util | ||
galaxy-objectstore@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/objectstore | ||
galaxy-files@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/files | ||
galaxy-data@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/data | ||
galaxy-auth@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/auth | ||
galaxy-selenium@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/selenium | ||
galaxy-data@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/data | ||
galaxy-job-execution@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/job_execution | ||
galaxy-job-metrics@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/job_metrics | ||
galaxy-tool-util@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/tool_util | ||
galaxy-web-stack@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/web_stack | ||
galaxy-config@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/config | ||
galaxy-web-framework@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/web_framework | ||
galaxy-util | ||
galaxy-objectstore | ||
galaxy-files | ||
galaxy-data | ||
galaxy-auth | ||
galaxy-selenium | ||
galaxy-data | ||
galaxy-job-execution | ||
galaxy-job-metrics | ||
galaxy-tool-util | ||
galaxy-web-stack | ||
galaxy-config | ||
galaxy-web-framework | ||
-e ".[test]" | ||
# The following packages are needed for resubmit integration testing (except galaxy-app) | ||
galaxy-job-execution@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/job_execution | ||
galaxy-job-execution | ||
edam-ontology | ||
dictobj | ||
galaxy-test-base@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/test_base | ||
galaxy-app@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/app | ||
galaxy-webapps@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/webapps | ||
galaxy-test-driver@git+https://github.com/galaxyproject/galaxy.git@release_22.05#subdirectory=packages/test_driver | ||
galaxy-test-base | ||
galaxy-app | ||
galaxy-test-driver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,3 +94,23 @@ def test_map_with_default_rules_in_dedicated_file(self): | |
] | ||
destination = self._map_to_destination(tool, user, datasets=[], tpv_config_files=tpv_config_files) | ||
self.assertEqual('--cores=8 --mem=250', destination.params.get('submit_native_specification')) | ||
|
||
def test_destination_inherits_runner_from_default(self): | ||
tool_id = 'kraken2' | ||
user = mock_galaxy.User('benjy', '[email protected]') | ||
tool = mock_galaxy.Tool(tool_id) | ||
datasets = [mock_galaxy.DatasetAssociation("test", mock_galaxy.Dataset("test.txt", file_size=5*1024**3))] | ||
destination = self._map_to_destination(tool, user, datasets) | ||
self.assertEqual('destination_that_inherits_runner_from_default', destination.id) | ||
self.assertEqual('local', destination.runner) | ||
|
||
def test_general_destination_inheritance(self): | ||
tool_id = 'kraken5' | ||
user = mock_galaxy.User('frankie', '[email protected]') | ||
tool = mock_galaxy.Tool(tool_id) | ||
datasets = [mock_galaxy.DatasetAssociation("test", mock_galaxy.Dataset("test.txt", file_size=5*1024**3))] | ||
destination = self._map_to_destination(tool, user, datasets) | ||
self.assertEqual('destination_that_inherits_everything_from_k8s', destination.id) | ||
self.assertTrue('ABC' in [e.get('name') for e in destination.env]) | ||
self.assertEqual('extra-args', destination.params.get('docker_extra')) | ||
self.assertEqual('k8s', destination.runner) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters