step4_controller_test.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. App = require('app');
  19. require('controllers/main/service/reassign/step4_controller');
  20. describe('App.ReassignMasterWizardStep4Controller', function () {
  21. var controller = App.ReassignMasterWizardStep4Controller.create({
  22. content: Em.Object.create({
  23. reassign: Em.Object.create(),
  24. reassignHosts: Em.Object.create()
  25. })
  26. });
  27. beforeEach(function () {
  28. sinon.stub(App.ajax, 'send', Em.K);
  29. });
  30. afterEach(function () {
  31. App.ajax.send.restore();
  32. });
  33. describe('#setAdditionalConfigs()', function () {
  34. var isHadoop2Stack = false;
  35. beforeEach(function () {
  36. sinon.stub(App, 'get', function () {
  37. return isHadoop2Stack;
  38. });
  39. });
  40. afterEach(function () {
  41. App.get.restore();
  42. });
  43. it('Component is absent', function () {
  44. controller.set('additionalConfigsMap', []);
  45. var configs = {};
  46. expect(controller.setAdditionalConfigs(configs, 'COMP1', '')).to.be.false;
  47. expect(configs).to.eql({});
  48. });
  49. it('Component is present', function () {
  50. controller.set('additionalConfigsMap', [
  51. {
  52. componentName: 'COMP1',
  53. configs: {
  54. 'test-site': {
  55. 'property1': '<replace-value>:1111'
  56. }
  57. }
  58. }
  59. ]);
  60. var configs = {
  61. 'test-site': {}
  62. };
  63. expect(controller.setAdditionalConfigs(configs, 'COMP1', 'host1')).to.be.true;
  64. expect(configs).to.eql({
  65. 'test-site': {
  66. 'property1': 'host1:1111'
  67. }
  68. });
  69. });
  70. it('configs_Hadoop2 is present but isHadoop2Stack = false', function () {
  71. isHadoop2Stack = false;
  72. controller.set('additionalConfigsMap', [
  73. {
  74. componentName: 'COMP1',
  75. configs: {
  76. 'test-site': {
  77. 'property1': '<replace-value>:1111'
  78. }
  79. },
  80. configs_Hadoop2: {
  81. 'test-site': {
  82. 'property2': '<replace-value>:2222'
  83. }
  84. }
  85. }
  86. ]);
  87. var configs = {
  88. 'test-site': {}
  89. };
  90. expect(controller.setAdditionalConfigs(configs, 'COMP1', 'host1')).to.be.true;
  91. expect(configs).to.eql({
  92. 'test-site': {
  93. 'property1': 'host1:1111'
  94. }
  95. });
  96. });
  97. it('configs_Hadoop2 is present but isHadoop2Stack = true', function () {
  98. isHadoop2Stack = true;
  99. controller.set('additionalConfigsMap', [
  100. {
  101. componentName: 'COMP1',
  102. configs: {
  103. 'test-site': {
  104. 'property1': '<replace-value>:1111'
  105. }
  106. },
  107. configs_Hadoop2: {
  108. 'test-site': {
  109. 'property2': '<replace-value>:2222'
  110. }
  111. }
  112. }
  113. ]);
  114. var configs = {
  115. 'test-site': {}
  116. };
  117. expect(controller.setAdditionalConfigs(configs, 'COMP1', 'host1')).to.be.true;
  118. expect(configs).to.eql({
  119. 'test-site': {
  120. 'property2': 'host1:2222'
  121. }
  122. });
  123. });
  124. });
  125. /* describe('#loadStep()', function () {
  126. var isHaEnabled = true;
  127. beforeEach(function () {
  128. controller.set('content.reassign.service_id', 'service1');
  129. sinon.stub(controller, 'onTaskStatusChange', Em.K);
  130. sinon.stub(App, 'get', function () {
  131. return isHaEnabled;
  132. });
  133. });
  134. afterEach(function () {
  135. App.get.restore();
  136. controller.onTaskStatusChange.restore();
  137. });
  138. it('reassign component is NameNode and HA enabled', function () {
  139. isHaEnabled = true;
  140. controller.set('content.reassign.component_name', 'NAMENODE');
  141. controller.loadStep();
  142. expect(controller.get('hostComponents')).to.eql(['NAMENODE', 'ZKFC']);
  143. expect(controller.get('restartYarnMRComponents')).to.be.false;
  144. expect(controller.get('serviceName')).to.eql(['service1']);
  145. });
  146. it('reassign component is NameNode and HA disabled', function () {
  147. isHaEnabled = false;
  148. controller.set('content.reassign.component_name', 'NAMENODE');
  149. controller.loadStep();
  150. expect(controller.get('hostComponents')).to.eql(['NAMENODE']);
  151. expect(controller.get('restartYarnMRComponents')).to.be.false;
  152. expect(controller.get('serviceName')).to.eql(['service1']);
  153. });
  154. it('reassign component is JOBTRACKER and HA enabled', function () {
  155. isHaEnabled = true;
  156. controller.set('content.reassign.component_name', 'JOBTRACKER');
  157. controller.loadStep();
  158. expect(controller.get('hostComponents')).to.eql(['JOBTRACKER']);
  159. expect(controller.get('restartYarnMRComponents')).to.be.true;
  160. expect(controller.get('serviceName')).to.eql(['service1']);
  161. });
  162. it('reassign component is RESOURCEMANAGER and HA enabled', function () {
  163. isHaEnabled = true;
  164. controller.set('content.reassign.component_name', 'RESOURCEMANAGER');
  165. controller.loadStep();
  166. expect(controller.get('hostComponents')).to.eql(['RESOURCEMANAGER']);
  167. expect(controller.get('restartYarnMRComponents')).to.be.true;
  168. expect(controller.get('serviceName')).to.eql(['service1']);
  169. });
  170. });*/
  171. describe('#getHostComponentsNames()', function () {
  172. it('No host-components', function () {
  173. controller.set('hostComponents', []);
  174. expect(controller.getHostComponentsNames()).to.be.empty;
  175. });
  176. it('one host-components', function () {
  177. controller.set('hostComponents', ['COMP1']);
  178. expect(controller.getHostComponentsNames()).to.equal('Comp1');
  179. });
  180. it('ZKFC host-components', function () {
  181. controller.set('hostComponents', ['COMP1', 'ZKFC']);
  182. expect(controller.getHostComponentsNames()).to.equal('Comp1+ZKFC');
  183. });
  184. });
  185. describe('#removeUnneededTasks()', function () {
  186. var isHaEnabled = false;
  187. beforeEach(function () {
  188. sinon.stub(App, 'get', function () {
  189. return isHaEnabled;
  190. });
  191. controller.set('tasks', [
  192. {id: 1},
  193. {id: 2},
  194. {id: 3},
  195. {id: 4},
  196. {id: 5},
  197. {id: 6},
  198. {id: 7},
  199. {id: 8},
  200. {id: 9}
  201. ]);
  202. });
  203. afterEach(function () {
  204. App.get.restore();
  205. });
  206. it('hasManualSteps is false', function () {
  207. controller.set('content.hasManualSteps', false);
  208. controller.removeUnneededTasks();
  209. expect(controller.get('tasks').mapProperty('id')).to.eql([1, 2, 3, 4, 5, 8, 9]);
  210. });
  211. it('reassign component is not NameNode and HA disabled', function () {
  212. controller.set('content.hasManualSteps', true);
  213. controller.set('content.reassign.component_name', 'COMP1');
  214. isHaEnabled = false;
  215. controller.removeUnneededTasks();
  216. expect(controller.get('tasks').mapProperty('id')).to.eql([1, 2, 3, 4, 5]);
  217. });
  218. it('reassign component is not NameNode and HA enabled', function () {
  219. controller.set('content.hasManualSteps', true);
  220. controller.set('content.reassign.component_name', 'COMP1');
  221. isHaEnabled = true;
  222. controller.removeUnneededTasks();
  223. expect(controller.get('tasks').mapProperty('id')).to.eql([1, 2, 3, 4, 5]);
  224. });
  225. it('reassign component is NameNode and HA disabled', function () {
  226. controller.set('content.hasManualSteps', true);
  227. controller.set('content.reassign.component_name', 'NAMENODE');
  228. isHaEnabled = false;
  229. controller.removeUnneededTasks();
  230. expect(controller.get('tasks').mapProperty('id')).to.eql([1, 2, 3, 4, 5]);
  231. });
  232. it('reassign component is NameNode and HA enabled', function () {
  233. controller.set('content.hasManualSteps', true);
  234. controller.set('content.reassign.component_name', 'NAMENODE');
  235. isHaEnabled = true;
  236. controller.removeUnneededTasks();
  237. expect(controller.get('tasks').mapProperty('id')).to.eql([1, 2, 3, 4, 5, 6, 7]);
  238. });
  239. });
  240. describe('#initializeTasks()', function () {
  241. beforeEach(function () {
  242. controller.set('tasks', []);
  243. sinon.stub(controller, 'getHostComponentsNames', Em.K);
  244. sinon.stub(controller, 'removeUnneededTasks', Em.K);
  245. });
  246. afterEach(function () {
  247. controller.removeUnneededTasks.restore();
  248. controller.getHostComponentsNames.restore();
  249. });
  250. it('No commands', function () {
  251. controller.set('commands', []);
  252. controller.initializeTasks();
  253. expect(controller.get('tasks')).to.be.empty;
  254. });
  255. it('One command', function () {
  256. controller.set('commands', ['COMMAND1']);
  257. controller.initializeTasks();
  258. expect(controller.get('tasks')[0].get('id')).to.equal(0);
  259. expect(controller.get('tasks')[0].get('command')).to.equal('COMMAND1');
  260. });
  261. });
  262. describe('#hideRollbackButton()', function () {
  263. it('No showRollback command', function () {
  264. controller.set('tasks', [Em.Object.create({
  265. showRollback: false
  266. })]);
  267. controller.hideRollbackButton();
  268. expect(controller.get('tasks')[0].get('showRollback')).to.be.false;
  269. });
  270. it('showRollback command is present', function () {
  271. controller.set('tasks', [Em.Object.create({
  272. showRollback: true
  273. })]);
  274. controller.hideRollbackButton();
  275. expect(controller.get('tasks')[0].get('showRollback')).to.be.false;
  276. });
  277. });
  278. describe('#onComponentsTasksSuccess()', function () {
  279. beforeEach(function () {
  280. sinon.stub(controller, 'onTaskCompleted', Em.K);
  281. });
  282. afterEach(function () {
  283. controller.onTaskCompleted.restore();
  284. });
  285. it('No host-components', function () {
  286. controller.set('multiTaskCounter', 0);
  287. controller.set('hostComponents', []);
  288. controller.onComponentsTasksSuccess();
  289. expect(controller.get('multiTaskCounter')).to.equal(1);
  290. expect(controller.onTaskCompleted.calledOnce).to.be.true;
  291. });
  292. it('One host-component', function () {
  293. controller.set('multiTaskCounter', 0);
  294. controller.set('hostComponents', [
  295. {}
  296. ]);
  297. controller.onComponentsTasksSuccess();
  298. expect(controller.get('multiTaskCounter')).to.equal(1);
  299. expect(controller.onTaskCompleted.calledOnce).to.be.true;
  300. });
  301. it('two host-components', function () {
  302. controller.set('multiTaskCounter', 0);
  303. controller.set('hostComponents', [
  304. {},
  305. {}
  306. ]);
  307. controller.onComponentsTasksSuccess();
  308. expect(controller.get('multiTaskCounter')).to.equal(1);
  309. expect(controller.onTaskCompleted.called).to.be.false;
  310. });
  311. });
  312. describe('#getStopServicesData()', function () {
  313. it('restartYarnMRComponents is true', function () {
  314. controller.set('restartYarnMRComponents', true);
  315. sinon.stub(App.Service, 'find', function () {
  316. return [
  317. {
  318. serviceName: 'HDFS'
  319. },
  320. {
  321. serviceName: 'SERVICE1'
  322. }
  323. ];
  324. });
  325. expect(controller.getStopServicesData()).to.eql({
  326. "ServiceInfo": {
  327. "state": "INSTALLED"
  328. },
  329. "context": "Stop without HDFS",
  330. "urlParams": "ServiceInfo/service_name.in(SERVICE1)"
  331. });
  332. App.Service.find.restore();
  333. });
  334. it('restartYarnMRComponents is false', function () {
  335. controller.set('restartYarnMRComponents', false);
  336. expect(controller.getStopServicesData()).to.eql({
  337. "ServiceInfo": {
  338. "state": "INSTALLED"
  339. },
  340. "context": "Stop all services"
  341. });
  342. });
  343. });
  344. describe('#stopServices()', function () {
  345. it('', function () {
  346. sinon.stub(controller, 'getStopServicesData', Em.K);
  347. controller.stopServices();
  348. expect(App.ajax.send.calledOnce).to.be.true;
  349. expect(controller.getStopServicesData.calledOnce).to.be.true;
  350. controller.getStopServicesData.restore();
  351. });
  352. });
  353. describe('#createHostComponents()', function () {
  354. beforeEach(function () {
  355. sinon.stub(controller, 'createComponent', Em.K);
  356. });
  357. afterEach(function () {
  358. controller.createComponent.restore();
  359. });
  360. it('No host-components', function () {
  361. controller.set('hostComponents', []);
  362. controller.createHostComponents();
  363. expect(controller.get('multiTaskCounter')).to.equal(0);
  364. expect(controller.createComponent.called).to.be.false;
  365. });
  366. it('One host-component', function () {
  367. controller.set('hostComponents', ['COMP1']);
  368. controller.set('content.reassignHosts.target', 'host1');
  369. controller.set('content.reassign.service_id', 'SERVICE1');
  370. controller.createHostComponents();
  371. expect(controller.get('multiTaskCounter')).to.equal(0);
  372. expect(controller.createComponent.calledWith('COMP1', 'host1', 'SERVICE1')).to.be.true;
  373. });
  374. });
  375. describe('#onCreateComponent()', function () {
  376. it('', function () {
  377. sinon.stub(controller, 'onComponentsTasksSuccess', Em.K);
  378. controller.onCreateComponent();
  379. expect(controller.onComponentsTasksSuccess.calledOnce).to.be.true;
  380. controller.onComponentsTasksSuccess.restore();
  381. });
  382. });
  383. describe('#putHostComponentsInMaintenanceMode()', function () {
  384. beforeEach(function(){
  385. sinon.stub(controller, 'onComponentsTasksSuccess', Em.K);
  386. controller.set('content.reassignHosts.source', 'source');
  387. });
  388. afterEach(function(){
  389. controller.onComponentsTasksSuccess.restore();
  390. });
  391. it('No host-components', function () {
  392. controller.set('hostComponents', []);
  393. controller.putHostComponentsInMaintenanceMode();
  394. expect(App.ajax.send.called).to.be.false;
  395. expect(controller.get('multiTaskCounter')).to.equal(0);
  396. });
  397. it('One host-components', function () {
  398. controller.set('hostComponents', [{}]);
  399. controller.putHostComponentsInMaintenanceMode();
  400. expect(App.ajax.send.calledOnce).to.be.true;
  401. expect(controller.get('multiTaskCounter')).to.equal(0);
  402. });
  403. });
  404. describe('#installHostComponents()', function () {
  405. beforeEach(function () {
  406. sinon.stub(controller, 'updateComponent', Em.K);
  407. });
  408. afterEach(function () {
  409. controller.updateComponent.restore();
  410. });
  411. it('No host-components', function () {
  412. controller.set('hostComponents', []);
  413. controller.installHostComponents();
  414. expect(controller.get('multiTaskCounter')).to.equal(0);
  415. expect(controller.updateComponent.called).to.be.false;
  416. });
  417. it('One host-component', function () {
  418. controller.set('hostComponents', ['COMP1']);
  419. controller.set('content.reassignHosts.target', 'host1');
  420. controller.set('content.reassign.service_id', 'SERVICE1');
  421. controller.installHostComponents();
  422. expect(controller.get('multiTaskCounter')).to.equal(0);
  423. expect(controller.updateComponent.calledWith('COMP1', 'host1', 'SERVICE1', 'Install', 1)).to.be.true;
  424. });
  425. });
  426. describe('#reconfigure()', function () {
  427. it('', function () {
  428. sinon.stub(controller, 'loadConfigsTags', Em.K);
  429. controller.reconfigure();
  430. expect(controller.loadConfigsTags.calledOnce).to.be.true;
  431. controller.loadConfigsTags.restore();
  432. });
  433. });
  434. describe('#loadConfigsTags()', function () {
  435. it('', function () {
  436. controller.loadConfigsTags();
  437. expect(App.ajax.send.calledOnce).to.be.true;
  438. });
  439. });
  440. describe('#getConfigUrlParams()', function () {
  441. var testCases = [
  442. {
  443. componentName: 'NAMENODE',
  444. result: [
  445. "(type=hdfs-site&tag=1)",
  446. "(type=core-site&tag=2)"
  447. ]
  448. },
  449. {
  450. componentName: 'SECONDARY_NAMENODE',
  451. result: [
  452. "(type=hdfs-site&tag=1)",
  453. "(type=core-site&tag=2)"
  454. ]
  455. },
  456. {
  457. componentName: 'JOBTRACKER',
  458. result: [
  459. "(type=mapred-site&tag=4)"
  460. ]
  461. },
  462. {
  463. componentName: 'RESOURCEMANAGER',
  464. result: [
  465. "(type=yarn-site&tag=5)"
  466. ]
  467. }
  468. ];
  469. var data = {
  470. Clusters: {
  471. desired_configs: {
  472. 'hdfs-site': {tag: 1},
  473. 'core-site': {tag: 2},
  474. 'hbase-site': {tag: 3},
  475. 'mapred-site': {tag: 4},
  476. 'yarn-site': {tag: 5}
  477. }
  478. }
  479. };
  480. var services = [];
  481. beforeEach(function () {
  482. sinon.stub(App.Service, 'find', function () {
  483. return services;
  484. })
  485. });
  486. afterEach(function () {
  487. App.Service.find.restore();
  488. });
  489. testCases.forEach(function (test) {
  490. it('get config of ' + test.componentName, function () {
  491. expect(controller.getConfigUrlParams(test.componentName, data)).to.eql(test.result);
  492. })
  493. });
  494. it('get config of NAMENODE when HBASE installed', function () {
  495. services = [
  496. {
  497. serviceName: 'HBASE'
  498. }
  499. ];
  500. expect(controller.getConfigUrlParams('NAMENODE', data)).to.eql([
  501. "(type=hdfs-site&tag=1)",
  502. "(type=core-site&tag=2)",
  503. "(type=hbase-site&tag=3)"
  504. ]);
  505. })
  506. });
  507. describe('#onLoadConfigsTags()', function () {
  508. it('', function () {
  509. sinon.stub(controller, 'getConfigUrlParams', function () {
  510. return [];
  511. });
  512. controller.set('content.reassign.component_name', 'COMP1');
  513. controller.onLoadConfigsTags({});
  514. expect(App.ajax.send.calledOnce).to.be.true;
  515. expect(controller.getConfigUrlParams.calledWith('COMP1', {})).to.be.true;
  516. controller.getConfigUrlParams.restore();
  517. });
  518. });
  519. describe('#onLoadConfigs()', function () {
  520. beforeEach(function () {
  521. sinon.stub(controller, 'setAdditionalConfigs', Em.K);
  522. sinon.stub(controller, 'setSecureConfigs', Em.K);
  523. sinon.stub(controller, 'setSpecificNamenodeConfigs', Em.K);
  524. sinon.stub(controller, 'getComponentDir', Em.K);
  525. sinon.stub(controller, 'saveClusterStatus', Em.K);
  526. sinon.stub(controller, 'saveConfigsToServer', Em.K);
  527. controller.set('content.reassignHosts.target', 'host1');
  528. });
  529. afterEach(function () {
  530. controller.setAdditionalConfigs.restore();
  531. controller.setSecureConfigs.restore();
  532. controller.setSpecificNamenodeConfigs.restore();
  533. controller.getComponentDir.restore();
  534. controller.saveClusterStatus.restore();
  535. controller.saveConfigsToServer.restore();
  536. });
  537. it('component is not NAMENODE', function () {
  538. controller.set('content.reassign.component_name', 'COMP1');
  539. controller.onLoadConfigs({items: []});
  540. expect(controller.get('configsSitesNumber')).to.equal(0);
  541. expect(controller.get('configsSitesCount')).to.equal(0);
  542. expect(controller.setAdditionalConfigs.calledWith({}, 'COMP1', 'host1')).to.be.true;
  543. expect(controller.setSecureConfigs.calledWith([], {}, 'COMP1')).to.be.true;
  544. expect(controller.setSpecificNamenodeConfigs.called).to.be.false;
  545. expect(controller.getComponentDir.calledWith({}, 'COMP1')).to.be.true;
  546. expect(controller.saveClusterStatus.calledWith([])).to.be.true;
  547. expect(controller.saveConfigsToServer.calledWith({})).to.be.true;
  548. });
  549. it('component is NAMENODE, has configs', function () {
  550. controller.set('content.reassign.component_name', 'NAMENODE');
  551. controller.onLoadConfigs({items: [
  552. {
  553. type: 'hdfs-site',
  554. properties: {}
  555. }
  556. ]});
  557. expect(controller.get('configsSitesNumber')).to.equal(1);
  558. expect(controller.get('configsSitesCount')).to.equal(0);
  559. expect(controller.setAdditionalConfigs.calledWith({'hdfs-site': {}}, 'NAMENODE', 'host1')).to.be.true;
  560. expect(controller.setSecureConfigs.calledWith([], {'hdfs-site': {}}, 'NAMENODE')).to.be.true;
  561. expect(controller.setSpecificNamenodeConfigs.calledWith({'hdfs-site': {}}, 'host1')).to.be.true;
  562. expect(controller.getComponentDir.calledWith({'hdfs-site': {}}, 'NAMENODE')).to.be.true;
  563. expect(controller.saveClusterStatus.calledWith([])).to.be.true;
  564. expect(controller.saveConfigsToServer.calledWith({'hdfs-site': {}})).to.be.true;
  565. });
  566. });
  567. describe('#saveConfigsToServer()', function () {
  568. it('configs is empty', function () {
  569. controller.saveConfigsToServer({});
  570. expect(App.ajax.send.called).to.be.false;
  571. });
  572. it('configs has one site', function () {
  573. controller.saveConfigsToServer({'hdfs-site': {}});
  574. expect(App.ajax.send.calledOnce).to.be.true;
  575. });
  576. it('configs has two sites', function () {
  577. controller.saveConfigsToServer({
  578. 'hdfs-site': {},
  579. 'core-site': {}
  580. });
  581. expect(App.ajax.send.calledTwice).to.be.true;
  582. });
  583. });
  584. /* describe('#setSpecificNamenodeConfigs()', function () {
  585. it('configs is empty', function () {
  586. controller.setSpecificNamenodeConfigs();
  587. });
  588. });*/
  589. });