aboutsummaryrefslogtreecommitdiffstats
path: root/test/service
Commit message (Collapse)AuthorAgeFilesLines
* Accept S3 upload options (e.g. server_side_encryption)James Baer2017-07-201-0/+18
|
* Use descriptive new freeze_time helperGeorge Claghorn2017-07-192-2/+2
|
* Replace hard-coded S3 bucket name with configured bucketJames T. Perreault2017-07-171-1/+1
|
* Remove unused requireGeorge Claghorn2017-07-171-1/+0
|
* Add direct upload support to GCS serviceMichael Herold2017-07-171-0/+20
|
* Fix S3 direct upload testGeorge Claghorn2017-07-161-13/+3
|
* Added rubocop / codeclimate config and fixed current offenses (#45)Cristian Bica2017-07-143-3/+2
|
* Fix regular expression on s3 test URL generation test (#44)Dino Maric2017-07-131-5/+5
| | | | | | | So tests are passing if the bucket name is rails-active storage. But developers specify their own s3 tests configuration (in my case was activestorage-test) then this regex fails. Also the first part is dynamic and based on bucket name and region
* Configurator tests: work against test-local configJeremy Daer2017-07-091-3/+3
| | | | | | So tests pass when service configs aren't set up. References #28
* Tests: Dir.mktmpdir neatly wraps up tmpdir + joinJeremy Daer2017-07-092-4/+2
|
* Add basic tests to the Configurator#build (#28)Dino Maric2017-07-091-0/+15
|
* Direct uploads for S3David Heinemeier Hansson2017-07-093-9/+32
|
* Test URL generation for S3 and DiskDavid Heinemeier Hansson2017-07-092-0/+10
|
* Example of keyfile specificationDavid Heinemeier Hansson2017-07-091-1/+12
|
* Merge pull request #26 from jeremy/service-configuratorDavid Heinemeier Hansson2017-07-091-1/+1
|\ | | | | Clarify how a service can build other composed services
| * Clarify how a service can build other composed servicesJeremy Daer2017-07-091-1/+1
| | | | | | | | | | | | | | | | | | * Service.build takes the literal YAML config hash for the service and a reference to the Configurator that's doing the building. * Services that compose additional services can use the Configurator to look them up and build them by name. See MirrorService for an example. References #23
* | Match new configurator needsDavid Heinemeier Hansson2017-07-091-0/+2
|/
* Configure services that reference other servicesJeremy Daer2017-07-084-14/+19
| | | | | | | | * Move service configuration from the Engine to Service * Delegate configuration mechanics to internal Service::Configurator * Delegate service building to the concrete Service classes, allowing them to configure composed services. * Implement for the Mirror service.
* Mirror: explicit primary service and list of mirrorsJeremy Daer2017-07-081-5/+13
| | | | | | | | | | | | Pass separate primary service and list of mirrors rather than treating the first of the services list as the primary. Nice fit for keyword args, and something we've long wanted in the equivalent Basecamp file repository. Upload returns the results of the underlying service uploads rather than the io.rewind result. Rewind before uploading rather than afterward, and demonstrate that behavior with a test. Test that more than one mirror works.
* Disk service: use binary IO throughout, not UTF-8Jeremy Daer2017-07-081-6/+4
|
* Tests: skip GCS/AWS service tests if unconfiguredJeremy Daer2017-07-081-0/+1
|
* Test deleting a nonexistent keyGeorge Claghorn2017-07-061-0/+6
|
* Correct config path in error messageJohn Williams2017-07-061-1/+1
|
* Fix testGeorge Claghorn2017-07-061-2/+2
| | | | | | | * S3 fails fast if the Content-MD5 header on an upload request is an invalid checksum. Send a valid but incorrect checksum. * Rescue the service-specific exception and raise the generic one.
* Helper methods are privateDavid Heinemeier Hansson2017-07-061-4/+5
|
* Check integrity after uploadsDavid Heinemeier Hansson2017-07-061-2/+15
|
* Compute checksum and byte_size client sideDavid Heinemeier Hansson2017-07-061-8/+0
| | | | | Then we can add integrity checks on uploads to prevent errors in transport.
* Flesh out mirror testsGeorge Claghorn2017-07-061-7/+26
|
* Rename from Site to Service now that we're called Active StorageDavid Heinemeier Hansson2017-07-067-0/+144