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: ShedTwillTestCase

Test core repository features.

test_0000_initiate_users()[source]

Create necessary user accounts and login as an admin user.

test_0005_create_repository_without_categories()[source]

Verify that a repository cannot be created unless at least one category has been defined.

test_0010_create_categories()[source]

Create categories for this test suite

test_0015_create_repository()[source]

Create the filtering repository

test_0020_edit_repository()[source]

Edit the repository name, description, and long description

test_0025_change_repository_category()[source]

Change the categories associated with the filtering repository

test_0030_grant_write_access()[source]

Grant write access to another user

test_0035_upload_filtering_1_1_0()[source]

Upload filtering_1.1.0.tar to the repository

test_0040_verify_repository()[source]

Display basic repository pages

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_0060_upload_filtering_test_data()[source]

Upload filtering test data.

test_0065_upload_filtering_2_2_0()[source]

Upload filtering version 2.2.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_0080_delete_readme_txt_file()[source]

Delete the readme.txt file.

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.

This test should not actually send the email, since functional tests are designed to function without any external network connection. The embedded tool shed server these tests are running against has been configured with an SMTP server address that will not and should not resolve correctly. However, since the successful sending of the email is the last step in the process, this will verify functional correctness of all preceding steps.

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.

test_0135_api_get_repositories_in_category()[source]

Load the api endpoint for repositories in a category.

test_0140_view_invalid_changeset()[source]

View repository using an invalid changeset

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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"
  1. Create repository freebayes_0020 and upload only the tool XML.

  2. Upload the tool_data_table_conf.xml.sample file.

  3. Upload sam_fa_indices.loc.sample.

  4. Upload a tool_dependencies.xml file that should not parse correctly.

  5. Upload a tool_dependencies.xml file that specifies a version that does not match the tool’s requirements.

  6. Upload a valid tool_dependencies.xml file.

  7. 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: 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_0005_create_category()[source]

Create a category for this test suite

test_0010_create_freebayes_repository_and_upload_tool_xml()[source]

Create freebayes repository and upload only freebayes.xml.

We are at step 1 - Create repository freebayes_0020 and upload only the tool XML. Uploading only the tool XML file should result in an invalid tool and an error message on upload, as well as on the manage repository page.

test_0015_upload_missing_tool_data_table_conf_file()[source]

Upload the missing tool_data_table_conf.xml.sample file to the repository.

We are at step 2 - Upload the tool_data_table_conf.xml.sample file. Uploading the tool_data_table_conf.xml.sample alone should not make the tool valid, but the error message should change.

test_0020_upload_missing_sample_loc_file()[source]

Upload the missing sam_fa_indices.loc.sample file to the repository.

We are at step 3 - Upload the tool_data_table_conf.xml.sample file. Uploading the tool_data_table_conf.xml.sample alone should not make the tool valid, but the error message should change.

test_0025_upload_malformed_tool_dependency_xml()[source]

Upload tool_dependencies.xml with bad characters in the readme tag.

We are at step 4 - Upload a tool_dependencies.xml file that should not parse correctly. Upload a tool_dependencies.xml file that contains <> in the text of the readme tag. This should show an error message about malformed xml.

test_0030_upload_invalid_tool_dependency_xml()[source]

Upload tool_dependencies.xml defining version 0.9.5 of the freebayes package.

We are at step 5 - Upload a tool_dependencies.xml file that specifies a version that does not match the tool’s requirements. This should result in a message about the tool dependency configuration not matching the tool’s requirements.

test_0035_upload_valid_tool_dependency_xml()[source]

Upload tool_dependencies.xml defining version 0.9.4_9696d0ce8a962f7bb61c4791be5ce44312b81cf8 of the freebayes package.

We are at step 6 - Upload a valid tool_dependencies.xml file. At this stage, there should be no errors on the upload page, as every missing or invalid file has been corrected.

test_0040_verify_tool_dependencies()[source]

Verify that the uploaded tool_dependencies.xml specifies the correct package versions.

We are at step 7 - Check for the appropriate strings on the manage repository page. Verify that the manage repository page now displays the valid tool dependencies, and that there are no invalid tools shown on the manage page.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Testing emboss 5 with repository dependencies.

test_0000_initiate_users()[source]

Create necessary user accounts and login as an admin user.

test_0005_create_category()[source]

Create a category for this test suite

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

test_0030_verify_emboss_5_dependencies()[source]

Verify that the emboss_5 repository now depends on the emboss_datatypes repository with correct name, owner, and changeset revision.

test_0040_verify_repository_metadata()[source]

Verify that resetting the metadata does not change it.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Test dependencies on different revisions of a repository.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_category()[source]

Create a category for this test suite

test_0010_create_emboss_5_repository()[source]

Create and populate the emboss_5_0030 repository.

test_0015_create_emboss_6_repository()[source]

Create and populate the emboss_6_0030 repository.

test_0020_create_emboss_datatypes_repository()[source]

Create and populate the emboss_datatypes_0030 repository.

test_0025_create_emboss_repository()[source]

Create and populate the emboss_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.

test_0050_verify_repository_dependency_revisions()[source]

Verify that different metadata revisions of the emboss repository have different repository dependencies.

test_0055_verify_repository_metadata()[source]

Verify that resetting the metadata does not change it.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Verify that the code correctly displays repositories with circular repository dependencies.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_category()[source]

Create a category for this test suite

test_0010_create_freebayes_repository()[source]

Create and populate freebayes_0040.

test_0015_create_filtering_repository()[source]

Create and populate filtering_0040.

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.

test_0035_verify_repository_metadata()[source]

Verify that resetting the metadata does not change it.

test_0040_verify_tool_dependencies()[source]

Verify that freebayes displays tool dependencies.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Verify that the code correctly handles circular dependencies down to n levels.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_convert_repository()[source]

Create and populate convert_chars_0050.

test_0010_create_column_repository()[source]

Create and populate convert_chars_0050.

test_0015_create_emboss_datatypes_repository()[source]

Create and populate emboss_datatypes_0050.

test_0020_create_emboss_repository()[source]

Create and populate emboss_0050.

test_0025_create_filtering_repository()[source]

Create and populate filtering_0050.

test_0030_create_freebayes_repository()[source]

Create and populate freebayes_0050.

test_0035_create_bismark_repository()[source]

Create and populate bismark_0050.

test_0040_create_and_upload_dependency_definitions()[source]
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.

test_0055_verify_repository_metadata()[source]

Verify that resetting the metadata does not change it.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

tool_shed.test.functional.test_0070_invalid_tool module

class tool_shed.test.functional.test_0070_invalid_tool.TestBismarkRepository(methodName='runTest')[source]

Bases: ShedTwillTestCase

Testing bismark with valid and invalid tool entries.

test_0000_create_or_login_admin_user()[source]

Create necessary user accounts and login as an admin user.

test_0005_create_category_and_repository()[source]

Create a category for this test suite, then create and populate a bismark repository. It should contain at least one each valid and invalid tool.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Verify that the code correctly handles circular dependencies.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_column_repository()[source]

Create and populate the column_maker repository.

test_0005_create_convert_repository()[source]

Create and populate the convert_chars repository.

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.

test_0030_verify_repository_dependencies()[source]

Verify that each repository can depend on the other without causing an infinite loop.

test_0035_verify_repository_metadata()[source]

Verify that resetting the metadata does not change it.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Test features related to complex repository dependencies.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_bwa_package_repository()[source]

Create and populate package_bwa_0_5_9_0100.

test_0010_create_bwa_base_repository()[source]

Create and populate bwa_base_0100.

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_complex_repository_dependency()[source]

Generate and upload a valid tool_dependencies.xml file that specifies package_bwa_0_5_9_0100.

test_0040_generate_tool_dependency()[source]

Generate and upload a new tool_dependencies.xml file that specifies an arbitrary file on the filesystem, and verify that bwa_base depends on the new changeset revision.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Testing emboss 5 with repository dependencies.

test_0000_initiate_users()[source]

Create necessary user accounts and login as an admin user.

test_0005_create_category()[source]

Create a category for this test suite

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.

test_0040_generate_repository_dependency_with_invalid_changeset_revision()[source]

Generate a repository dependency for emboss 5 with an invalid changeset revision.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

test_0000_initiate_users()[source]

Create necessary user accounts and login as an admin user.

Create all the user accounts that are needed for this test script to run independently of other tests. Previously created accounts will not be re-created.

test_0005_create_datatypes_repository()[source]

Create and populate the blast_datatypes_0120 repository

We are at step 1. Create and populate blast_datatypes.

test_0010_verify_datatypes_repository()[source]

Verify the blast_datatypes_0120 repository.

We are at step 1a. Check for appropriate strings, most importantly BlastXml, BlastNucDb, and BlastProtDb, the datatypes that are defined in datatypes_conf.xml.

test_0015_create_tool_repository()[source]

Create and populate the blastxml_to_top_descr_0120 repository

We are at step 2. Create and populate blastxml_to_top_descr_0120.

test_0020_verify_tool_repository()[source]

Verify the blastxml_to_top_descr_0120 repository.

We are at step 2a. Check for appropriate strings, such as tool name, description, and version.

test_0025_create_repository_dependency()[source]

Create a repository dependency on blast_datatypes_0120.

We are at step 3. Create a simple repository dependency for blastxml_to_top_descr_0120 that defines a dependency on blast_datatypes_0120.

