class ActiveStorage::Service::S3ServiceTest

Overview

Runs against the S3 API of the rustfs service of compose.yml:

podman compose up -d rustfs
rake test:all

:nodoc:

Defined in:

active_storage/service/s3_service_test.cr

Constant Summary

ACCESS_KEY_ID = "admin"
BUCKET = "storage"
CONTENT = "0123456789abcdef"
ENDPOINT = ENV.fetch("S3_ENDPOINT", "http://127.0.0.1:9000")
REGION = "us-east-1"
SECRET_ACCESS_KEY = "password"

Instance Method Summary

Instance Method Detail

def setup #

def teardown #

def test_delete_does_not_raise_when_nothing_is_stored_for_the_key #

def test_delete_prefixed_does_not_raise_when_nothing_is_stored_under_the_prefix #

def test_delete_prefixed_leaves_the_object_of_the_key_itself_alone #

def test_delete_prefixed_removes_every_object_under_the_prefix #

def test_delete_removes_the_object #

def test_upload_accepts_a_matching_checksum #

def test_upload_rejects_a_mismatched_checksum #

def test_upload_stores_the_content #

def test_upload_stores_the_serving_headers #

def test_uploaded_content_is_readable_through_the_presigned_url #