def test_oss(): cf = lager.new_storage_from_config('AliYunOssStorage', 'voez_server', None) test_storage('oss', cf)
def test_gcs(): gcs = lager.new_storage_from_config("GoogleCloudStorage", SERVER_NAME, storage_config.STORAGE_CONFIG_GC) test_storage("gcs", gcs, "image/jpeg")
def test_s3(): s3 = lager.new_storage_from_config("AmazonS3Storage", SERVER_NAME, storage_config.STORAGE_CONFIG_AWS) test_storage("s3", s3)
def test_cloudfront_s3(): cf = lager.new_storage_from_config( "AmazonCloudFrontS3Storage", SERVER_NAME + "2", storage_config.STORAGE_CONFIG_AWS ) test_storage("cloudfront-s3", cf)
def test_gcs_boto(): gcs = lager.new_storage_from_config("GoogleCloudStorage_Boto", SERVER_NAME + "2", storage_config.STORAGE_CONFIG_GC) test_storage("gcs-boto", gcs)