فهرست منبع

AMBARI-15482 - Restarting HDFS Before Upgrade Finalizing Does Not Supply the rollingUpgrade Flag (part2) (jonathanhurley)

Jonathan Hurley 9 سال پیش
والد
کامیت
3a42f6131c
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      ambari-web/test/controllers/main/admin/stack_and_upgrade_controller_test.js

+ 3 - 3
ambari-web/test/controllers/main/admin/stack_and_upgrade_controller_test.js

@@ -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');