features/storagegateway/step_definitions/storagegateway.js (15 lines of code) (raw):
module.exports = function() {
this.Before("@storagegateway", function (callback) {
this.service = new this.AWS.StorageGateway();
callback();
});
this.When(/^I try to activate a Storage Gateway$/, function(callback) {
var params = {
ActivationKey: 'INVALIDKEY',
GatewayName: this.uniqueName('aws-sdk-js'),
GatewayTimezone: 'GMT-5:00',
GatewayRegion: 'us-east-1'
};
this.request(null, 'activateGateway', params, callback, false);
});
};