object_storage package¶
Submodules¶
object_storage.base module¶
object_storage.test_account_bulk module¶
- class BulkTest(*args, **kwargs)[source]¶
Bases:
BaseObjectTest
Test bulk operation of archived file
- test_bulk_delete()[source]¶
Test idempotent id: c075e682-0d2a-43b2-808d-4116200d736d
Test bulk operation of deleting multiple files
object_storage.test_account_quotas module¶
- class AccountQuotasTest(*args, **kwargs)[source]¶
Bases:
BaseObjectTest
Test account quotas
- test_admin_modify_quota()[source]¶
Test idempotent id: 63f51f9f-5f1d-4fc6-b5be-d454d70949d6
Test ResellerAdmin can modify/remove the quota on a user’s account
Using the account client, the test modifies the quota successively to:
“25”: a random value different from the initial quota value.
“” : an empty value, equivalent to the removal of the quota.
“20”: set the quota to its initial value.
object_storage.test_account_quotas_negative module¶
object_storage.test_account_services module¶
- class AccountTest(*args, **kwargs)[source]¶
Bases:
BaseObjectTest
Test account metadata and containers
- test_list_account_metadata()[source]¶
Test idempotent id: 4894c312-6056-4587-8d6f-86ffbf861f80
Test listing account metadata
- test_list_containers()[source]¶
Test idempotent id: 3499406a-ae53-4f8c-b43a-133d4dc6fe3f
Test listing containers
- test_list_containers_reverse_order()[source]¶
Test idempotent id: b1811cff-d1ed-4c15-a52e-efd8de41cf34
Test listing containers in reverse order
- test_list_containers_with_end_marker()[source]¶
Test idempotent id: 5ca164e4-7bde-43fa-bafb-913b53b9e786
Test listing containers with end_marker parameter
First expect to get 0 container as we specified first container as end_marker, second expect to get the top half of the containers
- test_list_containers_with_format_json()[source]¶
Test idempotent id: 1c7efa35-e8a2-4b0b-b5ff-862c7fd83704
Test listing containers setting format parameter to ‘json’
- test_list_containers_with_format_xml()[source]¶
Test idempotent id: 4477b609-1ca6-4d4b-b25d-ad3f01086089
Test listing containers setting format parameter to ‘xml’
- test_list_containers_with_limit()[source]¶
Test idempotent id: 5cfa4ab2-4373-48dd-a41f-a532b12b08b2
Test listing containers with limit parameter
Listing containers limited to one of them, half of them, and then all of them.
- test_list_containers_with_limit_and_end_marker()[source]¶
Test idempotent id: 888a3f0e-7214-4806-8e50-5e0c9a69bb5e
Test listing containers combining end_marker and limit parameter
Result are always limited by the limit whatever the end_marker.
- test_list_containers_with_limit_and_marker()[source]¶
Test idempotent id: f7064ae8-dbcc-48da-b594-82feef6ea5af
Test listing containers combining marker and limit parameter
Result are always limited by the limit whatever the marker.
- test_list_containers_with_limit_and_marker_and_end_marker()[source]¶
Test idempotent id: 8cf98d9c-e3a0-4e44-971b-c87656fdddbd
Test listing containers combining marker and end_marker and limit
Result are always limited by the limit whatever the marker and the end_marker.
- test_list_containers_with_marker()[source]¶
Test idempotent id: 638f876d-6a43-482a-bbb3-0840bca101c6
Test listing containers with marker parameter
First expect to get 0 container as we specified the last container as marker, second expect to get the bottom half of the containers.
- test_list_containers_with_marker_and_end_marker()[source]¶
Test idempotent id: ac8502c2-d4e4-4f68-85a6-40befea2ef5e
Test listing containers with marker and end_marker parameter
If we use the first container as marker, and the last container as end_marker, then we should get all containers excluding the first one and the last one.
- test_list_containers_with_prefix()[source]¶
Test idempotent id: 365e6fc7-1cfe-463b-a37c-8bd08d47b6aa
Test listing containers that have a name starting with a prefix
- test_list_extensions()[source]¶
Test idempotent id: 6eb04a6a-4860-4e31-ba91-ea3347d76b58
Test listing capabilities
- test_list_no_account_metadata()[source]¶
Test idempotent id: b904c2e3-24c2-4dba-ad7d-04e90a761be5
Test listing account metadata for account without metadata
- test_list_no_containers()[source]¶
Test idempotent id: 884ec421-fbad-4fcc-916b-0580f2699565
Test listing containers for an account without container
- test_update_account_metadata_with_create_and_delete_metadata()[source]¶
Test idempotent id: 8e5fc073-59b9-42ee-984a-29ed11b2c749
Test adding and deleting metadata simultaneously
Send a request adding and deleting metadata requests simultaneously, both adding and deleting of metadata will succeed.
- test_update_account_metadata_with_create_metadata()[source]¶
Test idempotent id: e2a08b5f-3115-4768-a3ee-d4287acd6c08
Test adding metadata to account
- test_update_account_metadata_with_create_metadata_key()[source]¶
Test idempotent id: 64fd53f3-adbd-4639-af54-436e4982dbfb
Test adding metadata to account with empty value
Adding metadata with empty value to account, the metadata is not registered.
- test_update_account_metadata_with_delete_metadata()[source]¶
Test idempotent id: 9f60348d-c46f-4465-ae06-d51dbd470953
Test deleting metadata from account
- test_update_account_metadata_with_delete_metadata_key()[source]¶
Test idempotent id: d4d884d3-4696-4b85-bc98-4f57c4dd2bf1
Test deleting metadata from account with empty value
Although the value of metadata is not set, the feature of deleting metadata is valid, so the metadata is removed from account.
object_storage.test_account_services_negative module¶
object_storage.test_container_acl module¶
object_storage.test_container_acl_negative module¶
- class ObjectACLsNegativeTest(*args, **kwargs)[source]¶
Bases:
BaseObjectTest
Negative tests of object ACLs
- test_delete_object_with_non_authorized_user()[source]¶
Test idempotent id: 7343ac3d-cfed-4198-9bb0-00149741a492
Test deleting object with non-authorized user
- test_delete_object_without_using_creds()[source]¶
Test idempotent id: af85af0b-a025-4e72-a90e-121babf55720
Test deleting object without using credentials
- test_delete_object_without_write_rights()[source]¶
Test idempotent id: b4e366f8-f185-47ab-b789-df4416f9ecdb
Test deleting object without write rights
- test_read_object_with_non_authorized_user()[source]¶
Test idempotent id: abf63359-be52-4feb-87dd-447689fc77fd
Test reading object with non-authorized user
- test_read_object_without_rights()[source]¶
Test idempotent id: 9ed01334-01e9-41ea-87ea-e6f465582823
Test reading object without rights
- test_write_object_with_non_authorized_user()[source]¶
Test idempotent id: 63d84e37-55a6-42e2-9e5f-276e60e26a00
Test writing object with non-authorized user
- test_write_object_without_rights()[source]¶
Test idempotent id: a3a585a7-d8cf-4b65-a1a0-edc2b1204f85
Test writing object without rights
object_storage.test_container_quotas module¶
- class ContainerQuotasTest(*args, **kwargs)[source]¶
Bases:
BaseObjectTest
Attempts to test the perfect behavior of quotas in a container.
- test_upload_large_object()[source]¶
Test idempotent id: 22eeeb2b-3668-4160-baef-44790f65a5a0
Attempts to upload an object larger than the bytes quota.
object_storage.test_container_services module¶
- class ContainerTest(*args, **kwargs)[source]¶
Bases:
BaseObjectTest
Test containers
- test_create_container()[source]¶
Test idempotent id: 92139d73-7819-4db1-85f8-3f2f22a8d91f
Test creating container
- test_create_container_overwrite()[source]¶
Test idempotent id: 49f866ed-d6af-4395-93e7-4187eb56d322
Test overwriting container with the same name
- test_create_container_with_metadata_key()[source]¶
Test idempotent id: c2ac4d59-d0f5-40d5-ba19-0635056d48cd
Test creating container with the blank value of metadata
- test_create_container_with_metadata_value()[source]¶
Test idempotent id: e1e8df32-7b22-44e1-aa08-ccfd8d446b58
Test creating container with metadata value
- test_create_container_with_remove_metadata_key()[source]¶
Test idempotent id: 24d16451-1c0c-4e4f-b59c-9840a3aba40e
Test creating container with the blank value of remove metadata
- test_create_container_with_remove_metadata_value()[source]¶
Test idempotent id: 8a21ebad-a5c7-4e29-b428-384edc8cd156
Test creating container with remove metadata
- test_delete_container()[source]¶
Test idempotent id: 95d3a249-b702-4082-a2c4-14bb860cf06a
Test deleting container
- test_list_container_contents()[source]¶
Test idempotent id: 312ff6bd-5290-497f-bda1-7c5fec6697ab
Test getting container contents list
- test_list_container_contents_with_delimiter()[source]¶
Test idempotent id: fe323a32-57b9-4704-a996-2e68f83b09bc
Test getting container contents list using delimiter param
- test_list_container_contents_with_end_marker()[source]¶
Test idempotent id: 55b4fa5c-e12e-4ca9-8fcf-a79afe118522
Test getting container contents list using end_marker param
- test_list_container_contents_with_format_json()[source]¶
Test idempotent id: 196f5034-6ab0-4032-9da9-a937bbb9fba9
Test getting container contents list using format_json param
- test_list_container_contents_with_format_xml()[source]¶
Test idempotent id: 655a53ca-4d15-408c-a377-f4c6dbd0a1fa
Test getting container contents list using format_xml param
- test_list_container_contents_with_limit()[source]¶
Test idempotent id: 297ec38b-2b61-4ff4-bcd1-7fa055e97b61
Test getting container contents list using limit param
- test_list_container_contents_with_marker()[source]¶
Test idempotent id: c31ddc63-2a58-4f6b-b25c-94d2937e6867
Test getting container contents list using marker param
- test_list_container_contents_with_no_object()[source]¶
Test idempotent id: 4646ac2d-9bfb-4c7d-a3c5-0f527402b3df
Test getting empty container contents list
- test_list_container_contents_with_path()[source]¶
Test idempotent id: 58ca6cc9-6af0-408d-aaec-2a6a7b2f0df9
Test getting container contents list using path param
- test_list_container_contents_with_prefix()[source]¶
Test idempotent id: 77e742c7-caf2-4ec9-8aa4-f7d509a3344c
Test getting container contents list using prefix param
- test_list_container_metadata()[source]¶
Test idempotent id: 96e68f0e-19ec-4aa2-86f3-adc6a45e14dd
Test listing container metadata
- test_list_no_container_metadata()[source]¶
Test idempotent id: a2faf936-6b13-4f8d-92a2-c2278355821e
Test listing container without metadata
- test_update_container_metadata_with_create_and_delete_metadata()[source]¶
Test idempotent id: cf19bc0b-7e16-4a5a-aaed-cb0c2fe8deef
Test updating container with adding and deleting metadata
Send one request of adding and deleting metadata.
- test_update_container_metadata_with_create_metadata()[source]¶
Test idempotent id: 2ae5f295-4bf1-4e04-bfad-21e54b62cec5
Test updating container metadata using add metadata
- test_update_container_metadata_with_create_metadata_key()[source]¶
Test idempotent id: 31f40a5f-6a52-4314-8794-cd89baed3040
Test updating container metadata with a blank value of metadata
object_storage.test_container_services_negative module¶
- class ContainerNegativeTest(*args, **kwargs)[source]¶
Bases:
BaseObjectTest
Negative tests of containers
- test_create_container_metadata_exceeds_overall_metadata_count()[source]¶
Test idempotent id: ac666539-d566-4f02-8ceb-58e968dfb732
Test creating container with metadata exceeding default count
- test_create_container_metadata_name_exceeds_max_length()[source]¶
Test idempotent id: 41e645bf-2e68-4f84-bf7b-c71aa5cd76ce
Test creating container with metadata name longer than max
- test_create_container_metadata_value_exceeds_max_length()[source]¶
Test idempotent id: 81e36922-326b-4b7c-8155-3bbceecd7a82
Test creating container with metadata value longer than max
- test_create_container_name_exceeds_max_length()[source]¶
Test idempotent id: 30686921-4bed-4764-a038-40d741ed4e78
Test creating container with name longer than max
- test_delete_non_empty_container()[source]¶
Test idempotent id: 42da116e-1e8c-4c96-9e06-2f13884ed2b1
Test deleting a container with object in it
- test_delete_with_nonexistent_container_name()[source]¶
Test idempotent id: 65387dbf-a0e2-4aac-9ddc-16eb3f1f69ba
Test deleting metadata using a non existent container name
- test_get_metadata_headers_with_invalid_container_name()[source]¶
Test idempotent id: 1a95ab2e-b712-4a98-8a4d-8ce21b7557d6
Test getting metadata headers with invalid container name
- test_list_all_container_objects_on_deleted_container()[source]¶
Test idempotent id: 86b2ab08-92d5-493d-acd2-85f0c848819e
Test getting a list of all objects on a deleted container
object_storage.test_container_staticweb module¶
object_storage.test_container_sync module¶
object_storage.test_container_sync_middleware module¶
object_storage.test_crossdomain module¶
object_storage.test_healthcheck module¶
object_storage.test_object_expiry module¶
object_storage.test_object_formpost module¶
object_storage.test_object_formpost_negative module¶
object_storage.test_object_services module¶
- class ObjectTest(*args, **kwargs)[source]¶
Bases:
BaseObjectTest
Test storage object
- test_copy_object_2d_way()[source]¶
Test idempotent id: 06f90388-2d0e-40aa-934c-e9a8833e958a
Test copying object’s data to the new object using COPY
- test_copy_object_across_containers()[source]¶
Test idempotent id: aa467252-44f3-472a-b5ae-5b57c3c9c147
Test copying object to another container
- test_copy_object_in_same_container()[source]¶
Test idempotent id: 1a9ab572-1b66-4981-8c21-416e2a5e6011
Test copying object to another object in same container
- test_copy_object_to_itself()[source]¶
Test idempotent id: 2248abba-415d-410b-9c30-22dff9cd6e67
Test changing the content type of an existing object
- test_copy_object_with_x_fresh_metadata()[source]¶
Test idempotent id: 5a9e2cc6-85b6-46fc-916d-0cbb7a88e5fd
Test copying objectwith x_fresh_metadata
- test_copy_object_with_x_object_meta()[source]¶
Test idempotent id: edabedca-24c3-4322-9b70-d6d9f942a074
Test copying object with x_object_meta
- test_copy_object_with_x_object_metakey()[source]¶
Test idempotent id: a28a8b99-e701-4d7e-9d84-3b66f121460b
Test copying object with x_object_metakey
- test_create_object()[source]¶
Test idempotent id: 5b4ce26f-3545-46c9-a2ba-5754358a4c62
Test creating object and checking the object’s uploaded content
- test_create_object_with_content_disposition()[source]¶
Test idempotent id: 5daebb1d-f0d5-4dc9-b541-69672eff00b0
Test creating object with content-disposition
- test_create_object_with_content_encoding()[source]¶
Test idempotent id: 605f8317-f945-4bee-ae91-013f1da8f0a0
Test creating object with content-encoding
- test_create_object_with_etag()[source]¶
Test idempotent id: 73820093-0503-40b1-a478-edf0e69c7d1f
Test creating object with Etag
- test_create_object_with_expect_continue()[source]¶
Test idempotent id: 84dafe57-9666-4f6d-84c8-0814d37923b8
Test creating object with expect_continue
- test_create_object_with_transfer_encoding()[source]¶
Test idempotent id: 4f84422a-e2f2-4403-b601-726a4220b54e
Test creating object with transfer_encoding
- test_create_object_with_x_fresh_metadata()[source]¶
Test idempotent id: 0f3d62a6-47e3-4554-b0e5-1a5dc372d501
Test creating object with x-fresh-metadata
The previous added metadata will be cleared.
- test_create_object_with_x_object_meta()[source]¶
Test idempotent id: 1c7ed3e4-2099-406b-b843-5301d4811baf
Test creating object with x-object-meta
- test_create_object_with_x_object_metakey()[source]¶
Test idempotent id: e4183917-33db-4153-85cc-4dacbb938865
Test creating object with the blank value of metadata
- test_create_object_with_x_remove_object_meta()[source]¶
Test idempotent id: ce798afc-b278-45de-a5ce-2ea124b98b99
Test creating object with x-remove-object-meta
The metadata will be removed from the object.
- test_create_object_with_x_remove_object_metakey()[source]¶
Test idempotent id: ad21e342-7916-4f9e-ab62-a1f885f2aaf9
Test creating object with the blank value of remove metadata
Creating object with blank metadata ‘X-Remove-Object-Meta-test-meta’, metadata ‘x-object-meta-test-meta’ will be removed from the object.
- test_delete_object()[source]¶
Test idempotent id: 17738d45-03bd-4d45-9e0b-7b2f58f98687
Test deleting object
- test_get_object()[source]¶
Test idempotent id: 02610ba7-86b7-4272-9ed8-aa8d417cb3cd
Test retrieving object’s data (in response body)
- test_get_object_if_different()[source]¶
Test idempotent id: 50d01f12-526f-4360-9ac2-75dd508d7b68
Test getting object content only when the local file is different
http://en.wikipedia.org/wiki/HTTP_ETag Make a conditional request for an object using the If-None-Match header, it should get downloaded only if the local file is different, otherwise the response code should be 304 Not Modified
- test_get_object_with_if_match()[source]¶
Test idempotent id: c05b4013-e4de-47af-be84-e598062b16fc
Test getting object with if_match
- test_get_object_with_if_modified_since()[source]¶
Test idempotent id: be133639-e5d2-4313-9b1f-2d59fc054a16
Test getting object with if_modified_since
- test_get_object_with_if_none_match()[source]¶
Test idempotent id: 641500d5-1612-4042-a04d-01fc4528bc30
Test getting object with if_none_match
- test_get_object_with_if_unmodified_since()[source]¶
Test idempotent id: 0aa1201c-10aa-467a-bee7-63cbdd463152
Test getting object with if_unmodified_since
- test_get_object_with_metadata()[source]¶
Test idempotent id: 005f9bf6-e06d-41ec-968e-96c78e0b1d82
Test getting object with metadata
- test_get_object_with_range()[source]¶
Test idempotent id: 05a1890e-7db9-4a6c-90a8-ce998a2bddfa
Test getting object with range
- test_get_object_with_x_newest()[source]¶
Test idempotent id: 94587078-475f-48f9-a40f-389c246e31cd
Test getting object with x_newest
- test_get_object_with_x_object_manifest()[source]¶
Test idempotent id: 11b4515b-7ba7-4ca8-8838-357ded86fc10
Test getting object with x_object_manifest
- test_list_no_object_metadata()[source]¶
Test idempotent id: 170fb90e-f5c3-4b1f-ae1b-a18810821172
Test listing object metadata for object without metadata
- test_list_object_metadata()[source]¶
Test idempotent id: 9a447cf6-de06-48de-8226-a8c6ed31caf2
Test listing object metadata
- test_list_object_metadata_with_x_object_manifest()[source]¶
Test idempotent id: 23a3674c-d6de-46c3-86af-ff92bfc8a3da
Test getting object metadata with x_object_manifest
- test_object_upload_in_segments()[source]¶
Test idempotent id: e3e6a64a-9f50-4955-b987-6ce6767c97fb
Test uploading object in segments
- test_update_object_metadata()[source]¶
Test idempotent id: 7a94c25d-66e6-434c-9c38-97d4e2c29945
Test updating object metadata
- test_update_object_metadata_with_create_and_remove_metadata()[source]¶
Test idempotent id: f726174b-2ded-4708-bff7-729d12ce1f84
Test updating object with creation and deletion of metadata
Update object with creation and deletion of metadata with one request, both operations will succeed.
- test_update_object_metadata_with_remove_metadata()[source]¶
Test idempotent id: 48650ed0-c189-4e1e-ad6b-1d4770c6e134
Test updating object metadata with remove metadata
- test_update_object_metadata_with_x_object_manifest()[source]¶
Test idempotent id: 08854588-6449-4bb7-8cca-f2e1040f5e6f
Test updating object metadata with x_object_manifest
- class PublicObjectTest(*args, **kwargs)[source]¶
Bases:
BaseObjectTest
Test public storage object
object_storage.test_object_slo module¶
- class ObjectSloTest(*args, **kwargs)[source]¶
Bases:
BaseObjectTest
Test static large object
- test_delete_large_object()[source]¶
Test idempotent id: 87b6dfa1-abe9-404d-8bf0-6c3751e6aa77
Test deleting static large object using multipart manifest
- test_list_large_object_metadata()[source]¶
Test idempotent id: e69ad766-e1aa-44a2-bdd2-bf62c09c1456
Test listing static large object metadata
List static large object metadata using multipart manifest
object_storage.test_object_temp_url module¶
- class ObjectTempUrlTest(*args, **kwargs)[source]¶
Bases:
BaseObjectTest
Test object temp url
- test_get_object_using_temp_url()[source]¶
Test idempotent id: f91c96d4-1230-4bba-8eb9-84476d18d991
Test getting object using temp url
- test_get_object_using_temp_url_key_2()[source]¶
Test idempotent id: 671f9583-86bd-4128-a034-be282a68c5d8
Test getting object using metadata ‘Temp-URL-Key-2’
- test_get_object_using_temp_url_with_inline_query_parameter()[source]¶
Test idempotent id: 9d9cfd90-708b-465d-802c-e4a8090b823d
Test getting object using temp url with inline query parameter
object_storage.test_object_temp_url_negative module¶
object_storage.test_object_version module¶
- class ContainerTest(*args, **kwargs)[source]¶
Bases:
BaseObjectTest
Test versioned container
- test_versioned_container()[source]¶
Test idempotent id: a151e158-dcbf-4a1f-a1e7-46cd65895a6f
Test versioned container
create container1
create container2, with container1 as ‘X-versions-Location’ header
create object1 in container1
create 2nd version of object1
delete object version 2
delete object version 1