it('prints default message about lack of activation when revision has not been activated', function() { var messageOutput = ''; var plugin = subject.createDeployPlugin({ name: 'redis' }); plugin.upload = function(){}; plugin.activate = function(){}; var context = { deployTarget: 'qa', ui: { write: function(message){ messageOutput = messageOutput + message; }, writeLine: function(message){ messageOutput = messageOutput + message + '\n'; } }, project: stubProject, config: { redis: { } }, revisionData: { revisionKey: '123abc', } }; plugin.beforeHook(context); plugin.configure(context); plugin.beforeHook(context); plugin.didDeploy(context); assert.match(messageOutput, /Deployed but did not activate revision 123abc./); assert.match(messageOutput, /To activate, run/); assert.match(messageOutput, /ember deploy:activate qa --revision=123abc/); });
.then(function() { assert.equal(mockUi.messages.length, 4); assert.match(mockUi.messages[0], /- Downloading manifest for differential deploy.../); assert.match(mockUi.messages[1], /- Manifest found. Differential deploy will be applied\./); assert.match(mockUi.messages[2], /- ✔ js-app\/app\.css/); assert.match(mockUi.messages[3], /- ✔ js-app\/manifest\.txt/); done(); }).catch(function(reason){
.then(function() { assert.equal(mockUi.messages.length, 3); assert.match(mockUi.messages[1], /- Error: something bad went wrong/); });
.then(function() { assert.equal(mockUi.messages.length, 2); assert.match(mockUi.messages[0], /preparing to upload to S3 bucket `cccc`/); });