Mock the Glacier API for faster testing
Ruby
Pull request Compare This branch is 4 commits ahead, 1 commit behind cbeer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
spec
.gitignore
.travis.yml
Gemfile
README.md
Rakefile
config.ru

README.md

Build Status

This is a Sinatra application that mimics the AWS Glacier API (more or less), so we can do (cross-language/distributed) test-driven development against the Glacier API, without waiting hours (and spending $$$) to retrieve content.

$ thin start

Or, tweak the retrieve-archive delay (in seconds):

$ MAX_COMPLETION_TIME_DELAY=120 thin start

Then, you can point your AWS REST client at the local Glacier mock, e.g.:

Fog::AWS::Glacier.new :aws_access_key_id => '', :aws_secret_access_key => '', :scheme => 'http', :host => 'localhost', :port => '3000'}

Note that the mock does not perform the same authorization and HMAC checking, just implements the REST endpoints.