test_0040_verify_repository_dependency()[source]

Verify the created repository dependency.

We are at step 3a. Check the newly created repository dependency to ensure that it was defined and displays correctly.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

tool_shed.test.functional.test_0130_datatype_converters module

tool_shed.test.functional.test_0130_datatype_converters.category_description = 'Test 0130 Datatype Converters'
  1. Create a populate the bed_to_gff_converter repository

  2. Visit the manage repository page and make sure there is the appropriate valid too and datatype

  3. 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: ShedTwillTestCase

Test features related to datatype converters.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_bed_to_gff_repository()[source]

Create and populate bed_to_gff_0130.

We are at step 1 - Create and populate the bed_to_gff_0130 repository. Create the bed_to_gff_0130 repository and populate it with the files needed for this test.

test_0010_verify_tool_and_datatype()[source]

Verify that a valid tool and datatype are contained within the repository.

We are at step 2 - Visit the manage repository page and make sure there is the appropriate valid tool and datatype. There should be a ‘Convert BED to GFF’ tool and a ‘galaxy.datatypes.interval:Bed’ datatype with extension ‘bed’

test_0015_verify_tool_panel_display()[source]

Verify that the tool is configured not to be displayed in the tool panel.

We are at step 3 Datatype converters that are associated with a datatype should have display in tool panel = False in the tool metadata.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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'
  1. Create and populate the htseq_count_0140 repository.

  2. Visit the manage_repository page.

  3. Simulate clicking the htseq_count tool button.

  4. 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: ShedTwillTestCase

Test features related to tool help images.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_htseq_count_repository()[source]

Create and populate htseq_count_0140.

We are at step 1 - Create and populate the htseq_count_0140 repository. Create the htseq_count_0140 repository and upload the tarball.

test_0010_load_tool_page()[source]

Load the tool page and check for the image.

We are at step 2 Visit the manage_repository page and the tool page, and look for the image url similar to the following string:

src=”/repository/static/images/<id>/count_modes.png”

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Test features related to datatype converters.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_convert_repository()[source]

Create and populate convert_chars_0150.

test_0010_create_column_repository()[source]

Create and populate convert_chars_0150.

test_0015_create_repository_dependency()[source]

Create a repository dependency specifying convert_chars.

Column maker repository dependency:

<repository toolshed=”self.url” name=”convert_chars” owner=”test” changeset_revision=”<tip>” prior_installation_required=”True” />

test_0020_verify_repository_dependency()[source]

Verify that the previously generated repositiory dependency displays correctly.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Test features related to datatype converters.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_convert_repository()[source]

Create and populate convert_chars_0160.

test_0010_create_column_repository()[source]

Create and populate convert_chars_0160.

test_0015_create_filtering_repository()[source]

Create and populate filtering_0160.

test_0020_create_repository_dependency()[source]

Create a repository dependency specifying convert_chars.

Each of the three repositories should depend on the other two, to make this as circular as possible.

test_0025_verify_repository_dependency()[source]

Verify that the previously generated repositiory dependency displays correctly.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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'
  1. Create and populate repositories package_matplotlib_1_2_0170 and package_numpy_1_7_0170.

  2. Create a complex repository dependency on package_numpy_1_7_0170, and upload this to package_matplotlib_1_2_0170.

  3. 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: ShedTwillTestCase

Test features related to datatype converters.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_matplotlib_repository()[source]

Create and populate the package_matplotlib_1_2_0170 repository.

This is step 1 - Create and populate repositories package_matplotlib_1_2_0170 and package_numpy_1_7_0170.

test_0010_create_numpy_repository()[source]

Create and populate the package_numpy_1_7_0170 repository.

This is step 1 - Create and populate repositories package_matplotlib_1_2_0170 and package_numpy_1_7_0170.

test_0015_create_complex_repository_dependency()[source]

Create a dependency on package_numpy_1_7_0170.

This is step 2 - Create a complex repository dependency on package_numpy_1_7_0170, and upload this to package_matplotlib_1_2_0170. package_matplotlib_1_2_0170 should depend on package_numpy_1_7_0170, with prior_installation_required set to True. When matplotlib is selected for installation, the result should be that numpy is compiled and installed first.

test_0020_verify_generated_dependency()[source]

Verify that matplotlib now has a package tool dependency and a complex repository dependency.

This is step 3 - Verify that package_matplotlib_1_2_0170 now depends on package_numpy_1_7_0170, and that the inherited tool dependency displays correctly. ‘Inherited’ in this case means that matplotlib should show a package tool dependency on numpy version 1.7, and a repository dependency on the latest revision of package_numpy_1_7_0170.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Verify that the “Reset selected metadata” feature works.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_filtering_repository()[source]

Create and populate the filtering_0000 repository.

test_0010_create_freebayes_repository()[source]

Create and populate the freebayes_0010 repository.

test_0015_create_datatypes_0020_repository()[source]

Create and populate the emboss_datatypes_0020 repository.

test_0020_create_emboss_0020_repository()[source]

Create and populate the emboss_0020 repository.

test_0025_create_emboss_datatypes_0030_repository()[source]

Create and populate the emboss_0030 repository.

test_0030_create_emboss_5_repository()[source]

Create and populate the emboss_5_0030 repository.

test_0035_create_emboss_6_repository()[source]

Create and populate the emboss_6_0030 repository.

test_0040_create_emboss_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.

test_0050_create_freebayes_repository()[source]

Create and populate the freebayes_0040 repository.

test_0055_create_filtering_repository()[source]

Create and populate the filtering_0040 repository.

test_0060_create_dependency_structure()[source]

Create the dependency structure for test 0040.

test_0065_create_convert_repository()[source]

Create and populate convert_chars_0050.

test_0070_create_column_repository()[source]

Create and populate convert_chars_0050.

test_0075_create_emboss_datatypes_repository()[source]

Create and populate emboss_datatypes_0050.

test_0080_create_emboss_repository()[source]

Create and populate emboss_0050.

test_0085_create_filtering_repository()[source]

Create and populate filtering_0050.

test_0090_create_freebayes_repository()[source]

Create and populate freebayes_0050.

test_0095_create_bismark_repository()[source]

Create and populate bismark_0050.

test_0100_create_and_upload_dependency_definitions()[source]

Create the dependency structure for test 0050.

test_0105_create_filtering_repository()[source]

Create and populate the filtering_0060 repository.

test_0110_reset_metadata_on_all_repositories()[source]

Reset metadata on all repositories, then verify that it has not changed.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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.'
  1. Create a repository.

  2. Clone the repository to a local path.

class tool_shed.test.functional.test_0310_hg_api_features.TestHgWebFeatures(methodName='runTest')[source]

Bases: ShedTwillTestCase

Test http mercurial interface.

test_0000_initiate_users()[source]

Create necessary user accounts and login as an admin user.

test_0005_create_filtering_repository()[source]

Create and populate the filtering_0310 repository.

We are at step 1 - Create a repository. Create and populate the filtering_0310 repository.

test_0010_clone()[source]

Clone the repository to a local path.

We are at step 2 - Clone the repository to a local path. The repository should have the following files:

filtering.py filtering.xml test-data/ test-data/1.bed test-data/7.bed test-data/filter1_in3.sam test-data/filter1_inbad.bed test-data/filter1_test1.bed test-data/filter1_test2.bed test-data/filter1_test3.sam test-data/filter1_test4.bed

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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'
  1. Create users.

  2. Grant reviewer role to test_user_2.

  3. Check that the review components that are to be tested are defined in this tool shed instance.

  4. Create a repository, owned by test_user_1, to be reviewed by test_user_2.

  5. Review the datatypes component on the repository.

  6. Check that no other components besides datatypes display as reviewed.

  7. Review the functional tests component on the repository.

  8. Check that only functional tests and datatypes display as reviewed.

  9. Review the readme component on the repository.

  10. Check that only functional tests, datatypes, and readme display as reviewed.

  11. Review the repository dependencies component.

  12. Check that only repository dependencies, functional tests, datatypes, and readme display as reviewed.

  13. Review the tool dependencies component.

  14. Check that only tool dependencies, repository dependencies, functional tests, datatypes, and readme display as reviewed.

  15. Review the tools component.

  16. Check that only tools, tool dependencies, repository dependencies, functional tests, datatypes, and readme display as reviewed.

  17. Review the workflows component.

  18. Check that all components display as reviewed.

  19. Upload readme.txt to the repository.

  20. Copy the previous review, and update the readme component review to reflect the existence of a readme file.

  21. Check that the readme component review has been updated, and the other component reviews are present.

  22. Upload test data to the repository. This will also create a new changeset revision.

  23. Review the functional tests component on the repository, copying the other components from the previous review.

  24. Verify that the functional tests component review has been updated, and as in step 21, the other reviews are unchanged.

  25. Upload a new version of the tool.

  26. Review the new revision’s functional tests component.

  27. Verify that the functional tests component review displays correctly.

class tool_shed.test.functional.test_0400_repository_component_reviews.TestRepositoryComponentReviews(methodName='runTest')[source]

Bases: ShedTwillTestCase

Test repository component review features.

test_0000_initiate_users()[source]

Create necessary user accounts and login as an admin user.

We are at step 1. Create all the user accounts that are needed for this test script to run independently of other test. Previously created accounts will not be re-created.

