Warning
This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.
tool_shed.test.functional package¶
Submodules¶
tool_shed.test.functional.test_0000_basic_repository_features module¶
-
class
tool_shed.test.functional.test_0000_basic_repository_features.
TestBasicRepositoryFeatures
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test core repository features.
-
test_0005_create_repository_without_categories
()[source]¶ Verify that a repository cannot be created unless at least one category has been defined.
-
test_0025_change_repository_category
()[source]¶ Change the categories associated with the filtering repository
-
test_0045_alter_repository_states
()[source]¶ Test toggling the malicious and deprecated repository flags.
-
test_0050_display_repository_tip_file
()[source]¶ Display the contents of filtering.xml in the repository tip revision
-
test_0055_upload_filtering_txt_file
()[source]¶ Upload filtering.txt file associated with tool version 1.1.0.
-
test_0070_verify_filtering_repository
()[source]¶ Verify the new tool versions and repository metadata.
-
test_0075_upload_readme_txt_file
()[source]¶ Upload readme.txt file associated with tool version 2.2.0.
-
test_0085_search_for_valid_filter_tool
()[source]¶ Search for the filtering tool by tool ID, name, and version.
-
test_0090_verify_repository_metadata
()[source]¶ Verify that resetting the metadata does not change it.
-
test_0095_verify_reserved_repository_name_handling
()[source]¶ Check that reserved repository names are handled correctly.
-
test_0100_verify_reserved_username_handling
()[source]¶ Check that reserved usernames are handled correctly.
-
test_0105_contact_repository_owner
()[source]¶ Fill out and submit the form to contact the owner of a repository.
-
test_0110_delete_filtering_repository
()[source]¶ Delete the filtering_0000 repository and verify that it no longer has any downloadable revisions.
-
test_0115_undelete_filtering_repository
()[source]¶ Undelete the filtering_0000 repository and verify that it now has two downloadable revisions.
-
test_0120_enable_email_notifications
()[source]¶ Enable email notifications for test user 2 on filtering_0000.
-
test_0125_upload_new_readme_file
()[source]¶ Upload a new readme file to the filtering_0000 repository and verify that there is no error.
-
test_0130_verify_handling_of_invalid_characters
()[source]¶ Load the above changeset in the change log and confirm that there is no server error displayed.
-
tool_shed.test.functional.test_0010_repository_with_tool_dependencies module¶
-
tool_shed.test.functional.test_0010_repository_with_tool_dependencies.
repository_long_description
= "Long description of Galaxy's freebayes tool"¶ Create repository freebayes_0020 and upload only the tool XML.
Upload the tool_data_table_conf.xml.sample file.
Upload sam_fa_indices.loc.sample.
Upload a tool_dependencies.xml file that should not parse correctly.
Upload a tool_dependencies.xml file that specifies a version that does not match the tool’s requirements.
Upload a valid tool_dependencies.xml file.
Check for the appropriate strings on the manage repository page.
-
class
tool_shed.test.functional.test_0010_repository_with_tool_dependencies.
TestFreebayesRepository
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Testing freebayes with tool data table entries, .loc files, and tool dependencies.
-
test_0000_create_or_login_admin_user
()[source]¶ Create necessary user accounts and login as an admin user.
-
test_0010_create_freebayes_repository_and_upload_tool_xml
()[source]¶ Create freebayes repository and upload only freebayes.xml.
-
test_0015_upload_missing_tool_data_table_conf_file
()[source]¶ Upload the missing tool_data_table_conf.xml.sample file to the repository.
-
test_0020_upload_missing_sample_loc_file
()[source]¶ Upload the missing sam_fa_indices.loc.sample file to the repository.
-
test_0025_upload_malformed_tool_dependency_xml
()[source]¶ Upload tool_dependencies.xml with bad characters in the readme tag.
-
test_0030_upload_invalid_tool_dependency_xml
()[source]¶ Upload tool_dependencies.xml defining version 0.9.5 of the freebayes package.
-
tool_shed.test.functional.test_0020_basic_repository_dependencies module¶
-
class
tool_shed.test.functional.test_0020_basic_repository_dependencies.
TestBasicRepositoryDependencies
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Testing emboss 5 with repository dependencies.
-
test_0010_create_emboss_datatypes_repository_and_upload_tarball
()[source]¶ Create and populate the emboss_datatypes repository.
-
test_0015_verify_datatypes_in_datatypes_repository
()[source]¶ Verify that the emboss_datatypes repository contains datatype entries.
-
test_0020_create_emboss_5_repository_and_upload_files
()[source]¶ Create and populate the emboss_5_0020 repository.
-
test_0025_generate_and_upload_repository_dependencies_xml
()[source]¶ Generate and upload the repository_dependencies.xml file
-
tool_shed.test.functional.test_0030_repository_dependency_revisions module¶
-
class
tool_shed.test.functional.test_0030_repository_dependency_revisions.
TestRepositoryDependencyRevisions
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test dependencies on different revisions of a repository.
-
test_0020_create_emboss_datatypes_repository
()[source]¶ Create and populate the emboss_datatypes_0030 repository.
-
test_0030_generate_repository_dependencies_for_emboss_5
()[source]¶ Generate a repository_dependencies.xml file specifying emboss_datatypes and upload it to the emboss_5 repository.
-
test_0035_generate_repository_dependencies_for_emboss_6
()[source]¶ Generate a repository_dependencies.xml file specifying emboss_datatypes and upload it to the emboss_6 repository.
-
test_0040_generate_repository_dependency_on_emboss_5
()[source]¶ Create and upload repository_dependencies.xml for the emboss_5_0030 repository.
-
test_0045_generate_repository_dependency_on_emboss_6
()[source]¶ Create and upload repository_dependencies.xml for the emboss_6_0030 repository.
-
tool_shed.test.functional.test_0040_repository_circular_dependencies module¶
-
class
tool_shed.test.functional.test_0040_repository_circular_dependencies.
TestRepositoryCircularDependencies
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Verify that the code correctly displays repositories with circular repository dependencies.
-
test_0020_create_dependency_on_freebayes
()[source]¶ Upload a repository_dependencies.xml file that specifies the current revision of freebayes to the filtering_0040 repository.
-
test_0025_create_dependency_on_filtering
()[source]¶ Upload a repository_dependencies.xml file that specifies the current revision of filtering to the freebayes_0040 repository.
-
test_0030_verify_repository_dependencies
()[source]¶ Verify that each repository can depend on the other without causing an infinite loop.
-
tool_shed.test.functional.test_0050_circular_dependencies_4_levels module¶
-
class
tool_shed.test.functional.test_0050_circular_dependencies_4_levels.
TestRepositoryCircularDependenciesToNLevels
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Verify that the code correctly handles circular dependencies down to n levels.
-
test_0045_verify_repository_dependencies
()[source]¶ Verify that the generated dependency circle does not cause an infinite loop. Expected structure:
- id: 2 key: http://toolshed.local:10001__ESEP__filtering__ESEP__test__ESEP__871602b4276b
- [‘http://toolshed.local:10001’, ‘emboss_5’, ‘test’, ‘8de5fe0d7b04’]
- id: 3 key: http://toolshed.local:10001__ESEP__emboss_datatypes__ESEP__test__ESEP__dbd4f68bf507
[‘http://toolshed.local:10001’, ‘freebayes’, ‘test’, ‘f40028114098’]
- id: 4 key: http://toolshed.local:10001__ESEP__freebayes__ESEP__test__ESEP__f40028114098
[‘http://toolshed.local:10001’, ‘emboss_datatypes’, ‘test’, ‘dbd4f68bf507’] [‘http://toolshed.local:10001’, ‘emboss_5’, ‘test’, ‘8de5fe0d7b04’] [‘http://toolshed.local:10001’, ‘column_maker’, ‘test’, ‘83e956bdbac0’]
- id: 5 key: http://toolshed.local:10001__ESEP__column_maker__ESEP__test__ESEP__83e956bdbac0
[‘http://toolshed.local:10001’, ‘convert_chars’, ‘test’, ‘b28134220c8a’]
- id: 6 key: http://toolshed.local:10001__ESEP__convert_chars__ESEP__test__ESEP__b28134220c8a
[‘http://toolshed.local:10001’, ‘column_maker’, ‘test’, ‘83e956bdbac0’]
- id: 7 key: http://toolshed.local:10001__ESEP__emboss_5__ESEP__test__ESEP__8de5fe0d7b04
[‘http://toolshed.local:10001’, ‘emboss_datatypes’, ‘test’, ‘dbd4f68bf507’]
-
tool_shed.test.functional.test_0070_invalid_tool module¶
-
class
tool_shed.test.functional.test_0070_invalid_tool.
TestBismarkRepository
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Testing bismark with valid and invalid tool entries.
tool_shed.test.functional.test_0080_advanced_circular_dependencies module¶
-
class
tool_shed.test.functional.test_0080_advanced_circular_dependencies.
TestRepositoryCircularDependencies
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Verify that the code correctly handles circular dependencies.
-
test_0020_create_repository_dependencies
()[source]¶ Upload a repository_dependencies.xml file that specifies the current revision of convert_chars_0080 to the column_maker_0080 repository.
-
test_0025_create_dependency_on_filtering
()[source]¶ Upload a repository_dependencies.xml file that specifies the current revision of filtering to the freebayes_0040 repository.
-
tool_shed.test.functional.test_0090_tool_search module¶
-
class
tool_shed.test.functional.test_0090_tool_search.
TestRepositoryCircularDependenciesAgain
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test more features related to repository dependencies.
tool_shed.test.functional.test_0100_complex_repository_dependencies module¶
-
class
tool_shed.test.functional.test_0100_complex_repository_dependencies.
TestComplexRepositoryDependencies
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test features related to complex repository dependencies.
-
test_0015_generate_complex_repository_dependency_invalid_shed_url
()[source]¶ Generate and upload a complex repository definition that specifies an invalid tool shed URL.
-
test_0020_generate_complex_repository_dependency_invalid_repository_name
()[source]¶ Generate and upload a complex repository definition that specifies an invalid repository name.
-
test_0025_generate_complex_repository_dependency_invalid_owner_name
()[source]¶ Generate and upload a complex repository definition that specifies an invalid owner.
-
test_0030_generate_complex_repository_dependency_invalid_changeset_revision
()[source]¶ Generate and upload a complex repository definition that specifies an invalid changeset revision.
-
tool_shed.test.functional.test_0110_invalid_simple_repository_dependencies module¶
-
class
tool_shed.test.functional.test_0110_invalid_simple_repository_dependencies.
TestBasicRepositoryDependencies
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Testing emboss 5 with repository dependencies.
-
test_0010_create_emboss_datatypes_repository_and_upload_tarball
()[source]¶ Create and populate the emboss_datatypes repository.
-
test_0015_verify_datatypes_in_datatypes_repository
()[source]¶ Verify that the emboss_datatypes repository contains datatype entries.
-
test_0020_create_emboss_5_repository_and_upload_files
()[source]¶ Create and populate the emboss_5_0110 repository.
-
test_0025_generate_repository_dependency_with_invalid_url
()[source]¶ Generate a repository dependency for emboss 5 with an invalid URL.
-
test_0030_generate_repository_dependency_with_invalid_name
()[source]¶ Generate a repository dependency for emboss 5 with an invalid name.
-
tool_shed.test.functional.test_0120_simple_repository_dependency_multiple_owners module¶
-
tool_shed.test.functional.test_0120_simple_repository_dependency_multiple_owners.
tool_repository_long_description
= 'Make a table from BLAST XML'¶ Tool shed side:
1) Create and populate blast_datatypes_0120. 1a) Check for appropriate strings. 2) Create and populate blastxml_to_top_descr_0120. 2a) Check for appropriate strings. 3) Upload repository_dependencies.xml to blastxml_to_top_descr_0120 that defines a relationship to blast_datatypes_0120. 3a) Check for appropriate strings.
-
class
tool_shed.test.functional.test_0120_simple_repository_dependency_multiple_owners.
TestRepositoryMultipleOwners
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
-
test_0005_create_datatypes_repository
()[source]¶ Create and populate the blast_datatypes_0120 repository
-
test_0015_create_tool_repository
()[source]¶ Create and populate the blastxml_to_top_descr_0120 repository
-
tool_shed.test.functional.test_0130_datatype_converters module¶
-
tool_shed.test.functional.test_0130_datatype_converters.
category_description
= 'Test 0130 Datatype Converters'¶ Create a populate the bed_to_gff_converter repository
Visit the manage repository page and make sure there is the appropriate valid too and datatype
Visit the view tool metadata page and make sure that “Display in tool panel” is False
-
class
tool_shed.test.functional.test_0130_datatype_converters.
TestDatatypeConverters
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test features related to datatype converters.
tool_shed.test.functional.test_0140_tool_help_images module¶
-
tool_shed.test.functional.test_0140_tool_help_images.
category_description
= 'Test 0140 Tool Help Images'¶ Create and populate the htseq_count_0140 repository.
Visit the manage_repository page.
Simulate clicking the htseq_count tool button.
On the resulting display tool page, look for the image string similar to the following string where the encoded repository_id is previously determined:
src=”/repository/static/images/<id>/count_modes.png”
-
class
tool_shed.test.functional.test_0140_tool_help_images.
TestToolHelpImages
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test features related to tool help images.
tool_shed.test.functional.test_0150_prior_installation_required module¶
-
tool_shed.test.functional.test_0150_prior_installation_required.
category_description
= 'Test 0150 Simple Prior Installation'¶ Create column_maker and convert_chars.
Column maker repository dependency: <repository toolshed=”self.url” name=”convert_chars” owner=”test” changeset_revision=”c3041382815c” prior_installation_required=”True” />
Verify display.
Galaxy side:
Install column_maker. Verify that convert_chars was installed first, contrary to the ordering that would be present without prior_installation_required.
-
class
tool_shed.test.functional.test_0150_prior_installation_required.
TestSimplePriorInstallation
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test features related to datatype converters.
tool_shed.test.functional.test_0160_circular_prior_installation_required module¶
-
tool_shed.test.functional.test_0160_circular_prior_installation_required.
category_description
= 'Test 0160 Simple Prior Installation'¶ Create column_maker and convert_chars.
Column maker repository dependency: <repository toolshed=”self.url” name=”convert_chars” owner=”test” changeset_revision=”c3041382815c” prior_installation_required=”True” />
Verify display.
-
class
tool_shed.test.functional.test_0160_circular_prior_installation_required.
TestSimplePriorInstallation
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test features related to datatype converters.
tool_shed.test.functional.test_0170_complex_prior_installation_required module¶
-
tool_shed.test.functional.test_0170_complex_prior_installation_required.
category_description
= 'Test 0170 Prior Installation Complex Dependencies'¶ Create and populate repositories package_matplotlib_1_2_0170 and package_numpy_1_7_0170.
Create a complex repository dependency on package_numpy_1_7_0170, and upload this to package_matplotlib_1_2_0170.
Verify that package_matplotlib_1_2_0170 now depends on package_numpy_1_7_0170, and that the inherited tool dependency displays correctly.
-
class
tool_shed.test.functional.test_0170_complex_prior_installation_required.
TestComplexPriorInstallation
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test features related to datatype converters.
-
test_0005_create_matplotlib_repository
()[source]¶ Create and populate the package_matplotlib_1_2_0170 repository.
-
test_0010_create_numpy_repository
()[source]¶ Create and populate the package_numpy_1_7_0170 repository.
-
tool_shed.test.functional.test_0300_reset_all_metadata module¶
-
class
tool_shed.test.functional.test_0300_reset_all_metadata.
TestResetAllRepositoryMetadata
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Verify that the “Reset selected metadata” feature works.
-
test_0015_create_datatypes_0020_repository
()[source]¶ Create and populate the emboss_datatypes_0020 repository.
-
test_0025_create_emboss_datatypes_0030_repository
()[source]¶ Create and populate the emboss_0030 repository.
-
test_0045_create_repository_dependencies_for_0030
()[source]¶ Create the dependency structure for test 0030.
-
tool_shed.test.functional.test_0310_hg_api_features module¶
-
tool_shed.test.functional.test_0310_hg_api_features.
category_description
= 'Test 0310 for verifying the tool shed http interface to mercurial.'¶ Create a repository.
Clone the repository to a local path.
-
class
tool_shed.test.functional.test_0310_hg_api_features.
TestHgWebFeatures
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test http mercurial interface.
tool_shed.test.functional.test_0400_repository_component_reviews module¶
-
tool_shed.test.functional.test_0400_repository_component_reviews.
repository_long_description
= 'Long description of Galaxy filtering tool for test 0400'¶ Create users.
Grant reviewer role to test_user_2.
Check that the review components that are to be tested are defined in this tool shed instance.
Create a repository, owned by test_user_1, to be reviewed by test_user_2.
Review the datatypes component on the repository.
Check that no other components besides datatypes display as reviewed.
Review the functional tests component on the repository.
Check that only functional tests and datatypes display as reviewed.
Review the readme component on the repository.
Check that only functional tests, datatypes, and readme display as reviewed.
Review the repository dependencies component.
Check that only repository dependencies, functional tests, datatypes, and readme display as reviewed.
Review the tool dependencies component.
Check that only tool dependencies, repository dependencies, functional tests, datatypes, and readme display as reviewed.
Review the tools component.
Check that only tools, tool dependencies, repository dependencies, functional tests, datatypes, and readme display as reviewed.
Review the workflows component.
Check that all components display as reviewed.
Upload readme.txt to the repository.
Copy the previous review, and update the readme component review to reflect the existence of a readme file.
Check that the readme component review has been updated, and the other component reviews are present.
Upload test data to the repository. This will also create a new changeset revision.
Review the functional tests component on the repository, copying the other components from the previous review.
Verify that the functional tests component review has been updated, and as in step 21, the other reviews are unchanged.
Upload a new version of the tool.
Review the new revision’s functional tests component.
Verify that the functional tests component review displays correctly.
-
class
tool_shed.test.functional.test_0400_repository_component_reviews.
TestRepositoryComponentReviews
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test repository component review features.
-
test_0010_verify_repository_review_components
()[source]¶ Ensure that the required review components exist.
-
test_0020_review_initial_revision_data_types
()[source]¶ Review the datatypes component for the current tip revision.
-
test_0025_verify_datatype_review
()[source]¶ Verify that the datatypes component review displays correctly.
-
test_0030_review_initial_revision_functional_tests
()[source]¶ Review the functional tests component for the current tip revision.
-
test_0035_verify_functional_test_review
()[source]¶ Verify that the functional tests component review displays correctly.
-
test_0045_verify_readme_review
()[source]¶ Verify that the readme component review displays correctly.
-
test_0050_review_repository_dependencies
()[source]¶ Review the repository dependencies component for the current tip revision.
-
test_0055_verify_repository_dependency_review
()[source]¶ Verify that the repository dependencies component review displays correctly.
-
test_0060_review_tool_dependencies
()[source]¶ Review the tool dependencies component for the current tip revision.
-
test_0065_verify_tool_dependency_review
()[source]¶ Verify that the tool dependencies component review displays correctly.
-
test_0085_verify_workflows_review
()[source]¶ Verify that the workflows component review displays correctly.
-
test_0095_review_new_changeset_readme_component
()[source]¶ Update the filtering repository’s readme component review to reflect the presence of the readme file.
-
test_0100_verify_readme_review
()[source]¶ Verify that the readme component review displays correctly.
-
test_0110_review_new_changeset_functional_tests
()[source]¶ Update the filtering repository’s readme component review to reflect the presence of the readme file.
-
test_0115_verify_functional_tests_review
()[source]¶ Verify that the functional tests component review displays correctly.
-
tool_shed.test.functional.test_0410_repository_component_review_access_control module¶
-
tool_shed.test.functional.test_0410_repository_component_review_access_control.
repository_long_description
= 'Long description of Galaxy filtering tool for test 0410'¶ Create a repository in the tool shed owned by test_user_1.
Have test_user_2 complete a review of the repository.
Have test_user_1 browse the review.
Have test_user_3 browse the repository and make sure they are not allowed to browse the review.
Have test_user_1 give write permission on the repository to the test_user_3.
Have test_user_3 browse the repository again and they should now have the ability to browse the review.
Have test_user_3 browse the review.
-
class
tool_shed.test.functional.test_0410_repository_component_review_access_control.
TestRepositoryComponentReviews
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test repository component review features.
-
test_0010_verify_repository_review_components
()[source]¶ Ensure that the required review components exist.
-
test_0025_verify_repository_review
()[source]¶ Verify that the review was completed and displays properly.
-
test_0030_browse_with_other_user
()[source]¶ Verify that test_user_3 is blocked from browsing the review.
-
test_0035_grant_write_access_to_other_user
()[source]¶ Grant write access on the filtering_0410 repository to test_user_3.
-
tool_shed.test.functional.test_0420_citable_urls_for_repositories module¶
-
tool_shed.test.functional.test_0420_citable_urls_for_repositories.
first_changeset_hash
= ''¶ Add and populate a repository to the tool shed with change set revision 0 (assume owner is test).
Add valid change set revision 1.
Visit the following url and check for appropriate strings: <tool shed base url>/view/user1
- Visit the following url and check for appropriate strings: <tool shed base url>/view/user1/filtering_0420
Resulting page should contain change set revision 1
- Visit the following url and check for appropriate strings: <tool shed base url>/view/user1/filtering_0420/<revision 0>
Resulting page should not contain change set revision 1, but should contain change set revision 0.
Visit the following url and check for appropriate strings: <tool shed base url>/view/user1/filtering_0420/<invalid revision>
Visit the following url and check for appropriate strings: <tool shed base url>/view/user1/<invalid repository name>
Visit the following url and check for appropriate strings: <tool shed base url>/view/<invalid owner>
-
class
tool_shed.test.functional.test_0420_citable_urls_for_repositories.
TestRepositoryCitableURLs
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test repository citable url features.
-
test_0010_upload_new_file_to_repository
()[source]¶ Upload a readme file to the repository in order to create a second changeset revision.
-
test_0020_load_repository_view_page
()[source]¶ Load the /view/<user>/<repository> page and check for the appropriate strings.
-
test_0025_load_view_page_for_previous_revision
()[source]¶ Load a citable url for a past changeset revision and verify that strings display.
-
test_0030_load_sharable_url_with_invalid_changeset_revision
()[source]¶ Load a citable url with an invalid changeset revision specified.
-
tool_shed.test.functional.test_0430_browse_utilities module¶
-
tool_shed.test.functional.test_0430_browse_utilities.
freebayes_repository_long_description
= 'Long description of Freebayes tool for test 0430'¶ Create and populate repositories.
Browse Custom Datatypes.
Browse Tools.
Browse Repository Dependencies.
Browse Tool Dependencies.
-
class
tool_shed.test.functional.test_0430_browse_utilities.
TestToolShedBrowseUtilities
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test browsing for Galaxy utilities.
-
test_0005_create_datatypes_repository
()[source]¶ Create and populate the emboss_datatypes_0430 repository
-
test_0015_create_dependency_on_datatypes_repository
()[source]¶ Create a dependency definition file that specifies emboss_datatypes_0430 and upload it to emboss_0430.
-
test_0020_create_tool_dependency_repository
()[source]¶ Create and populate the freebayes_0430 repository
-
tool_shed.test.functional.test_0440_deleting_dependency_definitions module¶
-
tool_shed.test.functional.test_0440_deleting_dependency_definitions.
bwa_tool_dependency_repository_long_description
= 'NT space mapping with BWA'¶ Simple repository dependencies:
Create and populate column_maker_0440 so that it has an installable revision 0.
Create and populate convert_chars_0440 so that it has an installable revision 0.
Add a valid simple repository_dependencies.xml to convert_chars_0440 that points to the installable revision of column_maker_0440.
Make sure the installable revision of convert_chars_0440 is now revision 1 instead of revision 0.
Delete repository_dependencies.xml from convert_chars_0440, and make sure convert_chars_0440 now has two installable revisions: 1 and 2
Complex repository dependencies:
Create and populate bwa_package_0440 so that it has a valid tool dependency definition and an installable revision 0.
Create and populate bwa_base_0440 so that it has an installable revision 0.
Add a valid complex repository dependency tool_dependencies.xml to bwa_base_0440 that points to the installable revision 0 of bwa_package_0440.
Make sure that bwa_base_0440 installable revision is now revision 1 instead of revision 0.
Delete tool_dependencies.xml from bwa_base_0440, and make sure bwa_base_0440 now has two installable revisions: 1 and 2
Tool dependencies:
Create and populate bwa_tool_dependency_0440 so that it has a valid tool dependency definition and an installable revision 0.
Delete tool_dependencies.xml from bwa_tool_dependency_0440, and make sure that bwa_tool_dependency_0440 still has a single installable revision 0.
Add the same tool_dependencies.xml file to bwa_tool_dependency_0440, and make sure that bwa_tool_dependency_0440 still has a single installable revision 0.
-
class
tool_shed.test.functional.test_0440_deleting_dependency_definitions.
TestDeletedDependencies
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test metadata setting when dependency definitions are deleted.
-
test_0005_create_column_maker_repository
()[source]¶ Create and populate a repository named column_maker_0440.
-
test_0010_create_convert_chars_repository
()[source]¶ Create and populate a repository named convert_chars_0440.
-
test_0015_create_dependency_on_convert_chars
()[source]¶ Create a dependency definition file that specifies column_maker_0440 and upload it to convert_chars_0440.
-
test_0020_verify_dependency_metadata
()[source]¶ Verify that uploading the dependency moved metadata to the tip.
-
test_0025_delete_repository_dependency
()[source]¶ Delete the repository_dependencies.xml from convert_chars_0440.
-
test_0030_create_bwa_package_repository
()[source]¶ Create and populate the bwa_package_0440 repository.
-
test_0040_create_dependency_on_bwa_package_repository
()[source]¶ Create a complex repository dependency on bwa_package_0440 and upload it to bwa_tool_0440.
-
test_0045_verify_dependency_metadata
()[source]¶ Verify that uploading the dependency moved metadata to the tip.
-
test_0050_delete_complex_repository_dependency
()[source]¶ Delete the tool_dependencies.xml from bwa_base_0440.
-
test_0055_create_bwa_tool_dependency_repository
()[source]¶ Create and populate the bwa_tool_dependency_0440 repository.
-
tool_shed.test.functional.test_0460_upload_to_repository module¶
-
tool_shed.test.functional.test_0460_upload_to_repository.
bwa_repository_long_description
= 'bwa (alignment via Burrows-Wheeler transformation) 0.5.9-r16 by Heng Li'¶ For all steps, verify that the generated dependency points to the tip of the specified repository.
Create and populate emboss_datatypes_0460.
Create and populate package_bwa_0_5_9_0460
Create complex_dependency_test_1_0460, complex_dependency_test_2_0460, complex_dependency_test_3_0460, complex_dependency_test_4_0460, complex_dependency_test_5_0460.
Upload an uncompressed tool_dependencies.xml to complex_dependency_test_1_0460 that specifies a complex repository dependency on package_bwa_0_5_9_0460 without a specified changeset revision or tool shed url.
Upload a tarball to complex_dependency_test_2_0460 with a tool_dependencies.xml in the root of the tarball.
Upload a tarball to complex_dependency_test_3_0460 with a tool_dependencies.xml in a subfolder within the tarball.
Create hg_tool_dependency_0460 and hg_subfolder_tool_dependency_0460 and populate with tool dependencies.
Upload to complex_dependency_test_4_0460 using the url hg://<tool shed url>/repos/user1/hg_tool_dependency_0460.
Upload to complex_dependency_test_5_0460 using the url hg://<tool shed url>/repos/user1/hg_subfolder_tool_dependency_0460.
Create repository_dependency_test_1_0460, repository_dependency_test_2_0460, repository_dependency_test_3_0460, repository_dependency_test_4_0460, repository_dependency_test_4_0460.
Upload an uncompressed repository_dependencies.xml to repository_dependency_test_1_0460 that specifies a repository dependency on emboss_datatypes_0460 without a specified changeset revision or tool shed url.
Upload a tarball to repository_dependency_test_1_0460 with a repository_dependencies.xml in the root of the tarball.
Upload a tarball to repository_dependency_test_1_0460 with a repository_dependencies.xml in a subfolder within the tarball.
Create hg_repository_dependency_0460 and populate with repository_dependencies.xml.
Upload to repository_dependency_test_4_0460 using the url hg://<tool shed url>/repos/user1/hg_repository_dependency_0460.
Upload to repository_dependency_test_5_0460 using the url hg://<tool shed url>/repos/user1/hg_repository_dependency_0460.
-
class
tool_shed.test.functional.test_0460_upload_to_repository.
TestAutomaticDependencyRevision
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test defining repository dependencies without specifying the changeset revision.
-
test_0005_create_datatypes_repository
()[source]¶ Create and populate the emboss_datatypes_0460 repository
-
test_0010_create_bwa_package_repository
()[source]¶ Create and populate the package_bwa_0_5_9_0460 repository.
-
test_0015_create_tool_dependency_repositories
()[source]¶ Create repositories for testing complex dependency generation.
-
test_0020_populate_complex_dependency_test_1_0460
()[source]¶ Populate complex_dependency_test_1_0460.
-
test_0025_populate_complex_dependency_test_2_0460
()[source]¶ Populate complex_dependency_test_2_0460.
-
test_0030_populate_complex_dependency_test_3_0460
()[source]¶ Populate complex_dependency_test_3_0460.
-
test_0035_create_repositories_for_url_upload
()[source]¶ Create and populate hg_tool_dependency_0460 and hg_subfolder_tool_dependency_0460.
-
test_0050_create_repositories_for_simple_dependencies
()[source]¶ Create repositories for testing simple dependency generation.
-
test_0055_populate_repository_dependency_test_1_0460
()[source]¶ Populate repository_dependency_test_1_0460.
-
test_0060_populate_repository_dependency_test_2_0460
()[source]¶ Populate repository_dependency_test_2_0460.
-
test_0065_populate_repository_dependency_test_3_0460
()[source]¶ Populate repository_dependency_test_3_0460.
-
tool_shed.test.functional.test_0470_tool_dependency_repository_type module¶
-
tool_shed.test.functional.test_0470_tool_dependency_repository_type.
emboss_repository_long_description
= 'Galaxy wrappers for Emboss version 5.0.0 tools'¶ Create and populate a repository named package_x11_client_1_5_proto_7_0 that contains only a single file named tool_dependencies.xml. Keep the repository type as the default “Unrestricted”.
Create a repository named package_emboss_5_0_0 of type “Unrestricted” that has a repository dependency definition that defines the above package_x11_client_1_5_proto_7_0 repository. Upload the tool_dependencies.xml file such that it does not have a changeset_revision defined so it will get automatically populated.
Create a repository named emboss_5 of type “Unrestricted” that has a tool-dependencies.xml file defining a complex repository dependency on the package_emboss_5_0_0 repository above. Upload the tool_dependencies.xml file such that it does not have a change set_revision defined so it will get automatically populated.
Add a comment to the tool_dependencies.xml file to be uploaded to the package_x11_client_1_5_prot_7_0 repository, creating a new installable changeset revision at the repository tip.
Add a comment to the tool_dependencies.xml file for the package_emboss_5_0_0 repository, eliminating the change set_revision attribute so that it gets automatically populated when uploaded. After uploading the file, the package_emboss_5_0_0 repository should have 2 installable changeset revisions.
Add a comment to the tool_dependencies.xml file in the emboss_5 repository, eliminating the changeset_revision attribute so that it gets automatically populated when uploaded. After uploading the file, the emboss5 repository should have 2 installable metadata revisions.
Change the repository type of the package_x11_client_1_5_proto_7_0 repository to be tool_dependency_definition.
Change the repository type of the package_emboss_5_0_0 repository to be tool_dependency_definition.
Reset metadata on the package_emboss_5_0_0 repository. It should now have only its tip as the installable revision.
Reset metadata on the emboss_5 repository. It should now have only its tip as the installable revision.
-
class
tool_shed.test.functional.test_0470_tool_dependency_repository_type.
TestEnvironmentInheritance
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test referencing environment variables that were defined in a separate tool dependency.
-
test_0000_initiate_users_and_category
()[source]¶ Create necessary user accounts and login as an admin user.
-
test_0005_create_libx11_repository
()[source]¶ Create and populate package_x11_client_1_5_proto_7_0_0470.
-
test_0020_upload_updated_tool_dependency_to_package_x11
()[source]¶ Upload a new tool_dependencies.xml to package_x11_client_1_5_proto_7_0_0470.
-
test_0025_upload_updated_tool_dependency_to_package_emboss
()[source]¶ Upload a new tool_dependencies.xml to package_emboss_5_0_0_0470.
-
test_0030_upload_updated_tool_dependency_to_emboss_5_repository
()[source]¶ Upload a new tool_dependencies.xml to emboss_5_0470.
-
test_0035_modify_package_x11_repository_type
()[source]¶ Set package_x11_client_1_5_proto_7_0 type tool_dependency_definition.
-
test_0040_modify_package_emboss_repository_type
()[source]¶ Set package_emboss_5_0_0 to type tool_dependency_definition.
-
tool_shed.test.functional.test_0480_tool_dependency_xml_verification module¶
-
tool_shed.test.functional.test_0480_tool_dependency_xml_verification.
repository_long_description
= 'This repository is in the test suite 0480'¶ Create a repository package_invalid_tool_dependency_xml_1_0_0
Upload a tool_dependencies.xml file to the repository with no <actions> tags around the <action> tags.
Verify error message is displayed.
-
class
tool_shed.test.functional.test_0480_tool_dependency_xml_verification.
TestDependencyDefinitionValidation
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test the tool shed’s tool dependency XML validation.
-
test_0000_initiate_users_and_category
()[source]¶ Create necessary user accounts and login as an admin user.
-
tool_shed.test.functional.test_0530_repository_admin_feature module¶
-
tool_shed.test.functional.test_0530_repository_admin_feature.
category_description
= 'Verify the functionality of the code that handles the repository admin role.'¶ Create new repository as user user1.
Check to make sure a new role was created named <repo_name>_user1_admin.
Check to make sure a new repository_role_association record was created with appropriate repository id and role id.
Change the name of the repository created in step 1 - this can be done as long as the repository has not been installed or cloned.
Make sure the name of the role initially inspected in Step 2 has been changed to reflect the new repository name from Step 4.
Log into the Tool Shed as a user that is not the repository owner (e.g., user2) and make sure the repository name and description cannot be changed.
As user user1, add user user2 as a repository admin user.
Log into the Tool Shed as user user2 and make sure the repository name and description can now be changed.
-
class
tool_shed.test.functional.test_0530_repository_admin_feature.
TestRepositoryAdminRole
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Verify that the code correctly handles the repository admin role.
-
test_0010_verify_repository_admin_role_exists
()[source]¶ Verify that the role filtering_0530_user1_admin exists.
-
tool_shed.test.functional.test_0540_get_all_metadata_from_api module¶
-
tool_shed.test.functional.test_0540_get_all_metadata_from_api.
category_description
= 'Verify API endpoint to retrieve all metadata'¶ Create repository column_maker_0540 as user user1.
Create repository convert_chars_0540 with dependency on column_maker_0540.
Create repository package_bwa_0_5_9_0540.
Create dependency on package_bwa_0_5_9_0540 for convert_chars_0540.
Load /api/repositories/convert_chars_0540.id/metadata and verify contents.
-
class
tool_shed.test.functional.test_0540_get_all_metadata_from_api.
TestGetAllMetadata
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Verify that the code correctly handles the repository admin role.
tool_shed.test.functional.test_0550_metadata_updated_dependencies module¶
-
tool_shed.test.functional.test_0550_metadata_updated_dependencies.
category_description
= 'Verify metadata updates'¶ Create repository package_freebayes_0550.
Create repository package_samtools_0550.
Create repository filtering_0550.
Create dependency on package_freebayes_0550 for filtering_0550.
Create dependency on package_samtools_0550 for filtering_0550.
Update package_freebayes_0550 and package_samtools_0550.
Load /api/repositories/{filtering_0550}.id/metadata and verify contents.
-
class
tool_shed.test.functional.test_0550_metadata_updated_dependencies.
TestGetUpdatedMetadata
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Verify that updated repositories still have correct dependency links.
tool_shed.test.functional.test_1000_install_basic_repository module¶
-
class
tool_shed.test.functional.test_1000_install_basic_repository.
BasicToolShedFeatures
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test installing a basic repository.
-
test_0005_ensure_repositories_and_categories_exist
()[source]¶ Create the 0000 category and upload the filtering repository to it, if necessary.
-
test_0015_browse_test_0000_category
()[source]¶ Browse the category created in test 0000. It should contain the filtering_0000 repository also created in that test.
-
test_0020_preview_filtering_repository
()[source]¶ Load the preview page for the filtering_0000 repository in the tool shed.
-
tool_shed.test.functional.test_1010_install_repository_with_tool_dependencies module¶
-
class
tool_shed.test.functional.test_1010_install_repository_with_tool_dependencies.
ToolWithToolDependencies
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test installing a repository with tool dependencies.
-
test_0005_ensure_repositories_and_categories_exist
()[source]¶ Create the 0010 category and upload the freebayes repository to it, if necessary.
-
test_0010_browse_tool_shed
()[source]¶ Browse the available tool sheds in this Galaxy instance and preview the freebayes tool.
-
test_0015_install_freebayes_repository
()[source]¶ Install the freebayes repository without installing tool dependencies.
-
tool_shed.test.functional.test_1020_install_repository_with_repository_dependencies module¶
-
class
tool_shed.test.functional.test_1020_install_repository_with_repository_dependencies.
ToolWithRepositoryDependencies
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test installing a repository with repository dependencies.
-
test_0005_ensure_repositories_and_categories_exist
()[source]¶ Create the 0020 category and any missing repositories.
-
test_0010_browse_tool_shed
()[source]¶ Browse the available tool sheds in this Galaxy instance and preview the emboss tool.
-
test_0015_install_emboss_repository
()[source]¶ Install the emboss repository without installing tool dependencies.
-
test_0020_verify_installed_repository_metadata
()[source]¶ Verify that resetting the metadata on an installed repository does not change the metadata.
-
tool_shed.test.functional.test_1030_install_repository_with_dependency_revisions module¶
-
class
tool_shed.test.functional.test_1030_install_repository_with_dependency_revisions.
RepositoryWithDependencyRevisions
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test installing a repository with dependency revisions.
-
test_0005_ensure_repositories_and_categories_exist
()[source]¶ Create the 0030 category and add repositories to it, if necessary.
-
test_0010_browse_tool_shed
()[source]¶ Browse the available tool sheds in this Galaxy instance and preview the emboss tool.
-
tool_shed.test.functional.test_1040_install_repository_basic_circular_dependencies module¶
-
class
tool_shed.test.functional.test_1040_install_repository_basic_circular_dependencies.
TestInstallingCircularDependencies
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Verify that the code correctly handles installing repositories with circular dependencies.
-
test_0020_create_repository_dependencies
()[source]¶ Set up the filtering and freebayes repository dependencies.
-
test_0025_install_freebayes_repository
()[source]¶ Install freebayes with blank tool panel section, without tool dependencies but with repository dependencies.
-
test_0030_uninstall_filtering_repository
()[source]¶ Deactivate filtering, verify tool panel section and missing repository dependency.
-
test_0035_reactivate_filtering_repository
()[source]¶ Reinstall filtering into ‘filtering’ tool panel section.
-
tool_shed.test.functional.test_1050_circular_dependencies_4_levels module¶
-
class
tool_shed.test.functional.test_1050_circular_dependencies_4_levels.
TestInstallRepositoryCircularDependencies
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Verify that the code correctly handles circular dependencies down to n levels.
-
test_0045_verify_repository_dependencies
()[source]¶ Verify that the generated dependency circle does not cause an infinite loop. Expected structure:
- id: 2 key: http://toolshed.local:10001__ESEP__filtering__ESEP__test__ESEP__871602b4276b
- [‘http://toolshed.local:10001’, ‘emboss_5’, ‘test’, ‘8de5fe0d7b04’]
- id: 3 key: http://toolshed.local:10001__ESEP__emboss_datatypes__ESEP__test__ESEP__dbd4f68bf507
[‘http://toolshed.local:10001’, ‘freebayes’, ‘test’, ‘f40028114098’]
- id: 4 key: http://toolshed.local:10001__ESEP__freebayes__ESEP__test__ESEP__f40028114098
[‘http://toolshed.local:10001’, ‘emboss_datatypes’, ‘test’, ‘dbd4f68bf507’] [‘http://toolshed.local:10001’, ‘emboss_5’, ‘test’, ‘8de5fe0d7b04’] [‘http://toolshed.local:10001’, ‘column_maker’, ‘test’, ‘83e956bdbac0’]
- id: 5 key: http://toolshed.local:10001__ESEP__column_maker__ESEP__test__ESEP__83e956bdbac0
[‘http://toolshed.local:10001’, ‘convert_chars’, ‘test’, ‘b28134220c8a’]
- id: 6 key: http://toolshed.local:10001__ESEP__convert_chars__ESEP__test__ESEP__b28134220c8a
[‘http://toolshed.local:10001’, ‘column_maker’, ‘test’, ‘83e956bdbac0’]
- id: 7 key: http://toolshed.local:10001__ESEP__emboss_5__ESEP__test__ESEP__8de5fe0d7b04
[‘http://toolshed.local:10001’, ‘emboss_datatypes’, ‘test’, ‘dbd4f68bf507’]
-
test_0050_verify_tool_dependencies
()[source]¶ Check that freebayes and emboss display tool dependencies.
-
tool_shed.test.functional.test_1070_invalid_tool module¶
-
class
tool_shed.test.functional.test_1070_invalid_tool.
TestFreebayesRepository
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test repository with multiple revisions with invalid tools.
-
test_0000_create_or_login_admin_user
()[source]¶ Create necessary user accounts and login as an admin user.
-
test_0005_ensure_existence_of_repository_and_category
()[source]¶ Create freebayes repository and upload only freebayes.xml. This should result in an error message and invalid tool.
-
tool_shed.test.functional.test_1080_advanced_circular_dependency_installation module¶
-
class
tool_shed.test.functional.test_1080_advanced_circular_dependency_installation.
TestRepositoryDependencies
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Testing uninstalling and reinstalling repository dependencies, and setting tool panel sections.
-
test_0000_create_or_login_admin_user
()[source]¶ Create necessary user accounts and login as an admin user.
-
test_0005_create_and_populate_column_repository
()[source]¶ Create the category for this test suite, then create and populate column_maker.
-
test_0010_create_and_populate_convert_repository
()[source]¶ Create and populate the convert_chars repository.
-
test_0015_upload_dependency_xml_if_needed
()[source]¶ If this test is being run by itself, it will not have repository dependencies configured yet.
-
test_0020_install_convert_repository
()[source]¶ Install convert_chars without repository dependencies into convert_chars tool panel section.
-
test_0025_install_column_repository
()[source]¶ Install column maker with repository dependencies into column_maker tool panel section.
-
test_0030_deactivate_convert_repository
()[source]¶ Deactivate convert_chars, verify that column_maker is installed and missing repository dependencies.
-
test_0035_reactivate_convert_repository
()[source]¶ Reactivate convert_chars, both convert_chars and column_maker should now show as installed.
-
test_0040_deactivate_column_repository
()[source]¶ Deactivate column_maker, verify that convert_chars is installed and missing repository dependencies.
-
test_0045_deactivate_convert_repository
()[source]¶ Deactivate convert_chars, verify that both convert_chars and column_maker are deactivated.
-
test_0050_reactivate_column_repository
()[source]¶ Reactivate column_maker. This should not automatically reactivate convert_chars, so column_maker should be displayed as installed but missing repository dependencies.
-
test_0055_reactivate_convert_repository
()[source]¶ Activate convert_chars. Both convert_chars and column_maker should now show as installed.
-
test_0060_uninstall_column_repository
()[source]¶ Uninstall column_maker. Verify that convert_chars is installed and missing repository dependencies.
-
test_0065_reinstall_column_repository
()[source]¶ Reinstall column_maker without repository dependencies, verify both convert_chars and column_maker are installed.
-
test_0070_uninstall_convert_repository
()[source]¶ Uninstall convert_chars, verify column_maker installed but missing repository dependencies.
-
tool_shed.test.functional.test_1090_repository_dependency_handling module¶
-
class
tool_shed.test.functional.test_1090_repository_dependency_handling.
TestRepositoryDependencies
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Testing the behavior of repository dependencies with tool panel sections.
-
test_0000_create_or_login_admin_user
()[source]¶ Create necessary user accounts and login as an admin user.
-
test_0005_create_and_populate_column_repository
()[source]¶ Create a category for this test suite and add repositories to it.
-
test_0020_install_repositories
()[source]¶ Install column_maker into column_maker tool panel section and install repository dependencies.
-
tool_shed.test.functional.test_1100_install_updated_repository_dependencies module¶
-
class
tool_shed.test.functional.test_1100_install_updated_repository_dependencies.
TestRepositoryDependencies
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test installing a repository, then updating it to include repository dependencies.
-
test_0000_create_or_login_admin_user
()[source]¶ Create necessary user accounts and login as an admin user.
-
test_0005_create_and_populate_column_repository
()[source]¶ Create a category for this test suite and add repositories to it.
-
test_0010_create_and_populate_convert_repository
()[source]¶ Create and populate the convert_chars repository.
-
test_0015_install_and_uninstall_column_repository
()[source]¶ Install and uninstall the column_maker repository.
-
test_0020_upload_dependency_xml
()[source]¶ Upload a repository_dependencies.xml file to column_maker that specifies convert_chars.
-
tool_shed.test.functional.test_1120_install_repository_with_complex_dependencies module¶
-
class
tool_shed.test.functional.test_1120_install_repository_with_complex_dependencies.
TestInstallingComplexRepositoryDependencies
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test features related to installing repositories with complex repository dependencies.
-
test_0015_generate_complex_repository_dependency_invalid_shed_url
()[source]¶ Generate and upload a complex repository definition that specifies an invalid tool shed URL.
-
test_0020_generate_complex_repository_dependency_invalid_repository_name
()[source]¶ Generate and upload a complex repository definition that specifies an invalid repository name.
-
test_0025_generate_complex_repository_dependency_invalid_owner_name
()[source]¶ Generate and upload a complex repository definition that specifies an invalid owner.
-
test_0030_generate_complex_repository_dependency_invalid_changeset_revision
()[source]¶ Generate and upload a complex repository definition that specifies an invalid changeset revision.
-
test_0035_generate_valid_complex_repository_dependency
()[source]¶ Generate and upload a valid tool_dependencies.xml file that specifies package_bwa_0_5_9_0100.
-
test_0040_update_tool_repository
()[source]¶ Upload a new tool_dependencies.xml to the tool repository, and verify that the base repository displays the new changeset.
-
test_0045_install_base_repository
()[source]¶ Verify installation of the repository with complex repository dependencies.
-
test_0050_verify_installed_repositories
()[source]¶ Verify that the installed repositories are displayed properly.
-
tool_shed.test.functional.test_1130_install_repository_with_invalid_repository_dependency module¶
-
class
tool_shed.test.functional.test_1130_install_repository_with_invalid_repository_dependency.
TestBasicRepositoryDependencies
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Testing emboss 5 with repository dependencies.
-
test_0010_create_emboss_datatypes_repository_and_upload_tarball
()[source]¶ Create and populate the emboss_datatypes repository.
-
test_0015_verify_datatypes_in_datatypes_repository
()[source]¶ Verify that the emboss_datatypes repository contains datatype entries.
-
test_0020_create_emboss_5_repository_and_upload_files
()[source]¶ Create and populate the emboss_5_0110 repository.
-
test_0025_generate_repository_dependency_with_invalid_url
()[source]¶ Generate a repository dependency for emboss 5 with an invalid URL.
-
test_0030_generate_repository_dependency_with_invalid_name
()[source]¶ Generate a repository dependency for emboss 5 with an invalid name.
-
test_0035_generate_repository_dependency_with_invalid_owner
()[source]¶ Generate a repository dependency for emboss 5 with an invalid owner.
-
tool_shed.test.functional.test_1140_simple_repository_dependency_multiple_owners module¶
-
tool_shed.test.functional.test_1140_simple_repository_dependency_multiple_owners.
tool_repository_long_description
= 'Make a table from BLAST XML'¶ Tool shed side:
1) Create and populate blast_datatypes_0120. 1a) Check for appropriate strings. 2) Create and populate blastxml_to_top_descr_0120. 2a) Check for appropriate strings. 3) Upload repository_dependencies.xml to blastxml_to_top_descr_0120 that defines a relationship to blast_datatypes_0120. 3a) Check for appropriate strings. Galaxy side:
1) Install blastxml_to_top_descr_0120, with repository dependencies. 1a) Check for appropriate strings in the installed blastxml_to_top_descr_0120 and blast_datatypes_0120 repositories.
-
class
tool_shed.test.functional.test_1140_simple_repository_dependency_multiple_owners.
TestInstallRepositoryMultipleOwners
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
-
test_0005_create_datatypes_repository
()[source]¶ Create and populate the blast_datatypes_0120 repository
-
test_0015_create_tool_repository
()[source]¶ Create and populate the blastxml_to_top_descr_0120 repository
-
test_0025_create_repository_dependency
()[source]¶ Create a repository dependency on blast_datatypes_0120.
-
tool_shed.test.functional.test_1150_datatype_converters module¶
-
tool_shed.test.functional.test_1150_datatype_converters.
category_description
= 'Test 0130 Datatype Converters'¶ Install the bed_to_gff_converter repository.
Make sure the page section to select a tool panel section is NOT displayed since the tool will not be displayed in the Galaxy tool panel.
Make sure the bed_to_gff_converter tool is not displayed in the tool panel.
-
class
tool_shed.test.functional.test_1150_datatype_converters.
TestDatatypeConverters
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test features related to datatype converters.
tool_shed.test.functional.test_1160_tool_help_images module¶
-
class
tool_shed.test.functional.test_1160_tool_help_images.
TestToolHelpImages
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test features related to tool help images.
tool_shed.test.functional.test_1170_prior_installation_required module¶
-
tool_shed.test.functional.test_1170_prior_installation_required.
category_description
= 'Test 0150 Simple Prior Installation'¶ Create column_maker and convert_chars.
Column maker repository dependency: <repository toolshed=”self.url” name=”convert_chars” owner=”test” changeset_revision=”c3041382815c” prior_installation_required=”True” />
Verify display.
Galaxy side:
Install column_maker. Verify that convert_chars was installed first, contrary to the ordering that would be present without prior_installation_required.
-
class
tool_shed.test.functional.test_1170_prior_installation_required.
TestSimplePriorInstallation
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test features related to datatype converters.
-
test_0015_create_repository_dependency
()[source]¶ Create a repository dependency specifying convert_chars.
-
tool_shed.test.functional.test_1180_circular_prior_installation_required module¶
-
tool_shed.test.functional.test_1180_circular_prior_installation_required.
category_description
= 'Test 0160 Simple Prior Installation'¶ Create column_maker, filtering, and convert_chars.
Column maker repository dependency: <repository toolshed=”self.url” name=”convert_chars” owner=”test” changeset_revision=”c3041382815c” prior_installation_required=”True” /> <repository toolshed=”self.url” name=”filtering” owner=”test” changeset_revision=”c3041382815c” prior_installation_required=”True” />
Convert chars repository dependency: <repository toolshed=”self.url” name=”column_maker” owner=”test” changeset_revision=”c3041382815c” prior_installation_required=”True” /> <repository toolshed=”self.url” name=”filtering” owner=”test” changeset_revision=”c3041382815c” prior_installation_required=”True” />
Filtering repository dependency: <repository toolshed=”self.url” name=”column_maker” owner=”test” changeset_revision=”c3041382815c” prior_installation_required=”True” /> <repository toolshed=”self.url” name=”convert_chars” owner=”test” changeset_revision=”c3041382815c” prior_installation_required=”True” />
Verify display.
Galaxy side:
Install filtering. Verify that convert_chars was installed first, contrary to the ordering that would be present without prior_installation_required.
-
class
tool_shed.test.functional.test_1180_circular_prior_installation_required.
TestSimplePriorInstallation
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test features related to datatype converters.
-
test_0020_create_repository_dependency
()[source]¶ Create a repository dependency specifying convert_chars.
-
test_0025_verify_repository_dependency
()[source]¶ Verify that the previously generated repositiory dependency displays correctly.
-
test_0035_verify_installation_order
()[source]¶ Verify that convert_chars_0160 and column_maker_0160 were installed before filtering_0160.
-
tool_shed.test.functional.test_1190_complex_prior_installation_required module¶
-
tool_shed.test.functional.test_1190_complex_prior_installation_required.
category_description
= 'Test 0170 Prior Installation Complex Dependencies'¶ Create and populate repositories package_matplotlib_1_2_0170 and package_numpy_1_7_0170.
Create a complex repository dependency on package_numpy_1_7_0170, and upload this to package_matplotlib_1_2_0170.
Verify that package_matplotlib_1_2_0170 now depends on package_numpy_1_7_0170, and that the inherited tool dependency displays correctly.
Install package_matplotlib_1_2_0170 with repository dependencies.
Verify that the prior_installation_required attribute resulted in package_numpy_1_7_0170 being installed first.
-
class
tool_shed.test.functional.test_1190_complex_prior_installation_required.
TestComplexPriorInstallation
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test features related to datatype converters.
-
test_0005_create_matplotlib_repository
()[source]¶ Create and populate the package_matplotlib_1_2_0170 repository.
-
test_0010_create_numpy_repository
()[source]¶ Create and populate the package_numpy_1_7_0170 repository.
-
test_0015_create_complex_repository_dependency
()[source]¶ Create a dependency on package_numpy_1_7_0170.
-
test_0020_verify_generated_dependency
()[source]¶ Verify that matplotlib now has a package tool dependency and a complex repository dependency.
-
tool_shed.test.functional.test_1200_uninstall_and_reinstall_basic_repository module¶
-
class
tool_shed.test.functional.test_1200_uninstall_and_reinstall_basic_repository.
UninstallingAndReinstallingRepositories
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test uninstalling and reinstalling a basic repository.
-
test_0005_ensure_repositories_and_categories_exist
()[source]¶ Create the 0000 category and upload the filtering repository to the tool shed, if necessary.
-
test_0010_install_filtering_repository
()[source]¶ Install the filtering repository into the Galaxy instance.
-
tool_shed.test.functional.test_1210_uninstall_reinstall_repository_with_tool_dependencies module¶
-
class
tool_shed.test.functional.test_1210_uninstall_reinstall_repository_with_tool_dependencies.
UninstallingAndReinstallingRepositories
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test uninstalling and reinstalling a repository with tool dependencies.
-
test_0005_ensure_repositories_and_categories_exist
()[source]¶ Create the 0010 category and upload the freebayes repository to the tool shed, if necessary.
-
test_0010_install_freebayes_repository
()[source]¶ Install the freebayes repository into the Galaxy instance.
-
tool_shed.test.functional.test_1220_uninstall_reinstall_repository_with_repository_dependencies module¶
-
class
tool_shed.test.functional.test_1220_uninstall_reinstall_repository_with_repository_dependencies.
UninstallingAndReinstallingRepositories
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test uninstalling and reinstalling a repository with tool dependencies.
-
test_0005_ensure_repositories_and_categories_exist
()[source]¶ Create the 0020 category and upload the emboss repository to the tool shed, if necessary.
-
test_0010_install_emboss_repository
()[source]¶ Install the emboss repository into the Galaxy instance.
-
tool_shed.test.functional.test_1230_uninstall_reinstall_repository_with_dependency_revisions module¶
-
class
tool_shed.test.functional.test_1230_uninstall_reinstall_repository_with_dependency_revisions.
UninstallingAndReinstallingRepositories
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test uninstalling and reinstalling a repository with repository dependency revisions.
-
test_0005_ensure_repositories_and_categories_exist
()[source]¶ Create the 0030 category and upload the emboss repository to the tool shed, if necessary.
-
test_0010_install_emboss_repository
()[source]¶ Install the emboss repository into the Galaxy instance.
-
tool_shed.test.functional.test_1300_reset_all_metadata module¶
-
tool_shed.test.functional.test_1300_reset_all_metadata.
category_0060_name
= 'Test 0060 Workflow Features'¶ This script will run in one of two possible ways:
Directly, by calling sh run_functional_tests.sh -toolshed test/tool_shed/functional/test_1300_reset_all_metadata.py. -or-
After the previous test scripts have completed.
In the first case, it is desirable to have the Galaxy database in a state that is as close as possible to the state it would be in following the second case. This means explicitly installing whatever repositories would be in an installed state following the previous test scripts.
-
class
tool_shed.test.functional.test_1300_reset_all_metadata.
TestResetInstalledRepositoryMetadata
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Verify that the “Reset selected metadata” feature works.
-
test_0005_create_categories
()[source]¶ Create the categories for the repositories in this test script.
-
test_0010_create_repositories_from_0000_series
()[source]¶ Create repository filtering_0000 if necessary.
-
test_0020_create_repositories_from_0020_series
()[source]¶ Create repositories emboss_0020 and emboss_datatypes_0020 if necessary.
-
test_0025_create_repositories_from_0030_series
()[source]¶ Create repositories emboss_0030, emboss_5_0030, emboss_6_0030, and emboss_datatypes_0030.
-
test_0030_create_repositories_from_0040_series
()[source]¶ Create repositories freebayes_0040 and filtering_0040.
-
test_0035_create_repositories_from_0050_series
()[source]¶ Create repositories emboss_0050, emboss_datatypes_0050, filtering_0050, freebayes_0050.
-
tool_shed.test.functional.test_1410_update_manager module¶
-
tool_shed.test.functional.test_1410_update_manager.
category_description
= 'Functional test suite to test the update manager.'¶ Create and populate the filtering_1410 repository.
Install filtering_1410 to Galaxy.
Upload a readme file.
Verify that the browse page now shows an update available.
-
class
tool_shed.test.functional.test_1410_update_manager.
TestUpdateManager
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test the Galaxy update manager.
tool_shed.test.functional.test_1420_tool_dependency_environment_inheritance module¶
-
tool_shed.test.functional.test_1420_tool_dependency_environment_inheritance.
package_lapack_repository_long_description
= 'package_lapack_3_4_1420: Linear Algebra PACKage'¶ Create repository package_lapack_3_4_1420
Create repository package_atlas_3_10_1420
Create repository package_bzlib_1_0_1420
Create repository package_boost_1_53_1420
Create repository package_numpy_1_7_1420
Create repository package_rdkit_2012_12_1420
- Repository dependency structure should be as follows:
- Repository package_rdkit_2012_12_1420
- Repository package_boost_1_53_1420 (prior install required)
Repository package_bzlib_1_0_1420 (prior install required)
- Repository package_numpy_1_7_1420 (prior install required)
Repository package_lapack_3_4_1420 (prior install required) Repository package_atlas_3_10_1420 (prior install required)
Install package_rdkit_2012_12 into Galaxy.
Verify that the env.sh file for package_rdkit_2012_12_1420 also defines the variables inherited from package_numpy_1_7_1420 and package_boost_1_53_1420.
-
class
tool_shed.test.functional.test_1420_tool_dependency_environment_inheritance.
TestEnvironmentInheritance
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test referencing environment variables that were defined in a separate tool dependency.
-
test_0000_initiate_users_and_category
()[source]¶ Create necessary user accounts and login as an admin user.
-
tool_shed.test.functional.test_1430_repair_installed_repository module¶
-
tool_shed.test.functional.test_1430_repair_installed_repository.
column_repository_long_description
= 'column_1430: Add a value as a new column'¶ In the Tool Shed:
Create and populate the filter_1430 repository
Create and populate the column_1430 repository
Upload a repository_dependencies.xml file to the column_1430 repository that creates a repository dependency on the filter_1430 repository.
In Galaxy:
Install the column_1430 repository, making sure to check the checkbox to Handle repository dependencies so that the filter repository is also installed. Make sure to install the repositories in a specified section of the tool panel.
Uninstall the filter_1430 repository.
-
class
tool_shed.test.functional.test_1430_repair_installed_repository.
TestRepairRepository
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test repairing an installed repository.
tool_shed.test.functional.test_1440_missing_env_sh_files module¶
-
tool_shed.test.functional.test_1440_missing_env_sh_files.
tool_repository_long_description
= 'filter_1440: Galaxy filtering tool.'¶ Create a tool dependency type repository that reliably fails to install successfully. This repository should define an action that would have created an env.sh file on success, resulting in an env.sh file that should exist, but is missing.
Create a repository that defines a complex repository dependency in the repository created in step 1, with prior_install_required and set_environment_for_install.
Attempt to install the second repository into a galaxy instance, verify that it is installed but missing tool dependencies.
-
class
tool_shed.test.functional.test_1440_missing_env_sh_files.
TestMissingEnvSh
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test installing a repository that should create an env.sh file, but does not.
tool_shed.test.functional.test_1450_installing_datatypes_sniffers module¶
-
tool_shed.test.functional.test_1450_installing_datatypes_sniffers.
category_description
= 'Test 1450 - Installing Datatype Sniffers'¶ Get a count of datatypes and sniffers.
Install proteomics_datatypes_1450.
Verify the count of datatypes and sniffers is the previous count + the datatypes contained within proteomics_datatypes_1450.
Deactivate proteomics_datatypes_1450, verify the count of datatypes and sniffers is equal to the count determined in step 1.
Reactivate proteomics_datatypes_1450, verify that the count of datatypes and sniffers has been increased by the contents of the repository.
Uninstall proteomics_datatypes_1450, verify the count of datatypes and sniffers is equal to the count determined in step 1.
Reinstall proteomics_datatypes_1450, verify that the count of datatypes and sniffers has been increased by the contents of the repository.
-
class
tool_shed.test.functional.test_1450_installing_datatypes_sniffers.
TestInstallDatatypesSniffers
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test installing a repository that defines datatypes and datatype sniffers.
-
test_0005_ensure_repositories_and_categories_exist
()[source]¶ Create the 1450 category and proteomics_datatypes_1450 repository.
-
test_0010_install_datatypes_repository
()[source]¶ Install the proteomics_datatypes_1450 repository into the Galaxy instance.
-
test_0020_deactivate_datatypes_repository
()[source]¶ Deactivate the installed proteomics_datatypes_1450 repository.
-
test_0025_reactivate_datatypes_repository
()[source]¶ Reactivate the deactivated proteomics_datatypes_1450 repository.
-
tool_shed.test.functional.test_1460_data_managers module¶
-
tool_shed.test.functional.test_1460_data_managers.
data_manager_tar_file
= '1460_files/data_manager_files/test_data_manager.tar'¶ Add a Data Manager to toolshed
install Data Manager
Check that Data Manager tool
-
class
tool_shed.test.functional.test_1460_data_managers.
TestDataManagers
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Test installing a repository containing a Data Manager.
-
test_0000_initiate_users_and_category
()[source]¶ Create necessary user accounts and login as an admin user.
-
test_0020_install_data_manager_repository
()[source]¶ Install the data_manager_1460 repository to galaxy.
-
tool_shed.test.functional.test_1470_updating_installed_repositories module¶
-
tool_shed.test.functional.test_1470_updating_installed_repositories.
category_description
= 'Functional test suite to ensure that updating installed repositories does not create white ghosts.'¶ Install a repository into Galaxy.
In the Tool Shed, update the repository from Step 1.
In Galaxy, get updates to the repository.
In Galaxy, uninstall the repository.
In Galaxy, reinstall the repository.
Make sure step 5 created no white ghosts.
-
class
tool_shed.test.functional.test_1470_updating_installed_repositories.
TestUpdateInstalledRepository
(methodName='runTest')[source]¶ Bases:
tool_shed.test.base.twilltestcase.ShedTwillTestCase
Verify that the code correctly handles updating an installed repository, then uninstalling and reinstalling.