glare.tests.unit.api package

Submodules

glare.tests.unit.api.test_create module

class glare.tests.unit.api.test_create.TestArtifactCreate(*args, **kwargs)[source]

Bases: glare.tests.unit.base.BaseTestArtifactAPI

Test Glare artifact creation.

test_create_artifact_4_byte_unicode()[source]
test_create_artifact_blob()[source]
test_create_artifact_minimal()[source]
test_create_artifact_no_name()[source]
test_create_artifact_not_existing_field()[source]
test_create_artifact_status_and_visibility()[source]
test_create_artifact_system_fields()[source]
test_create_artifact_unicode()[source]
test_create_artifact_with_fields()[source]
test_create_artifact_with_nullable_false_field()[source]
test_create_artifact_with_version()[source]
test_create_artifact_wrong_parameters()[source]
test_create_no_artifact_type()[source]

glare.tests.unit.api.test_delete module

class glare.tests.unit.api.test_delete.TestArtifactDelete(*args, **kwargs)[source]

Bases: glare.tests.unit.base.BaseTestArtifactAPI

Test Glare artifact deletion.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_delayed_delete_global(**keywargs)[source]
test_delayed_delete_per_artifact_type(**keywargs)[source]
test_delete_blob_not_found(**keywargs)[source]
test_delete_deleted_artifact()[source]
test_delete_not_found()[source]
test_delete_saving_blob()[source]
test_delete_unknown_store_exception(**keywargs)[source]
test_delete_with_blob_dict(**keywargs)[source]
test_delete_with_data(**keywargs)[source]
test_no_delete_permission(**keywargs)[source]

glare.tests.unit.api.test_delete_blobs module

class glare.tests.unit.api.test_delete_blobs.TestDeleteBlobs(*args, **kwargs)[source]

Bases: glare.tests.unit.base.BaseTestArtifactAPI

Test deleting of custom locations.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_delete_blob_wrong()[source]
test_delete_external_blob()[source]
test_delete_external_blob_dict()[source]
test_delete_internal_blob()[source]
test_delete_internal_blob_dict()[source]

glare.tests.unit.api.test_download module

class glare.tests.unit.api.test_download.TestArtifactDownload(*args, **kwargs)[source]

Bases: glare.tests.unit.base.BaseTestArtifactAPI

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_download_basic()[source]
test_download_external_blob()[source]
test_download_for_deleted_artifact()[source]
test_download_from_deactivated_artifact_as_other_user()[source]
test_download_from_folders()[source]
test_download_from_non_existing_fields()[source]
test_download_of_saving_blob()[source]

glare.tests.unit.api.test_list module

class glare.tests.unit.api.test_list.TestArtifactList(*args, **kwargs)[source]

Bases: glare.tests.unit.base.BaseTestArtifactAPI

test_filter_by_tags()[source]
test_list_and_sort_fields()[source]
test_list_and_sort_negative()[source]
test_list_compound_fields()[source]
test_list_like_filter()[source]
test_list_marker_and_limit()[source]
test_list_query_combiner()[source]
test_list_simple_fields()[source]
test_list_tags_base_and_additional_properties_with_sort()[source]
test_list_version()[source]

glare.tests.unit.api.test_locations module

class glare.tests.unit.api.test_locations.TestLocations(*args, **kwargs)[source]

Bases: glare.tests.unit.base.BaseTestArtifactAPI

Test adding custom locations.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_add_dict_location()[source]
test_add_location()[source]
test_add_location_saving_blob()[source]
test_internal_location()[source]
test_too_long_location_url()[source]

glare.tests.unit.api.test_show module

class glare.tests.unit.api.test_show.TestArtifactShow(*args, **kwargs)[source]

Bases: glare.tests.unit.base.BaseTestArtifactAPI

test_show_basic()[source]
test_show_basic_negative()[source]

glare.tests.unit.api.test_update module

class glare.tests.unit.api.test_update.TestArtifactUpdate(*args, **kwargs)[source]

Bases: glare.tests.unit.base.BaseTestArtifactAPI

Test Glare artifact updates.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_basic_update()[source]
test_update_artifact_4_byte_unicode()[source]
test_update_artifact_blob()[source]
test_update_artifact_mutable_fields()[source]
test_update_artifact_not_existing_field()[source]
test_update_artifact_remove_field()[source]
test_update_artifact_status()[source]
test_update_artifact_system_fields()[source]
test_update_artifact_unicode()[source]
test_update_artifact_visibility()[source]
test_update_artifact_wrong_parameters()[source]
test_update_deleted_artifact()[source]
test_update_dicts()[source]
test_update_lists()[source]
test_update_name_version()[source]
test_update_no_artifact_type()[source]
test_update_replace_values()[source]

Bases: glare.tests.unit.base.BaseTestArtifactAPI

Test Glare artifact link management.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

glare.tests.unit.api.test_upload module

class glare.tests.unit.api.test_upload.TestArtifactUpload(*args, **kwargs)[source]

Bases: glare.tests.unit.base.BaseTestArtifactAPI

Test blob uploading.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_already_uploaded()[source]
test_blob_dict_storage_error()[source]
test_blob_size_too_big()[source]
test_existing_blob_dict_key()[source]
test_parallel_uploading_and_activation()[source]

This test check whether it is possible to activate an artifact, when it has uploading blobs.

test_storage_error()[source]
test_upload_basic()[source]
test_upload_blob_dict()[source]
test_upload_blob_dict_without_key()[source]
test_upload_non_blob_field()[source]
test_upload_nonexistent_field()[source]
test_upload_oversized_blob_dict()[source]
test_upload_saving_blob()[source]
test_upload_with_content_length()[source]
test_upload_with_hook()[source]
test_upload_with_hook_error()[source]

Module contents