test_0005_grant_reviewer_role()[source]

Grant the repository reviewer role to test_user_2.

We are at step 2. We now have an admin user (admin_user) and two non-admin users (test_user_1 and test_user_2). Grant the repository reviewer role to test_user_2, who will not be the owner of the reviewed repositories.

test_0010_verify_repository_review_components()[source]

Ensure that the required review components exist.

We are at step 3. We now have an admin user (admin_user) and two non-admin users (test_user_1 and test_user_2). Grant the repository reviewer role to test_user_2, who will not be the owner of the reviewed repositories.

test_0015_create_repository()[source]

Create and populate the filtering repository

We are at step 4. Log in as test_user_1 and create the filtering repository, then upload a basic set of components to be reviewed in subsequent tests.

test_0020_review_initial_revision_data_types()[source]

Review the datatypes component for the current tip revision.

We are at step 5. Log in as test_user_2 and review the data types component of the filtering repository owned by test_user_1. # Review this revision: # Data types (N/A)

test_0025_verify_datatype_review()[source]

Verify that the datatypes component review displays correctly.

We are at step 6. Log in as test_user_1 and check that the filtering repository only has a review for the data types component.

test_0030_review_initial_revision_functional_tests()[source]

Review the functional tests component for the current tip revision.

We are at step 7. Log in as test_user_2 and review the functional tests component for this repository. Since the repository has not been altered, this will update the existing review to add a component. # Review this revision: # Data types (N/A) # Functional tests (One star, comment ‘functional tests missing’)

test_0035_verify_functional_test_review()[source]

Verify that the functional tests component review displays correctly.

We are at step 8. Log in as test_user_1 and check that the filtering repository now has reviews for the data types and functional tests components. Since the functional tests component was not marked as ‘Not applicable’, also check for the review comment.

test_0040_review_readme()[source]

Review the readme component for the current tip revision.

We are at step 9. Log in as test_user_2 and update the review with the readme component marked as ‘Not applicable’. # Review this revision: # Data types (N/A) # Functional tests (One star, comment ‘functional tests missing’) # README (N/A)

test_0045_verify_readme_review()[source]

Verify that the readme component review displays correctly.

We are at step 10. Log in as test_user_1 and verify that the repository component reviews now include a review for the readme component.

test_0050_review_repository_dependencies()[source]

Review the repository dependencies component for the current tip revision.

We are at step 11. Log in as test_user_2 and update the review with the repository dependencies component marked as ‘Not applicable’. # Review this revision: # Data types (N/A) # Functional tests (One star, comment ‘functional tests missing’) # README (N/A) # Repository dependencies (N/A)

test_0055_verify_repository_dependency_review()[source]

Verify that the repository dependencies component review displays correctly.

We are at step 12. Log in as test_user_1 and verify that the repository component reviews now include a review for the repository dependencies component.

test_0060_review_tool_dependencies()[source]

Review the tool dependencies component for the current tip revision.

We are at step 13. Log in as test_user_2 and update the review with the tool dependencies component marked as ‘Not applicable’. # Review this revision: # Data types (N/A) # Functional tests (One star, comment ‘functional tests missing’) # README (N/A) # Repository dependencies (N/A) # Tool dependencies (N/A)

test_0065_verify_tool_dependency_review()[source]

Verify that the tool dependencies component review displays correctly.

We are at step 14. Log in as test_user_1 and verify that the repository component reviews now include a review for the tool dependencies component.

test_0070_review_tools()[source]

Review the tools component for the current tip revision.

We are at step 15. Log in as test_user_2 and update the review with the tools component given a favorable review, with 5 stars, and approved status. # Review this revision: # Data types (N/A) # Functional tests (One star, comment ‘functional tests missing’) # README (N/A) # Repository dependencies (N/A) # Tool dependencies (N/A) # Tools (5 stars, good review)

test_0075_verify_tools_review()[source]

Verify that the tools component review displays correctly.

We are at step 16. Log in as test_user_1 and verify that the repository component reviews now include a review for the tools component. As before, check for the presence of the comment on this review.

test_0080_review_workflows()[source]

Review the workflows component for the current tip revision.

We are at step 17. Log in as test_user_2 and update the review with the workflows component marked as ‘Not applicable’. # Review this revision: # Data types (N/A) # Functional tests (One star, comment ‘functional tests missing’) # README (N/A) # Repository dependencies (N/A) # Tool dependencies (N/A) # Tools (5 stars, good review) # Workflows (N/A)

test_0085_verify_workflows_review()[source]

Verify that the workflows component review displays correctly.

We are at step 18. Log in as test_user_1 and verify that the repository component reviews now include a review for the workflows component.

test_0090_upload_readme_file()[source]

Upload a readme file to the filtering repository.

We are at step 19. Log in as test_user_1, the repository owner, and upload readme.txt to the repository. This will create a new changeset revision for this repository, which will need to be reviewed.

test_0095_review_new_changeset_readme_component()[source]

Update the filtering repository’s readme component review to reflect the presence of the readme file.

We are at step 20. There is now a new changeset revision in the repository’s changelog, but it has no review associated with it. Get the previously reviewed changeset hash, and pass that and the review id to the create_repository_review method, in order to copy the previous review’s contents. Then update the new review to reflect the presence of a readme file.

test_0100_verify_readme_review()[source]

Verify that the readme component review displays correctly.

We are at step 21. Log in as the repository owner (test_user_1) and check the repository component reviews to verify that the readme component is now reviewed and approved.

test_0105_upload_test_data()[source]

Upload the missing test data to the filtering repository.

We are at step 22. Remain logged in as test_user_1 and upload test data to the repository. This will also create a new changeset revision that needs to be reviewed. This will replace the changeset hash associated with the last dowloadable revision, but the last repository review will still be associated with the last dowloadable revision hash.

test_0110_review_new_changeset_functional_tests()[source]

Update the filtering repository’s readme component review to reflect the presence of the readme file.

We are at step 23. Log in as test_user_2 and get the last reviewed changeset hash, and pass that and the review id to the create_repository_review method, then update the copied review to approve the functional tests component.

test_0115_verify_functional_tests_review()[source]

Verify that the functional tests component review displays correctly.

We are at step 24. Log in as the repository owner, test_user_1, and verify that the new revision’s functional tests component review has been updated with an approved status and favorable comment.

test_0120_upload_new_tool_version()[source]

Upload filtering 2.2.0 to the filtering repository.

We are at step 25. Log in as test_user_1 and upload a new version of the tool to the filtering repository. This will create a new downloadable revision, with no associated repository component reviews.

test_0125_review_new_changeset_functional_tests()[source]

Update the filtering repository’s review to apply to the new changeset with filtering 2.2.0.

We are at step 26. Log in as test_user_2 and copy the last review for this repository to the new changeset. Then update the tools component review to refer to the new tool version.

test_0135_verify_review_for_new_version()[source]

Verify that the reviews display correctly for this changeset revision.

We are at step 27. Log in as test_user_1 and check that the tools component review is for filtering 2.2.0, but that the other component reviews had their contents copied from the last reviewed changeset.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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'
  1. Create a repository in the tool shed owned by test_user_1.

  2. Have test_user_2 complete a review of the repository.

  3. Have test_user_1 browse the review.

  4. Have test_user_3 browse the repository and make sure they are not allowed to browse the review.

  5. Have test_user_1 give write permission on the repository to the test_user_3.

  6. Have test_user_3 browse the repository again and they should now have the ability to browse the review.

  7. Have test_user_3 browse the review.

class tool_shed.test.functional.test_0410_repository_component_review_access_control.TestRepositoryComponentReviews(methodName='runTest')[source]

Bases: ShedTwillTestCase

Test repository component review features.

test_0000_initiate_users()[source]

Create necessary user accounts and login as an admin user.

Create all the user accounts that are needed for this test script to run independently of other test. Previously created accounts will not be re-created.

test_0005_grant_reviewer_role()[source]

Grant the repository reviewer role to test_user_2.

We now have an admin user (admin_user) and three non-admin users (test_user_1, test_user_2, and test_user_3). Grant the repository reviewer role to test_user_2, who will not be the owner of the reviewed repositories, and do not grant any roles to test_user_3 yet.

test_0010_verify_repository_review_components()[source]

Ensure that the required review components exist.

Make sure all the components we are to review are recorded in the database.

test_0015_create_repository()[source]

Create and populate the filtering repository

We are at step 1. Log in as test_user_1 and create the filtering repository, then upload a basic set of components to be reviewed in subsequent tests.

test_0020_review_repository()[source]

Complete a review of the filtering repository.

We are at step 2 - Have test_user_2 complete a review of the repository. Review all components of the filtering repository, with the appropriate contents and approved/not approved/not applicable status.

test_0025_verify_repository_review()[source]

Verify that the review was completed and displays properly.

We are at step 3 - Have test_user_1 browse the review. Verify that all the review components were submitted, and that the repository owner can see the review.

test_0030_browse_with_other_user()[source]

Verify that test_user_3 is blocked from browsing the review.

We are at step 4 - Have test_user_3 browse the repository and make sure they are not allowed to browse the review.

test_0035_grant_write_access_to_other_user()[source]

Grant write access on the filtering_0410 repository to test_user_3.

We are at step 5 - Have test_user_1 give write permission on the repository to the test_user_3.

