Example #1
0
def test_oss():
    cf = lager.new_storage_from_config('AliYunOssStorage', 'voez_server', None)
    test_storage('oss', cf)
Example #2
0
def test_gcs():
    gcs = lager.new_storage_from_config("GoogleCloudStorage", SERVER_NAME, storage_config.STORAGE_CONFIG_GC)
    test_storage("gcs", gcs, "image/jpeg")
Example #3
0
def test_s3():
    s3 = lager.new_storage_from_config("AmazonS3Storage", SERVER_NAME, storage_config.STORAGE_CONFIG_AWS)
    test_storage("s3", s3)
Example #4
0
def test_cloudfront_s3():
    cf = lager.new_storage_from_config(
        "AmazonCloudFrontS3Storage", SERVER_NAME + "2", storage_config.STORAGE_CONFIG_AWS
    )
    test_storage("cloudfront-s3", cf)
Example #5
0
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)