|
@@ -1483,7 +1483,7 @@ describe('App.MainAdminStackAndUpgradeController', function() {
|
|
|
|
|
|
describe("#suspendUpgrade()", function() {
|
|
|
beforeEach(function () {
|
|
|
- sinon.stub(controller, 'abortUpgrade').returns({
|
|
|
+ sinon.stub(controller, 'abortUpgradeWithSuspend').returns({
|
|
|
done: Em.clb
|
|
|
});
|
|
|
sinon.stub(controller, 'setDBProperty', Em.K);
|
|
@@ -1491,12 +1491,12 @@ describe('App.MainAdminStackAndUpgradeController', function() {
|
|
|
controller.suspendUpgrade();
|
|
|
});
|
|
|
afterEach(function () {
|
|
|
- controller.abortUpgrade.restore();
|
|
|
+ controller.abortUpgradeWithSuspend.restore();
|
|
|
controller.setDBProperty.restore();
|
|
|
App.clusterStatus.setClusterStatus.restore();
|
|
|
});
|
|
|
it("upgrade aborted", function() {
|
|
|
- expect(controller.abortUpgrade.calledOnce).to.be.true;
|
|
|
+ expect(controller.abortUpgradeWithSuspend.calledOnce).to.be.true;
|
|
|
});
|
|
|
it('App.upgradeState is ABORTED', function () {
|
|
|
expect(App.get('upgradeState')).to.equal('ABORTED');
|