test_0040_verify_test_user_3_can_browse_reviews()[source]

Check that test_user_3 can now browse reviews.

We are at step 6 - Have test_user_3 browse the repository again and they should now have the ability to browse the review.

test_0045_verify_browse_review_with_write_access()[source]

Check that test_user_3 can now display reviews.

We are at step 7 - Have test_user_3 browse the review.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

tool_shed.test.functional.test_0420_citable_urls_for_repositories module

tool_shed.test.functional.test_0420_citable_urls_for_repositories.first_changeset_hash = ''
  1. Add and populate a repository to the tool shed with change set revision 0 (assume owner is test).

  2. Add valid change set revision 1.

  3. Visit the following url and check for appropriate strings: <tool shed base url>/view/user1

  4. Visit the following url and check for appropriate strings: <tool shed base url>/view/user1/filtering_0420 . The resulting page should contain change set revision 1

  5. Visit the following url and check for appropriate strings: <tool shed base url>/view/user1/filtering_0420/<revision 0> . The resulting page should not contain change set revision 1, but should contain change set revision 0.

  6. Visit the following url and check for appropriate strings: <tool shed base url>/view/user1/filtering_0420/<invalid revision>

  7. Visit the following url and check for appropriate strings: <tool shed base url>/view/user1/<invalid repository name>

  8. 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: ShedTwillTestCase

Test repository citable url features.

test_0000_initiate_users()[source]

Create necessary user accounts and login as an admin user.

Create all the user accounts that are needed for this test script to run independently of other tests. Previously created accounts will not be re-created.

test_0005_create_repository()[source]

Create and populate the filtering_0420 repository

We are at step 1. Add and populate a repository to the tool shed with change set revision 0 (assume owner is test_user_1).

test_0010_upload_new_file_to_repository()[source]

Upload a readme file to the repository in order to create a second changeset revision.

We are at step 2. Add valid change set revision 1. The repository should now contain two changeset revisions, 0:<revision hash> and 1:<revision hash>.

test_0015_load_user_view_page()[source]

Load the /view/<username> page amd check for strings.

We are at step 3. Visit the following url and check for appropriate strings: <tool shed base url>/view/user1

test_0020_load_repository_view_page()[source]

Load the /view/<user>/<repository> page and check for the appropriate strings.

We are at step 4. Visit the following url and check for strings: <tool shed base url>/view/user1/filtering_0420 . The resulting page should contain change set revision 1

test_0025_load_view_page_for_previous_revision()[source]

Load a citable url for a past changeset revision and verify that strings display.

We are at step 5. Visit the following url and check for appropriate strings: <tool shed base url>/view/user1/filtering_0420/<revision 0> . The resulting page should not contain change set revision 1, but should contain change set revision 0.

test_0030_load_sharable_url_with_invalid_changeset_revision()[source]

Load a citable url with an invalid changeset revision specified.

test_0035_load_sharable_url_with_invalid_repository_name()[source]

Load a citable url with an invalid changeset revision specified.

We are at step 7. Visit the following url and check for appropriate strings: <tool shed base url>/view/user1/!!invalid!!

test_0040_load_sharable_url_with_invalid_owner()[source]

Load a citable url with an invalid owner.

We are at step 8. Visit the following url and check for appropriate strings: <tool shed base url>/view/!!invalid!!

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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'
  1. Create and populate repositories.

  2. Browse Custom Datatypes.

  3. Browse Tools.

  4. Browse Repository Dependencies.

  5. Browse Tool Dependencies.

class tool_shed.test.functional.test_0430_browse_utilities.TestToolShedBrowseUtilities(methodName='runTest')[source]

Bases: ShedTwillTestCase

Test browsing for Galaxy utilities.

test_0000_initiate_users()[source]

Create necessary user accounts and login as an admin user.

Create all the user accounts that are needed for this test script to run independently of other tests. Previously created accounts will not be re-created.

test_0005_create_datatypes_repository()[source]

Create and populate the emboss_datatypes_0430 repository

We are at step 1. Create and populate the repository that will contain one or more datatypes.

test_0010_create_emboss_repository()[source]

Create and populate the emboss_0430 repository

We are at step 1. Create the emboss_0430 repository, and populate it with tools.

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

We are at step 1. Create and populate the repository that will have a tool dependency defined.

test_0025_browse_custom_datatypes()[source]

Load the page to browse custom datatypes.

We are at step 2. Verify that the uploaded emboss datatypes repository has added to the custom datatypes page.

test_0030_browse_tools()[source]

Load the page to browse tools.

We are at step 3. Verify the existence of emboss tools in the browse tools page.

test_0035_browse_repository_dependencies()[source]

Browse repository dependencies and look for a dependency on emboss_datatypes_0430.

We are at step 3. Verify that the browse repository dependencies page shows emboss_datatypes_0430 as a dependency of emboss_0430.

test_0040_browse_tool_dependencies()[source]

Browse tool dependencies and look for the right versions of freebayes and samtools.

We are at step 4. Verify that the browse tool dependencies page shows the correct dependencies defined for freebayes_0430.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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:

  1. Create and populate column_maker_0440 so that it has an installable revision 0.

  2. Create and populate convert_chars_0440 so that it has an installable revision 0.

  3. Add a valid simple repository_dependencies.xml to convert_chars_0440 that points to the installable revision of column_maker_0440.

  4. Make sure the installable revision of convert_chars_0440 is now revision 1 instead of revision 0.

  5. 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:

  1. Create and populate bwa_package_0440 so that it has a valid tool dependency definition and an installable revision 0.

  2. Create and populate bwa_base_0440 so that it has an installable revision 0.

  3. Add a valid complex repository dependency tool_dependencies.xml to bwa_base_0440 that points to the installable revision 0 of bwa_package_0440.

  4. Make sure that bwa_base_0440 installable revision is now revision 1 instead of revision 0.

  5. Delete tool_dependencies.xml from bwa_base_0440, and make sure bwa_base_0440 now has two installable revisions: 1 and 2

Tool dependencies:

  1. Create and populate bwa_tool_dependency_0440 so that it has a valid tool dependency definition and an installable revision 0.

  2. Delete tool_dependencies.xml from bwa_tool_dependency_0440, and make sure that bwa_tool_dependency_0440 still has a single installable revision 0.

  3. 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: ShedTwillTestCase

Test metadata setting when dependency definitions are deleted.

test_0000_initiate_users()[source]

Create necessary user accounts and login as an admin user.

Create all the user accounts that are needed for this test script to run independently of other tests. Previously created accounts will not be re-created.

test_0005_create_column_maker_repository()[source]

Create and populate a repository named column_maker_0440.

We are at simple repository dependencies, step 1 - Create and populate column_maker_0440 so that it has an installable revision 0.

test_0010_create_convert_chars_repository()[source]

Create and populate a repository named convert_chars_0440.

We are at simple repository dependencies, step 2 - Create and populate convert_chars_0440 so that it has an installable revision 0.

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.

We are at simple repository dependencies, step 3 - Add a valid simple repository_dependencies.xml to convert_chars_0440 that points to the installable revision of column_maker_0440.

test_0020_verify_dependency_metadata()[source]

Verify that uploading the dependency moved metadata to the tip.

We are at simple repository dependencies, step 4 - Make sure the installable revision of convert_chars_0440 is now revision 1 (the tip) instead of revision 0.

test_0025_delete_repository_dependency()[source]

Delete the repository_dependencies.xml from convert_chars_0440.

We are at simple repository dependencies, steps 5 and 6 - Delete repository_dependencies.xml from convert_chars_0440. Make sure convert_chars_0440 now has two installable revisions: 1 and 2

test_0030_create_bwa_package_repository()[source]

Create and populate the bwa_package_0440 repository.

We are at complex repository dependencies, step 1 - Create and populate bwa_package_0440 so that it has a valid tool dependency definition and an installable revision 0.

test_0035_create_bwa_base_repository()[source]

Create and populate the bwa_base_0440 repository.

We are at complex repository dependencies, step 2 - Create and populate bwa_base_0440 so that it has an installable revision 0. This repository should contain a tool with a defined dependency that will be satisfied by the tool dependency defined in bwa_package_0440.

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.

We are at complex repository dependencies, step 3 - Add a valid complex repository dependency tool_dependencies.xml to bwa_base_0440 that points to the installable revision 0 of bwa_package_0440.

test_0045_verify_dependency_metadata()[source]

Verify that uploading the dependency moved metadata to the tip.

We are at complex repository dependencies, step 4 - Make sure that bwa_base_0440 installable revision is now revision 1 instead of revision 0.

test_0050_delete_complex_repository_dependency()[source]

Delete the tool_dependencies.xml from bwa_base_0440.

We are at complex repository dependencies, step 5 - Delete tool_dependencies.xml from bwa_base_0440, and make sure bwa_base_0440 now has two installable revisions: 1 and 2

test_0055_create_bwa_tool_dependency_repository()[source]

Create and populate the bwa_tool_dependency_0440 repository.

We are at tool dependencies, step 1 - Create and populate bwa_tool_dependency_0440 so that it has a valid tool dependency definition and an installable revision 0.

test_0060_delete_bwa_tool_dependency_definition()[source]

Delete the tool_dependencies.xml file from bwa_tool_dependency_0440.

