|
@@ -28,6 +28,7 @@ describe('BulkOperationsController', function () {
|
|
|
hostController = App.BulkOperationsController.create({});
|
|
|
sinon.stub(hostController, 'bulkOperationForHostsRestart', Em.K);
|
|
|
sinon.stub(hostController, 'bulkOperationForHosts', Em.K);
|
|
|
+ sinon.stub(hostController, 'bulkOperationForHostsReinstall', Em.K);
|
|
|
sinon.stub(hostController, 'bulkOperationForHostComponentsRestart', Em.K);
|
|
|
sinon.stub(hostController, 'bulkOperationForHostComponentsDecommission', Em.K);
|
|
|
sinon.stub(hostController, 'bulkOperationForHostComponents', Em.K);
|
|
@@ -37,6 +38,7 @@ describe('BulkOperationsController', function () {
|
|
|
afterEach(function() {
|
|
|
hostController.bulkOperationForHosts.restore();
|
|
|
hostController.bulkOperationForHostsRestart.restore();
|
|
|
+ hostController.bulkOperationForHostsReinstall.restore();
|
|
|
hostController.bulkOperationForHostComponentsRestart.restore();
|
|
|
hostController.bulkOperationForHostComponentsDecommission.restore();
|
|
|
hostController.bulkOperationForHostComponents.restore();
|
|
@@ -68,6 +70,14 @@ describe('BulkOperationsController', function () {
|
|
|
expect(hostController.bulkOperationForHosts.calledOnce).to.equal(true);
|
|
|
});
|
|
|
|
|
|
+ it('REINSTALL for hosts', function() {
|
|
|
+ var operationData = {
|
|
|
+ action: 'REINSTALL'
|
|
|
+ };
|
|
|
+ hostController.bulkOperation(operationData, []);
|
|
|
+ expect(hostController.bulkOperationForHostsReinstall.calledOnce).to.equal(true);
|
|
|
+ });
|
|
|
+
|
|
|
it('PASSIVE_STATE for hosts', function() {
|
|
|
var operationData = {
|
|
|
action: 'PASSIVE_STATE'
|