class
ActiveStorage::Service::S3ServiceTest
- ActiveStorage::Service::S3ServiceTest
- Minitest::Test
- Minitest::Runnable
- Reference
- Object
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.crConstant 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
- #setup
- #teardown
- #test_delete_does_not_raise_when_nothing_is_stored_for_the_key
- #test_delete_prefixed_does_not_raise_when_nothing_is_stored_under_the_prefix
- #test_delete_prefixed_leaves_the_object_of_the_key_itself_alone
- #test_delete_prefixed_removes_every_object_under_the_prefix
- #test_delete_removes_the_object
- #test_upload_accepts_a_matching_checksum
- #test_upload_rejects_a_mismatched_checksum
- #test_upload_stores_the_content
- #test_upload_stores_the_serving_headers
- #test_uploaded_content_is_readable_through_the_presigned_url