We are at tool dependencies, step 2 - Delete tool_dependencies.xml from bwa_tool_dependency_0440. Make sure bwa_tool_dependency_0440 still has a downloadable changeset revision at the old tip.

test_0065_reupload_bwa_tool_dependency_definition()[source]

Reupload the tool_dependencies.xml file to bwa_tool_dependency_0440.

We are at tool dependencies, step 3 - 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.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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.

  1. Create and populate emboss_datatypes_0460.

  2. Create and populate package_bwa_0_5_9_0460

  3. 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.

  4. 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.

  5. Upload a tarball to complex_dependency_test_2_0460 with a tool_dependencies.xml in the root of the tarball.

  6. Upload a tarball to complex_dependency_test_3_0460 with a tool_dependencies.xml in a subfolder within the tarball.

  7. Create hg_tool_dependency_0460 and hg_subfolder_tool_dependency_0460 and populate with tool dependencies.

  8. Upload to complex_dependency_test_4_0460 using the url hg://<tool shed url>/repos/user1/hg_tool_dependency_0460.

  9. Upload to complex_dependency_test_5_0460 using the url hg://<tool shed url>/repos/user1/hg_subfolder_tool_dependency_0460.

  10. 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.

  11. 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.

  12. Upload a tarball to repository_dependency_test_1_0460 with a repository_dependencies.xml in the root of the tarball.

  13. Upload a tarball to repository_dependency_test_1_0460 with a repository_dependencies.xml in a subfolder within the tarball.

  14. Create hg_repository_dependency_0460 and populate with repository_dependencies.xml.

  15. Upload to repository_dependency_test_4_0460 using the url hg://<tool shed url>/repos/user1/hg_repository_dependency_0460.

  16. 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: ShedTwillTestCase

Test defining repository dependencies without specifying the changeset revision.

test_0000_initiate_users()[source]

Create necessary user accounts and login as an admin user.

test_0005_create_datatypes_repository()[source]

Create and populate the emboss_datatypes_0460 repository

This is step 1 - Create and populate emboss_datatypes_0460.

test_0010_create_bwa_package_repository()[source]

Create and populate the package_bwa_0_5_9_0460 repository.

This is step 2 - Create and populate package_bwa_0_5_9_0460.

test_0015_create_tool_dependency_repositories()[source]

Create repositories for testing complex dependency generation.

This is step 3 - 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. Each of these repositories will be populated in a way that tests a different way to achieve the same resulting dependency structure using complex tool dependencies. The different methods being tested are: - Upload an uncompressed tool_dependencies.xml to the root of the repository. - Upload a tool_dependencies.xml in a tarball, not in a subfolder. - Upload a tool_dependencies.xml in a subfolder within a tarball. - Upload via url, with the tool_dependencies.xml in the root of another repository. - Upload via url, with the tool_dependencies.xml in a subfolder within another repository.

test_0020_populate_complex_dependency_test_1_0460()[source]

Populate complex_dependency_test_1_0460.

This is step 4 - 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.

test_0025_populate_complex_dependency_test_2_0460()[source]

Populate complex_dependency_test_2_0460.

This is step 5 - Upload an tarball with tool_dependencies.xml to complex_dependency_test_2_0460 that specifies a complex repository dependency on package_bwa_0_5_9_0460 without a specified changeset revision or tool shed url.

test_0030_populate_complex_dependency_test_3_0460()[source]

Populate complex_dependency_test_3_0460.

This is step 6 - Upload an tarball with tool_dependencies.xml in a subfolder to complex_dependency_test_3_0460 that specifies a complex repository dependency on package_bwa_0_5_9_0460 without a specified changeset revision or tool shed url.

test_0035_create_repositories_for_url_upload()[source]

Create and populate hg_tool_dependency_0460 and hg_subfolder_tool_dependency_0460.

This is step 7 - Create hg_tool_dependency_0460 and hg_subfolder_tool_dependency_0460 and populate with tool dependencies.

test_0040_url_upload_to_complex_test()[source]

Populate complex_dependency_test_4_0460.

This is step 8 - Upload to complex_dependency_test_4_0460 using the url hg://<tool shed url>/repos/user1/hg_tool_dependency_0460.

test_0045_url_upload_to_complex_test()[source]

Populate complex_dependency_test_4_0460.

This is step 9 - Upload to complex_dependency_test_5_0460 using the url hg://<tool shed url>/repos/user1/hg_subfolder_tool_dependency_0460.

test_0050_create_repositories_for_simple_dependencies()[source]

Create repositories for testing simple dependency generation.

This is step 10 - 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.. Each of these repositories will be populated in a way that tests a different way to achieve the same resulting dependency structure using complex tool dependencies. The different methods being tested are: - Upload an uncompressed repository_dependencies.xml to the root of the repository. - Upload a repository_dependencies.xml in a tarball, not in a subfolder. - Upload a repository_dependencies.xml in a subfolder within a tarball. - Upload via url, with the repository_dependencies.xml in the root of another repository. - Upload via url, with the repository_dependencies.xml in a subfolder within another repository.

test_0055_populate_repository_dependency_test_1_0460()[source]

Populate repository_dependency_test_1_0460.

This is step 11 - 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.

test_0060_populate_repository_dependency_test_2_0460()[source]

Populate repository_dependency_test_2_0460.

This is step 12 - Upload a tarball to repository_dependency_test_2_0460 with a repository_dependencies.xml in the root of the tarball.

test_0065_populate_repository_dependency_test_3_0460()[source]

Populate repository_dependency_test_3_0460.

This is step 13 - Upload a tarball to repository_dependency_test_3_0460 with a repository_dependencies.xml in a subfolder within the tarball.

test_0070_create_repositories_for_url_upload()[source]

Create and populate hg_repository_dependency_0460 and hg_subfolder_repository_dependency_0460.

This is step 14 - Create hg_repository_dependency_0460 and hg_subfolder_repository_dependency_0460 and populate with repository dependencies.

test_0075_url_upload_to_complex_test()[source]

Populate repository_dependency_test_4_0460.

This is step 15 - Upload to repository_dependency_test_4_0460 using the url hg://<tool shed url>/repos/user1/hg_repository_dependency_0460.

test_0080_url_upload_to_complex_test()[source]

Populate repository_dependency_test_4_0460.

This is step 16 - Upload to repository_dependency_test_5_0460 using the url hg://<tool shed url>/repos/user1/hg_subfolder_repository_dependency_0460.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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'
  1. 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”.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. Change the repository type of the package_x11_client_1_5_proto_7_0 repository to be tool_dependency_definition.

  8. Change the repository type of the package_emboss_5_0_0 repository to be tool_dependency_definition.

  9. Reset metadata on the package_emboss_5_0_0 repository. It should now have only its tip as the installable revision.

  10. 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: 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.

This is step 1 - Create and populate a repository named package_x11_client_1_5_proto_7_0.

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”.

test_0010_create_emboss_5_0_0_repository()[source]

Create and populate package_emboss_5_0_0_0470.

This is step 2 - Create a repository named package_emboss_5_0_0 of type “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_dependencues.xml file such that it does not have a changeset_revision defined so it will get automatically populated.

test_0015_create_emboss_5_repository()[source]

Create and populate emboss_5_0470.

This is step 3 - Create a repository named emboss_5 of type “Unrestricted”.

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.

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.

This is step 4 - 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.

test_0025_upload_updated_tool_dependency_to_package_emboss()[source]

Upload a new tool_dependencies.xml to package_emboss_5_0_0_0470.

This is step 5 - 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.

test_0030_upload_updated_tool_dependency_to_emboss_5_repository()[source]

Upload a new tool_dependencies.xml to emboss_5_0470.

This is step 6 - 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.

test_0035_modify_package_x11_repository_type()[source]

Set package_x11_client_1_5_proto_7_0 type tool_dependency_definition.

This is step 7 - Change the repository type of the package_x11_client_1_5_proto_7_0 repository to be tool_dependency_definition.

test_0040_modify_package_emboss_repository_type()[source]

Set package_emboss_5_0_0 to type tool_dependency_definition.

This is step 8 - Change the repository type of the package_emboss_5_0_0 repository to be tool_dependency_definition.

test_0045_reset_repository_metadata()[source]

Reset metadata on package_emboss_5_0_0_0470 and package_x11_client_1_5_proto_7_0.

This is step 9 - Reset metadata on the package_emboss_5_0_0 and package_x11_client_1_5_proto_7_0 repositories. They should now have only their tip as the installable revision.

test_0050_reset_emboss_5_metadata()[source]

Reset metadata on emboss_5.

This is step 10 - Reset metadata on the emboss_5 repository. It should now have only its tip as the installable revision.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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'
  1. Create a repository package_invalid_tool_dependency_xml_1_0_0

  2. Upload a tool_dependencies.xml file to the repository with no <actions> tags around the <action> tags.

  3. Verify error message is displayed.

class tool_shed.test.functional.test_0480_tool_dependency_xml_verification.TestDependencyDefinitionValidation(methodName='runTest')[source]

Bases: 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.

test_0005_create_tool_dependency_repository()[source]

Create and populate package_invalid_tool_dependency_xml_1_0_0.

This is step 1 - Create a repository package_invalid_tool_dependency_xml_1_0_0.

Create a repository named package_invalid_tool_dependency_xml_1_0_0 that will contain only a single file named tool_dependencies.xml.

