toil.test.server.serverTest¶
Attributes¶
Classes¶
Tests for the utility functions used by the Toil server. |
|
Test file-based state storage. |
|
Test file-based state storage using URLs instead of local paths. |
|
Base class for tests that need a bucket. |
|
Test AWS-based state storage. |
|
Class for server tests that provides a self.app in testing mode. |
|
Tests for Toil's Workflow Execution Service API that don't run workflows. |
|
Tests of the WES server running workflows. |
|
End-to-end workflow-running tests against Celery. |
|
Test the server with Celery and state stored in S3. |
Module Contents¶
- toil.test.server.serverTest.logger¶
- class toil.test.server.serverTest.ToilServerUtilsTest(methodName='runTest')[source]¶
Bases:
toil.test.ToilTest
Tests for the utility functions used by the Toil server.
Bases:
toil.test.ToilTest
Basic tests for state stores.
Make a state store to test, on a single fixed URL.
- Return type:
Make sure that the state store under test can store and load keys.
- Return type:
None
- class toil.test.server.serverTest.FileStateStoreTest(methodName='runTest')[source]¶
Bases:
hidden
Test file-based state storage.
- setUp()[source]¶
Hook method for setting up the test fixture before exercising it.
- Return type:
None
- class toil.test.server.serverTest.FileStateStoreURLTest(methodName='runTest')[source]¶
Bases:
hidden
Test file-based state storage using URLs instead of local paths.
- setUp()[source]¶
Hook method for setting up the test fixture before exercising it.
- Return type:
None
- class toil.test.server.serverTest.BucketUsingTest(methodName='runTest')[source]¶
Bases:
toil.test.ToilTest
Base class for tests that need a bucket.
- class toil.test.server.serverTest.AWSStateStoreTest(methodName='runTest')[source]¶
Bases:
hidden
,BucketUsingTest
Test AWS-based state storage.
- bucket_path = 'prefix/of/keys'¶
- class toil.test.server.serverTest.AbstractToilWESServerTest(*args, **kwargs)[source]¶
Bases:
toil.test.ToilTest
Class for server tests that provides a self.app in testing mode.
- class toil.test.server.serverTest.ToilWESServerBenchTest(*args, **kwargs)[source]¶
Bases:
AbstractToilWESServerTest
Tests for Toil’s Workflow Execution Service API that don’t run workflows.
- class toil.test.server.serverTest.ToilWESServerWorkflowTest(*args, **kwargs)[source]¶
Bases:
AbstractToilWESServerTest
Tests of the WES server running workflows.
- run_zip_workflow(zip_path, include_message=True, include_params=True)[source]¶
We have several zip file tests; this submits a zip file and makes sure it ran OK.
If include_message is set to False, don’t send a “message” argument in workflow_params. If include_params is also set to False, don’t send workflow_params at all.
- test_run_workflow_relative_url_no_attachments_fails()[source]¶
Test run example CWL workflow from relative workflow URL but with no attachments.
- Return type:
None
- test_run_workflow_relative_url()[source]¶
Test run example CWL workflow from relative workflow URL.
- Return type:
None
- test_run_workflow_https_url()[source]¶
Test run example CWL workflow from the Internet.
- Return type:
None
- test_run_workflow_single_file_zip()[source]¶
Test run example CWL workflow from single-file ZIP.
- Return type:
None
- test_run_workflow_multi_file_zip()[source]¶
Test run example CWL workflow from multi-file ZIP.
- Return type:
None
- test_run_workflow_manifest_zip()[source]¶
Test run example CWL workflow from ZIP with manifest.
- Return type:
None
- test_run_workflow_inputs_zip()[source]¶
Test run example CWL workflow from ZIP without manifest but with inputs.
- Return type:
None
- test_run_workflow_manifest_and_inputs_zip()[source]¶
Test run example CWL workflow from ZIP with manifest and inputs.
- Return type:
None
- class toil.test.server.serverTest.ToilWESServerCeleryWorkflowTest(*args, **kwargs)[source]¶
Bases:
ToilWESServerWorkflowTest
End-to-end workflow-running tests against Celery.
- class toil.test.server.serverTest.ToilWESServerCeleryS3StateWorkflowTest(*args, **kwargs)[source]¶
Bases:
ToilWESServerWorkflowTest
,BucketUsingTest
Test the server with Celery and state stored in S3.