ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbhowm...@apache.org
Subject ambari git commit: AMBARI-16652. Ambari admin test fails with Error : Unexpected request: GET /api/v1/remoteclusters. (Gaurav Nagar via dipayanb)
Date Fri, 13 May 2016 13:11:02 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 9073750ff -> 0cf5593d9


AMBARI-16652. Ambari admin test fails with Error : Unexpected request: GET /api/v1/remoteclusters.
(Gaurav Nagar via dipayanb)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/0cf5593d
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/0cf5593d
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/0cf5593d

Branch: refs/heads/branch-2.4
Commit: 0cf5593d913b0a484e620e7ea0eeaef203657d24
Parents: 9073750
Author: Dipayan Bhowmick <dipayan.bhowmick@gmail.com>
Authored: Fri May 13 18:38:34 2016 +0530
Committer: Dipayan Bhowmick <dipayan.bhowmick@gmail.com>
Committed: Fri May 13 18:40:41 2016 +0530

----------------------------------------------------------------------
 .../test/unit/controllers/CreateViewInstanceCtrl.js       | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/0cf5593d/ambari-admin/src/main/resources/ui/admin-web/test/unit/controllers/CreateViewInstanceCtrl.js
----------------------------------------------------------------------
diff --git a/ambari-admin/src/main/resources/ui/admin-web/test/unit/controllers/CreateViewInstanceCtrl.js
b/ambari-admin/src/main/resources/ui/admin-web/test/unit/controllers/CreateViewInstanceCtrl.js
index 35ddc16..595fcc0 100644
--- a/ambari-admin/src/main/resources/ui/admin-web/test/unit/controllers/CreateViewInstanceCtrl.js
+++ b/ambari-admin/src/main/resources/ui/admin-web/test/unit/controllers/CreateViewInstanceCtrl.js
@@ -78,6 +78,16 @@ describe('#CreateViewInstanceCtrl', function () {
         }
       ]
     });
+    $httpBackend.whenGET(/\/api\/v1\/remoteclusters\?fields=ClusterInfo\/services&_=\d+/).respond(200,
{
+      "items" : [
+         {
+           "ClusterInfo" : {
+            "name" : "c1",
+            "services" : ["HDFS"]
+          }
+        }
+      ]
+    });
     scope.$digest();
     $httpBackend.flush();
     chai.expect(scope.view.ViewVersionInfo.parameters[0].value).to.equal('d');


Mime
View raw message