Explorar o código

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

Jonathan Hurley %!s(int64=9) %!d(string=hai) anos
pai
achega
3a42f6131c

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