test_0010_populate_tool_dependency_repository()[source]

Verify package_invalid_tool_dependency_xml_1_0_0.

This is step 3 - Verify repository. The uploaded tool dependency XML should not have resulted in a new changeset.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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.'
  1. Create new repository as user user1.

  2. Check to make sure a new role was created named <repo_name>_user1_admin.

  3. Check to make sure a new repository_role_association record was created with appropriate repository id and role id.

  4. 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.

  5. Make sure the name of the role initially inspected in Step 2 has been changed to reflect the new repository name from Step 4.

  6. 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.

  7. As user user1, add user user2 as a repository admin user.

  8. 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: ShedTwillTestCase

Verify that the code correctly handles the repository admin role.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_filtering_repository()[source]

Create and populate the filtering_0530 repository.

This is step 1 - Create new repository as user user1.

test_0010_verify_repository_admin_role_exists()[source]

Verify that the role filtering_0530_user1_admin exists.

This is step 2 - Check to make sure a new role was created named filtering_0530_user1_admin.

test_0015_verify_repository_role_association()[source]

Verify that the filtering_0530_user1_admin role is associated with the filtering_0530 repository.

This is step 3 - Check to make sure a new repository_role_association record was created with appropriate repository id and role id.

test_0020_rename_repository()[source]

Rename the repository to renamed_filtering_0530.

This is step 4 - 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.

test_0030_verify_access_denied()[source]

Make sure a non-admin user can’t modify the repository.

This is step 6 - 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.

test_0035_grant_admin_role()[source]

Grant the repository admin role to user2.

This is step 7 - As user user1, add user user2 as a repository admin user.

test_0040_rename_repository_as_repository_admin()[source]

Rename the repository as user2.

This is step 8 - Log into the Tool Shed as user user2 and make sure the repository name and description can now be changed.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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'
  1. Create repository column_maker_0540 as user user1.

  2. Create repository convert_chars_0540 with dependency on column_maker_0540.

  3. Create repository package_bwa_0_5_9_0540.

  4. Create dependency on package_bwa_0_5_9_0540 for convert_chars_0540.

  5. 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: ShedTwillTestCase

Verify that the code correctly handles the repository admin role.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_bwa_package_repository()[source]

Create and populate package_bwa_0_5_9_0540.

test_0010_create_convert_repository()[source]

Create the convert_chars_0540 repository.

test_0015_create_column_repository()[source]

Create the column_maker_0540 repository.

test_0020_create_repository_dependency()[source]

Make column_maker depend on convert_chars.

test_0025_verify_dependency_json()[source]

Load the API endpoint to retrieve all repository metadata and verify that all three repository names are displayed.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

tool_shed.test.functional.test_0550_metadata_updated_dependencies module

tool_shed.test.functional.test_0550_metadata_updated_dependencies.category_description = 'Verify metadata updates'
  1. Create repository package_freebayes_0550.

  2. Create repository package_samtools_0550.

  3. Create repository filtering_0550.

  4. Create dependency on package_freebayes_0550 for filtering_0550.

  5. Create dependency on package_samtools_0550 for filtering_0550.

  6. Update package_freebayes_0550 and package_samtools_0550.

  1. 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: ShedTwillTestCase

Verify that updated repositories still have correct dependency links.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_freebayes_repository()[source]

Create and populate package_freebayes_0550.

test_0010_create_samtools_repository()[source]

Create and populate the package_samtools_0550 repository.

test_0015_create_filtering_repository()[source]

Create the filtering_0550 repository.

test_0020_check_repository_dependency()[source]

Make filtering depend on samtools and freebayes.

test_0025_update_dependent_repositories()[source]

Update freebayes and samtools, load the API endpoint again.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Test installing a basic repository.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_ensure_repositories_and_categories_exist()[source]

Create the 0000 category and upload the filtering repository to it, if necessary.

test_0010_browse_tool_sheds()[source]

Browse the available tool sheds in this Galaxy instance.

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.

test_0025_install_filtering_repository()[source]
test_0030_install_filtering_repository_again()[source]

Attempt to install the already installed filtering repository.

test_0035_verify_installed_repository_metadata()[source]

Verify that resetting the metadata on an installed repository does not change the metadata.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Test installing a repository with tool dependencies.

test_0000_initiate_users()[source]

Create necessary user accounts.

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.

test_0020_verify_installed_repository_metadata()[source]

Verify that resetting the metadata on an installed repository does not change the metadata.

test_0025_verify_sample_files()[source]

Verify that the installed repository populated shed_tool_data_table.xml and the sample files.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Test installing a repository with repository dependencies.

test_0000_initiate_users()[source]

Create necessary user accounts.

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.

test_0025_deactivate_datatypes_repository()[source]

Deactivate the emboss_datatypes repository without removing it from disk.

test_0030_reactivate_datatypes_repository()[source]

Reactivate the datatypes repository and verify that the datatypes are again present.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Test installing a repository with dependency revisions.

test_0000_initiate_users()[source]

Create necessary user accounts.

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.

test_0015_install_emboss_repository()[source]

Install the emboss repository without installing tool dependencies.

test_0025_verify_installed_repository_metadata()[source]

Verify that resetting the metadata on an installed repository does not change the metadata.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Verify that the code correctly handles installing repositories with circular dependencies.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_freebayes_repository()[source]

Create and populate freebayes_0040.

test_0015_create_filtering_repository()[source]

Create and populate filtering_0040.

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.

test_0040_uninstall_freebayes_repository()[source]

Deactivate freebayes, verify tool panel section and missing repository dependency.

test_0045_deactivate_filtering_repository()[source]

Deactivate filtering, verify tool panel section.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Verify that the code correctly handles circular dependencies down to n levels.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_convert_repository()[source]

Create and populate convert_chars_0050.

test_0010_create_column_repository()[source]

Create and populate convert_chars_0050.

test_0015_create_emboss_datatypes_repository()[source]

Create and populate emboss_datatypes_0050.

test_0020_create_emboss_repository()[source]

Create and populate emboss_0050.

test_0025_create_filtering_repository()[source]

Create and populate filtering_0050.

test_0030_create_freebayes_repository()[source]

Create and populate freebayes_0050.

test_0035_create_bismark_repository()[source]

Create and populate bismark_0050.

test_0040_create_and_upload_dependency_definitions()[source]

Set up the dependency structure.

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.

test_0055_install_column_repository()[source]

Install column_maker with repository dependencies.

test_0060_install_emboss_repository()[source]

Install emboss_5 with repository dependencies.

test_0065_deactivate_datatypes_repository()[source]

Deactivate emboss_datatypes and verify that the datatypes count is reduced.

test_0070_uninstall_emboss_repository()[source]

Uninstall the emboss_5 repository.

test_0075_install_freebayes_repository()[source]

Install freebayes with repository dependencies. This should also automatically reactivate emboss_datatypes and reinstall emboss_5.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

tool_shed.test.functional.test_1070_invalid_tool module

class tool_shed.test.functional.test_1070_invalid_tool.TestFreebayesRepository(methodName='runTest')[source]

Bases: 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.

test_0010_browse_tool_shed()[source]

Browse the available tool sheds in this Galaxy instance and preview the bismark repository.

test_0015_install_freebayes_repository()[source]

Install the test repository without installing tool dependencies.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: 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.

test_0075_uninstall_column_repository()[source]

Uninstall column_maker, verify that both convert_chars and column_maker are uninstalled.

test_0080_reinstall_convert_repository()[source]

Reinstall convert_chars with repository dependencies, verify that this installs both convert_chars and column_maker.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: 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_0010_create_and_populate_convert_repository()[source]
test_0015_create_and_upload_dependency_files()[source]
test_0020_install_repositories()[source]

Install column_maker into column_maker tool panel section and install repository dependencies.

test_0025_uninstall_column_repository()[source]

uninstall column_maker, verify same section

test_0030_uninstall_convert_repository()[source]
test_0035_reinstall_column_repository()[source]

reinstall column_maker into new section ‘new_column_maker’ (no_changes = false), no dependencies

test_0040_reinstall_convert_repository()[source]

reinstall convert_chars into new section ‘new_convert_chars’ (no_changes = false), no dependencies

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: 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.

test_0025_verify_repository_dependency()[source]

Verify that the new revision of column_maker now depends on convert_chars.

test_0030_reinstall_column_repository()[source]

Reinstall column_maker and verify that it now shows repository dependencies.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Test features related to installing repositories with complex repository dependencies.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_bwa_package_repository()[source]

Create and populate package_bwa_0_5_9_0100.

test_0010_create_bwa_base_repository()[source]

Create and populate bwa_base_0100.

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.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Testing emboss 5 with repository dependencies.

test_0000_initiate_users()[source]

Create necessary user accounts and login as an admin user.

test_0005_create_category()[source]

Create a category for this test suite

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.

test_0040_generate_repository_dependency_with_invalid_changeset_revision()[source]

Generate a repository dependency for emboss 5 with an invalid changeset revision.

test_0045_install_repository_with_invalid_repository_dependency()[source]

Install the repository and verify that galaxy detects invalid repository dependencies.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

test_0000_initiate_users()[source]

Create necessary user accounts and login as an admin user.

Create all the user accounts that are needed for this test script to run independently of other tests. Previously created accounts will not be re-created.

