libcloud.test.storage package
Submodules
libcloud.test.storage.test_atmos module
-
class
libcloud.test.storage.test_atmos.
AtmosMockHttp
(*args, **kwargs)[source]
Bases: libcloud.test.StorageMockHttp
, unittest.case.TestCase
-
fixtures
= <libcloud.test.file_fixtures.StorageFileFixtures object>
-
request
(method, url, body=None, headers=None, raw=False, stream=False)[source]
-
runTest
()[source]
-
upload_created
= False
-
upload_stream_created
= False
-
class
libcloud.test.storage.test_atmos.
AtmosMockRawResponse
(connection, response=None)[source]
Bases: libcloud.test.MockRawResponse
-
fixtures
= <libcloud.test.file_fixtures.StorageFileFixtures object>
-
class
libcloud.test.storage.test_atmos.
AtmosTests
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
-
setUp
()[source]
-
tearDown
()[source]
-
test_create_container_already_exists
()[source]
-
test_create_container_success
()[source]
-
test_delete_container_not_empty
()[source]
-
test_delete_container_not_found
()[source]
-
test_delete_container_success
()[source]
-
test_delete_object_escaped_success
()[source]
-
test_delete_object_not_found
()[source]
-
test_delete_object_success
()[source]
-
test_download_object_as_stream
()[source]
-
test_download_object_as_stream_escaped
()[source]
-
test_download_object_escaped_success
()[source]
-
test_download_object_success
()[source]
-
test_download_object_success_not_found
()[source]
-
test_get_container
()[source]
-
test_get_container_escaped
()[source]
-
test_get_container_not_found
()[source]
-
test_get_object_escaped
()[source]
-
test_get_object_not_found
()[source]
-
test_get_object_success
()[source]
-
test_list_container_objects
()[source]
-
test_list_containers
()[source]
-
test_signature_algorithm
()[source]
-
test_upload_object_error
()[source]
-
test_upload_object_no_content_type
()[source]
-
test_upload_object_nonexistent_file
()[source]
-
test_upload_object_success
()[source]
-
test_upload_object_via_stream_existing_object
()[source]
-
test_upload_object_via_stream_new_object
()[source]
-
test_upload_object_via_stream_no_content_type
()[source]
libcloud.test.storage.test_azure_blobs module
libcloud.test.storage.test_backblaze_b2 module
-
class
libcloud.test.storage.test_backblaze_b2.
BackblazeB2MockHttp
(*args, **kwargs)[source]
Bases: libcloud.test.StorageMockHttp
, libcloud.test.MockHttpTestCase
-
fixtures
= <libcloud.test.file_fixtures.StorageFileFixtures object>
-
class
libcloud.test.storage.test_backblaze_b2.
BackblazeB2MockRawResponse
(connection, response=None)[source]
Bases: libcloud.test.MockRawResponse
-
class
libcloud.test.storage.test_backblaze_b2.
BackblazeB2StorageDriverTestCase
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
-
driver_args
= ('a', 'b')
-
driver_klass
alias of BackblazeB2StorageDriver
-
setUp
()[source]
-
test_create_container
()[source]
-
test_delete_container
()[source]
-
test_delete_object
()[source]
-
test_download_object
()[source]
-
test_download_object_as_stream
()[source]
-
test_ex_get_upload_data
()[source]
-
test_ex_get_upload_url
()[source]
-
test_ex_hide_object
()[source]
-
test_ex_list_object_versions
()[source]
-
test_get_container
()[source]
-
test_get_object
()[source]
-
test_list_container_objects
()[source]
-
test_list_containers
()[source]
-
test_upload_object
()[source]
-
test_upload_object_via_stream
()[source]
-
class
libcloud.test.storage.test_backblaze_b2.
MockAuthConn
(spec=None, side_effect=None, return_value=sentinel.DEFAULT, wraps=None, name=None, spec_set=None, parent=None, _spec_state=None, _new_name='', _new_parent=None, **kwargs)[source]
Bases: mock.Mock
-
account_id
= 'abcdefgh'
libcloud.test.storage.test_base module
-
class
libcloud.test.storage.test_base.
BaseMockRawResponse
(connection, response=None)[source]
Bases: libcloud.test.MockRawResponse
-
class
libcloud.test.storage.test_base.
BaseStorageTests
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
-
setUp
()[source]
-
test__get_hash_function
()[source]
-
test__upload_object_iterator_must_have_next_method
()[source]
-
test_upload_no_content_type_supplied_or_detected
()[source]
libcloud.test.storage.test_cloudfiles module
-
class
libcloud.test.storage.test_cloudfiles.
CloudFilesDeprecatedUKTests
(methodName='runTest')[source]
Bases: libcloud.test.storage.test_cloudfiles.CloudFilesTests
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
-
driver_klass
alias of CloudFilesStorageDriver
-
region
= 'lon'
-
class
libcloud.test.storage.test_cloudfiles.
CloudFilesDeprecatedUSTests
(methodName='runTest')[source]
Bases: libcloud.test.storage.test_cloudfiles.CloudFilesTests
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
-
driver_klass
alias of CloudFilesStorageDriver
-
region
= 'ord'
-
class
libcloud.test.storage.test_cloudfiles.
CloudFilesMockHttp
(*args, **kwargs)[source]
Bases: libcloud.test.StorageMockHttp
, libcloud.test.MockHttpTestCase
-
fixtures
= <libcloud.test.file_fixtures.StorageFileFixtures object>
-
class
libcloud.test.storage.test_cloudfiles.
CloudFilesMockRawResponse
(connection, response=None)[source]
Bases: libcloud.test.MockRawResponse
-
fixtures
= <libcloud.test.file_fixtures.StorageFileFixtures object>
-
class
libcloud.test.storage.test_cloudfiles.
CloudFilesTests
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
-
driver_args
= ('dummy', 'dummy')
-
driver_klass
alias of CloudFilesStorageDriver
-
driver_kwargs
= {}
-
region
= 'ord'
-
setUp
()[source]
-
tearDown
()[source]
-
test__upload_object_manifest
()[source]
-
test__upload_object_manifest_wrong_hash
()[source]
-
test__upload_object_part
()[source]
-
test_create_container_already_exists
()[source]
-
test_create_container_invalid_name_slashes_in_name
()[source]
-
test_create_container_invalid_name_too_long
()[source]
-
test_create_container_put_object_name_encoding
()[source]
-
test_create_container_success
()[source]
-
test_delete_container_not_empty
()[source]
-
test_delete_container_not_found
()[source]
-
test_delete_container_success
()[source]
-
test_delete_object_not_found
()[source]
-
test_delete_object_success
()[source]
-
test_download_object_as_stream
()[source]
-
test_download_object_invalid_file_size
()[source]
-
test_download_object_success
()[source]
-
test_download_object_success_not_found
()[source]
-
test_ex_enable_static_website
()[source]
-
test_ex_force_service_region
()[source]
-
test_ex_get_meta_data
()[source]
-
test_ex_get_object_temp_url
(*args, **keywargs)[source]
-
test_ex_get_object_temp_url_no_key_raises_key_error
()[source]
-
test_ex_multipart_upload_object_for_small_files
(*args, **keywargs)[source]
-
test_ex_multipart_upload_object_success
()[source]
-
test_ex_purge_object_from_cdn
()[source]
-
test_ex_purge_object_from_cdn_with_email
()[source]
-
test_ex_set_account_metadata_temp_url_key
()[source]
-
test_ex_set_error_page
()[source]
-
test_force_auth_token_kwargs
()[source]
-
test_force_auth_url_kwargs
()[source]
-
test_get_container
()[source]
-
test_get_container_not_found
()[source]
-
test_get_object_not_found
()[source]
-
test_get_object_object_name_encoding
()[source]
-
test_get_object_success
()[source]
-
test_invalid_ex_force_service_region
()[source]
-
test_invalid_json_throws_exception
()[source]
-
test_list_container_object_name_encoding
()[source]
-
test_list_container_objects
()[source]
-
test_list_container_objects_iterator
()[source]
-
test_list_container_objects_with_prefix
()[source]
-
test_list_containers
()[source]
-
test_service_catalog
()[source]
-
test_upload_object_error
()[source]
-
test_upload_object_inexistent_file
()[source]
-
test_upload_object_invalid_hash
()[source]
-
test_upload_object_no_content_type
()[source]
-
test_upload_object_success
()[source]
-
test_upload_object_via_stream
()[source]
-
test_upload_object_via_stream_chunked_encoding
(*args, **kwargs)[source]
-
test_upload_object_via_stream_python3_bytes_error
()[source]
Test we can add some Cross-origin resource sharing
headers
to the request about to be sent.
-
test_upload_object_zero_size_object
()[source]
libcloud.test.storage.test_google_storage module
libcloud.test.storage.test_local module
-
class
libcloud.test.storage.test_local.
LocalTests
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
libcloud.test.storage.test_oss module
libcloud.test.storage.test_rgw module
libcloud.test.storage.test_s3 module
Module contents