iced
Version:
Simple backup tool that uses node to talk to Amazon Glacier
19 lines (15 loc) • 619 B
text/coffeescript
{expect} = require 'chai'
command = require './command'
describe 'request inventory', ->
before ->
.respondWith 200,
location: 'http://aws/jobs/inventoryyy'
jobId: 'herpderp'
it 'should request an inventory of a vault', (done) ->
out = command "inventory books", (err, stdout, stderr) =>
expect(err).to.be.falsy
expect(stderr).to.be.falsy
expect(.request.method).to.equal 'POST'
expect(.request.url).to.equal '/-/vaults/books/jobs'
expect(stdout).to.contain 'Initiated inventory job \'herpderp\' at http://aws/jobs/inventoryyy'
done()