test_0005_create_datatypes_repository()[source]

Create and populate the blast_datatypes_0120 repository

We are at step 1. Create and populate blast_datatypes.

test_0010_verify_datatypes_repository()[source]

Verify the blast_datatypes_0120 repository.

We are at step 1a. Check for appropriate strings, most importantly BlastXml, BlastNucDb, and BlastProtDb, the datatypes that are defined in datatypes_conf.xml.

test_0015_create_tool_repository()[source]

Create and populate the blastxml_to_top_descr_0120 repository

We are at step 2. Create and populate blastxml_to_top_descr_0120.

test_0020_verify_tool_repository()[source]

Verify the blastxml_to_top_descr_0120 repository.

We are at step 2a. Check for appropriate strings, such as tool name, description, and version.

test_0025_create_repository_dependency()[source]

Create a repository dependency on blast_datatypes_0120.

We are at step 3. Create a simple repository dependency for blastxml_to_top_descr_0120 that defines a dependency on blast_datatypes_0120.

test_0040_verify_repository_dependency()[source]

Verify the created repository dependency.

We are at step 3a. Check the newly created repository dependency to ensure that it was defined and displays correctly.

test_0045_install_blastxml_to_top_descr()[source]

Install the blastxml_to_top_descr_0120 repository to Galaxy.

We are at step 1, Galaxy side. Install blastxml_to_top_descr_0120 to Galaxy, with repository dependencies, so that the datatypes repository is also installed.

test_0050_verify_repository_installation()[source]

Verify installation of blastxml_to_top_descr_0120 and blast_datatypes_0120.

We are at step 1a, Galaxy side. Check that the blastxml_to_top_descr_0120 and blast_datatypes_0120 repositories installed correctly, and that there are now new datatypes in the registry matching the ones defined in blast_datatypes_0120. Also check that blast_datatypes_0120 is labeled as an installed repository dependency of blastxml_to_top_descr_0120.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

tool_shed.test.functional.test_1150_datatype_converters module

tool_shed.test.functional.test_1150_datatype_converters.category_description = 'Test 0130 Datatype Converters'
  1. Install the bed_to_gff_converter repository.

  2. 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.

  3. 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: ShedTwillTestCase

Test features related to datatype converters.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_bed_to_gff_repository()[source]

Create and populate bed_to_gff_0130.

test_0010_install_datatype_converter_to_galaxy()[source]

Install bed_to_gff_converter_0130 into the running Galaxy instance.

We are at step 1 - Install the bed_to_gff_converter repository. Install bed_to_gff_converter_0130, checking that the option to select the tool panel section is not displayed.

test_0015_uninstall_and_verify_tool_panel_section()[source]

Uninstall bed_to_gff_converter_0130 and verify that the saved tool_panel_section is None.

We are at step 3 - Make sure the bed_to_gff_converter tool is not displayed in the tool panel. The previous tool panel section for a tool is only recorded in the metadata when a repository is uninstalled, so we have to uninstall it first, then verify that it was not assigned a tool panel section.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Test features related to tool help images.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_htseq_count_repository()[source]

Create and populate htseq_count_0140.

We are at step 1 - Create and populate the htseq_count_0140 repository. Create the htseq_count_0140 repository and upload the tarball.

test_0010_load_tool_page()[source]

Load the tool page and check for the image URL.

This is a duplicate of test method _0010 in test_0140_tool_help_images.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Test features related to datatype converters.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_convert_repository()[source]

Create and populate convert_chars_0150.

test_0010_create_column_repository()[source]

Create and populate convert_chars_0150.

test_0015_create_repository_dependency()[source]

Create a repository dependency specifying convert_chars.

Column maker repository dependency:

<repository toolshed=”self.url” name=”convert_chars” owner=”test” changeset_revision=”<tip>” prior_installation_required=”True” />

test_0020_verify_repository_dependency()[source]

Verify that the previously generated repositiory dependency displays correctly.

test_0025_install_column_repository()[source]

Install column_maker_0150.

test_0030_verify_installation_order()[source]

Verify that convert_chars_0150 was installed before column_maker_0150.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Test features related to datatype converters.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_convert_repository()[source]

Create and populate convert_chars_0160.

test_0010_create_column_repository()[source]

Create and populate convert_chars_0160.

test_0015_create_filtering_repository()[source]

Create and populate filtering_0160.

test_0020_create_repository_dependency()[source]

Create a repository dependency specifying convert_chars.

Each of the three repositories should depend on the other two, to make this as circular as possible.

test_0025_verify_repository_dependency()[source]

Verify that the previously generated repositiory dependency displays correctly.

test_0030_install_filtering_repository()[source]

Install the filtering_0160 repository.

test_0035_verify_installation_order()[source]

Verify that convert_chars_0160 and column_maker_0160 were installed before filtering_0160.

test_0040_deactivate_all_repositories()[source]

Uninstall convert_chars_0160, column_maker_0160, and filtering_0160.

test_0045_reactivate_filter_repository()[source]

Reinstall the filtering_0160 repository.

test_0050_verify_reinstallation_order()[source]

Verify that convert_chars_0160 and column_maker_0160 were reinstalled before filtering_0160.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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'
  1. Create and populate repositories package_matplotlib_1_2_0170 and package_numpy_1_7_0170.

  2. Create a complex repository dependency on package_numpy_1_7_0170, and upload this to package_matplotlib_1_2_0170.

  3. Verify that package_matplotlib_1_2_0170 now depends on package_numpy_1_7_0170, and that the inherited tool dependency displays correctly.

  4. Install package_matplotlib_1_2_0170 with repository dependencies.

  5. 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: ShedTwillTestCase

Test features related to datatype converters.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_matplotlib_repository()[source]

Create and populate the package_matplotlib_1_2_0170 repository.

This is step 1 - Create and populate repositories package_matplotlib_1_2_0170 and package_numpy_1_7_0170.

test_0010_create_numpy_repository()[source]

Create and populate the package_numpy_1_7_0170 repository.

This is step 1 - Create and populate repositories package_matplotlib_1_2_0170 and package_numpy_1_7_0170.

test_0015_create_complex_repository_dependency()[source]

Create a dependency on package_numpy_1_7_0170.

This is step 2 - Create a complex repository dependency on package_numpy_1_7_0170, and upload this to package_matplotlib_1_2_0170. package_matplotlib_1_2_0170 should depend on package_numpy_1_7_0170, with prior_installation_required set to True. When matplotlib is selected for installation, the result should be that numpy is compiled and installed first.

test_0020_verify_generated_dependency()[source]

Verify that matplotlib now has a package tool dependency and a complex repository dependency.

This is step 3 - Verify that package_matplotlib_1_2_0170 now depends on package_numpy_1_7_0170, and that the inherited tool dependency displays correctly. ‘Inherited’ in this case means that matplotlib should show a package tool dependency on numpy version 1.7, and a repository dependency on the latest revision of package_numpy_1_7_0170.

test_0025_install_matplotlib_repository()[source]

Install the package_matplotlib_1_2_0170 repository.

This is step 4 - Install package_matplotlib_1_2_0170 with repository dependencies.

test_0030_verify_installation_order()[source]

Verify that the numpy repository was installed before the matplotlib repository.

This is step 5 - Verify that the prior_installation_required attribute resulted in package_numpy_1_7_0170 being installed first. In the previous step, package_matplotlib_1_2_0170 was selected for installation, but package_numpy_1_7_0170 had the prior_installation_required attribute set. Confirm that this resulted in package_numpy_1_7_0170 being installed before package_matplotlib_1_2_0170.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Test uninstalling and reinstalling a basic repository.

test_0000_initiate_users()[source]

Create necessary user accounts.

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.

test_0015_uninstall_filtering_repository()[source]

Uninstall the filtering repository.

test_0020_reinstall_filtering_repository()[source]

Reinstall the filtering repository.

test_0025_deactivate_filtering_repository()[source]

Deactivate the filtering repository without removing it from disk.

test_0030_reactivate_filtering_repository()[source]

Reactivate the filtering repository and verify that it now shows up in the list of installed repositories.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Test uninstalling and reinstalling a repository with tool dependencies.

test_0000_initiate_users()[source]

Create necessary user accounts.

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.

test_0015_uninstall_freebayes_repository()[source]

Uninstall the freebayes repository.

test_0020_reinstall_freebayes_repository()[source]

Reinstall the freebayes repository.

test_0025_deactivate_freebayes_repository()[source]

Deactivate the freebayes repository without removing it from disk.

test_0030_reactivate_freebayes_repository()[source]

Reactivate the freebayes repository and verify that it now shows up in the list of installed repositories.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Test uninstalling and reinstalling a repository with tool dependencies.

test_0000_initiate_users()[source]

Create necessary user accounts.

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.

test_0015_uninstall_emboss_repository()[source]

Uninstall the emboss repository.

test_0020_reinstall_emboss_repository()[source]

Reinstall the emboss repository.

test_0025_deactivate_emboss_repository()[source]

Deactivate the emboss repository without removing it from disk.

test_0030_reactivate_emboss_repository()[source]

Reactivate the emboss repository and verify that it now shows up in the list of installed repositories.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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: ShedTwillTestCase

Test uninstalling and reinstalling a repository with repository dependency revisions.

test_0000_initiate_users()[source]

Create necessary user accounts.

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.

test_0015_uninstall_emboss_repository()[source]

