Browse Source

AMBARI-817. Fix import dependencies so that unit test suites can be run again for Ambari Web. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/branches/AMBARI-666@1394930 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 years ago
parent
commit
cfe53d470e

+ 3 - 0
AMBARI-666-CHANGES.txt

@@ -235,6 +235,9 @@ AMBARI-666 branch (unreleased changes)
 
   BUG FIXES
 
+  AMBARI-817. Fix import dependencies so that unit test suites can be run
+  again for Ambari Web. (yusaku)
+
   AMBARI-804. Fix routing issues with Admin pages. (yusaku)
 
   AMBARI-798. Fix import issue due to move of Predicate class. (hitesh)

+ 3 - 0
ambari-web/app/controllers/main/host.js

@@ -17,6 +17,9 @@
  */
 
 var App = require('app');
+require('models/service');
+require('models/cluster');
+require('models/host');
 
 App.MainHostController = Em.ArrayController.extend(App.Pagination, {
   name:'mainHostController',

+ 1 - 0
ambari-web/app/data/service_configs.js

@@ -17,6 +17,7 @@
  */
 
 var App = require('app');
+require('models/service_config')
 
 var configProperties = App.ConfigProperties.create();
 

+ 1 - 1
ambari-web/test/installer/step3_test.js

@@ -27,7 +27,7 @@ describe('App.InstallerStep3Controller', function () {
 
   describe('#parseHostInfo', function () {
     var controller = App.InstallerStep3Controller.create();
-    it('should return true if there is no host with pending status in the data provided by REST bootstrap call.It should also update the status on the client side', function () {
+    it('should return true if there is no host with pending status in the data provided by REST bootstrap call.  It should also update the status on the client side', function () {
       var hostFrmServer = [
         {
           name: '192.168.1.1',

+ 0 - 1
ambari-web/test/main/host_test.js

@@ -22,7 +22,6 @@ require('models/service');
 require('models/pagination');
 require('controllers/main/host');
 
-
 describe('MainHostController', function () {
     describe('#sortByName()', function () {
         it('should change isSort value to true', function () {