Uninstall the emboss repository.

test_0020_reinstall_emboss_repository()[source]

Reinstall the emboss repository.

test_0025_deactivate_emboss_repository()[source]

Deactivate the emboss repository without removing it from disk.

test_0030_reactivate_emboss_repository()[source]

Reactivate the emboss repository and verify that it now shows up in the list of installed repositories.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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:

  1. Directly, by calling sh run_functional_tests.sh -toolshed test/tool_shed/functional/test_1300_reset_all_metadata.py. -or-

  2. 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: ShedTwillTestCase

Verify that the “Reset selected metadata” feature works.

test_0000_initiate_users()[source]

Create necessary user accounts.

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_0015_create_repositories_from_0010_series()[source]

Create repository freebayes_0010.

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.

test_0035_create_repositories_from_0060_series()[source]
test_9900_install_all_missing_repositories()[source]

Call the install_repository method to ensure that all required repositories are installed.

test_9905_reset_metadata_on_all_repositories()[source]

Reset metadata on all repositories, then verify that it has not changed.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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.'
  1. Create and populate the filtering_1410 repository.

  2. Install filtering_1410 to Galaxy.

  3. Upload a readme file.

  4. Verify that the browse page now shows an update available.

class tool_shed.test.functional.test_1410_update_manager.TestUpdateManager(methodName='runTest')[source]

Bases: ShedTwillTestCase

Test the Galaxy update manager.

test_0000_initiate_users()[source]

Create necessary user accounts and login as an admin user.

Create all the user accounts that are needed for this test script to run independently of other tests. Previously created accounts will not be re-created.

test_0005_create_filtering_repository()[source]

Create and populate the filtering_1410 repository.

We are at step 1 - Create and populate the filtering_1410 repository. Create filtering_1410 and upload the tool tarball to it.

test_0010_install_filtering_repository()[source]

Install the filtering_1410 repository.

We are at step 2 - Install filtering_1410 to Galaxy. Install the filtering repository to Galaxy.

test_0015_upload_readme_file()[source]

Upload readme.txt to filtering_1410.

We are at step 3 - Upload a readme file. Upload readme.txt. This will have the effect of making the installed changeset revision not be the most recent downloadable revision, but without generating a second downloadable revision. Then sleep for 3 seconds to make sure the update manager picks up the new revision.

test_0020_check_for_displayed_update()[source]

Browse installed repositories and verify update.

We are at step 4 - Verify that the browse page now shows an update available. The browse page should now show filtering_1410 as installed, but with a yellow box indicating that there is an update available.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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:

  1. Create and populate the filter_1430 repository

  2. Create and populate the column_1430 repository

  3. Upload a repository_dependencies.xml file to the column_1430 repository that creates a repository dependency on the filter_1430 repository.

In Galaxy:

  1. 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.

  2. Uninstall the filter_1430 repository.

class tool_shed.test.functional.test_1430_repair_installed_repository.TestRepairRepository(methodName='runTest')[source]

Bases: ShedTwillTestCase

Test repairing an installed repository.

test_0000_initiate_users_and_category()[source]

Create necessary user accounts and login as an admin user.

test_0005_create_filter_repository()[source]

Create and populate the filter_1430 repository.

This is step 1 - Create and populate the filter_1430 repository.

This repository will be depended on by the column_1430 repository.

test_0010_create_column_repository()[source]

Create and populate the column_1430 repository.

This is step 2 - Create and populate the column_1430 repository.

This repository will depend on the filter_1430 repository.

test_0015_create_repository_dependency()[source]

Create a dependency on filter_1430.

This is step 3 - Upload a repository_dependencies.xml file to the column_1430 repository that creates a repository dependency on the filter_1430 repository.

test_0020_install_column_repository()[source]

Install the column_1430 repository into Galaxy.

This is step 1 (galaxy side) - Install the column_1430 repository, making sure to check the checkbox to handle repository dependencies so that the filter_1430 repository is also installed. Make sure to install the repositories in a specified section of the tool panel.

test_0025_uninstall_filter_repository()[source]

Uninstall the filter_1430 repository from Galaxy.

This is step 2 - Uninstall the filter_1430 repository.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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'
  1. Get a count of datatypes and sniffers.

  2. Install proteomics_datatypes_1450.

  3. Verify the count of datatypes and sniffers is the previous count + the datatypes contained within proteomics_datatypes_1450.

  4. Deactivate proteomics_datatypes_1450, verify the count of datatypes and sniffers is equal to the count determined in step 1.

  5. Reactivate proteomics_datatypes_1450, verify that the count of datatypes and sniffers has been increased by the contents of the repository.

  6. Uninstall proteomics_datatypes_1450, verify the count of datatypes and sniffers is equal to the count determined in step 1.

  7. 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: ShedTwillTestCase

Test installing a repository that defines datatypes and datatype sniffers.

test_0000_initiate_users()[source]

Create necessary user accounts.

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.

This includes steps 1 and 2 - Get a count of datatypes and sniffers. Store a count of the current datatypes registry and sniffers in global variables, to compare with the updated count after changing the installation status of the proteomics_datatypes_1450 repository.

test_0015_verify_datatypes_count()[source]

Verify that datatypes were added in the previous step.

This is step 3 - Verify the count of datatypes and sniffers is the previous count + the datatypes contained within proteomics_datatypes_1450. Compare the current datatypes registry and sniffers with the values that were retrieved in the previous step.

test_0020_deactivate_datatypes_repository()[source]

Deactivate the installed proteomics_datatypes_1450 repository.

This is step 4 - Deactivate proteomics_datatypes_1450, verify the count of datatypes and sniffers is equal to the count determined in step 1. Deactivate proteomics_datatypes_1450 and check that the in-memory datatypes and sniffers match the base values determined in the first step.

test_0025_reactivate_datatypes_repository()[source]

Reactivate the deactivated proteomics_datatypes_1450 repository.

This is step 5 - Reactivate proteomics_datatypes, verify that the count of datatypes and sniffers has been increased by the contents of the repository.

test_0030_uninstall_datatypes_repository()[source]

Uninstall the installed proteomics_datatypes_1450 repository.

This is step 6 - Uninstall proteomics_datatypes_1450, verify the count of datatypes and sniffers is equal to the count determined in step 1. Uninstall proteomics_datatypes_1450 and check that the in-memory datatypes and sniffers match the base values determined in the first step.

test_0035_reinstall_datatypes_repository()[source]

Reinstall the uninstalled proteomics_datatypes_1450 repository.

This is step 7 - Reinstall proteomics_datatypes_1450, verify that the count of datatypes and sniffers has been increased by the contents of the repository.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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'
  1. Add a Data Manager to toolshed

  2. install Data Manager

  3. Check that Data Manager tool

class tool_shed.test.functional.test_1460_data_managers.TestDataManagers(methodName='runTest')[source]

Bases: 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_0010_create_data_manager_repository()[source]

Create and populate data_manager_1460.

This is step 1 - Create repository data_manager_1460.

Create and populate a repository that contains a Data manager.

test_0020_install_data_manager_repository()[source]

Install the data_manager_1460 repository to galaxy.

This is step 3 - Attempt to install the repository into a galaxy instance, verify that it is installed.

test_0030_verify_data_manager_tool()[source]

Verify that the data_manager_1460 repository is installed and Data Manager tool appears in list in Galaxy.

test_0040_verify_data_manager_data_table()[source]

Verify that the installed repository populated shed_tool_data_table.xml and the sample files.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver

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.'
  1. Install a repository into Galaxy.

  2. In the Tool Shed, update the repository from Step 1.

  3. In Galaxy, get updates to the repository.

  4. In Galaxy, uninstall the repository.

  5. In Galaxy, reinstall the repository.

  6. Make sure step 5 created no white ghosts.

class tool_shed.test.functional.test_1470_updating_installed_repositories.TestUpdateInstalledRepository(methodName='runTest')[source]

Bases: ShedTwillTestCase

Verify that the code correctly handles updating an installed repository, then uninstalling and reinstalling.

test_0000_initiate_users()[source]

Create necessary user accounts.

test_0005_create_filtering_repository()[source]

Create and populate the filtering_0530 repository.

test_0010_install_filtering_to_galaxy()[source]

Install the filtering_1470 repository to galaxy.

This is step 1 - Install a repository into Galaxy.

test_0015_update_repository()[source]

Upload a readme file to the filtering_1470 repository.

This is step 2 - In the Tool Shed, update the repository from Step 1.

Importantly, this update should not create a new installable changeset revision, because that would eliminate the process we’re testing in this script. So, we upload a readme file.

test_0020_get_repository_updates()[source]

Get updates to the installed repository.

This is step 3 - In Galaxy, get updates to the repository.

test_0025_uninstall_repository()[source]

Uninstall the filtering_1470 repository.

This is step 4 - In Galaxy, uninstall the repository.

test_0030_reinstall_repository()[source]

Reinstall the filtering_1470 repository.

This is step 5 - In Galaxy, reinstall the repository.

test_0035_verify_absence_of_ghosts()[source]

Check the count of repositories in the database named filtering_1470 and owned by user1.

This is step 6 - Make sure step 5 created no white ghosts.

history_id: Optional[str]
host: str
port: Optional[str]
url: str
keepOutdir: str
test_data_resolver: TestDataResolver