ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbrodets...@apache.org
Subject ambari git commit: AMBARI-18803. Unit Tests On branch-2.5 Are Not Passing.(vbrodetskyi)
Date Fri, 04 Nov 2016 20:01:30 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 68ad1c7ca -> 9b73dbe35


AMBARI-18803. Unit Tests On branch-2.5 Are Not Passing.(vbrodetskyi)


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

Branch: refs/heads/branch-2.5
Commit: 9b73dbe35d33d1e87f9ec8b135de69373c7a3411
Parents: 68ad1c7
Author: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Authored: Fri Nov 4 08:46:32 2016 +0200
Committer: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Committed: Fri Nov 4 08:47:13 2016 +0200

----------------------------------------------------------------------
 .../controller/AmbariManagementControllerTest.java     | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/9b73dbe3/ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
b/ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
index 7d99277..66c0f181 100644
--- a/ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
+++ b/ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
@@ -18,6 +18,11 @@
 
 package org.apache.ambari.server.controller;
 
+import javax.net.ssl.HostnameVerifier;
+import javax.net.ssl.HttpsURLConnection;
+import javax.net.ssl.SSLSession;
+import javax.persistence.EntityManager;
+import junit.framework.Assert;
 import static org.easymock.EasyMock.capture;
 import static org.easymock.EasyMock.createNiceMock;
 import static org.easymock.EasyMock.createStrictMock;
@@ -50,11 +55,6 @@ import java.util.Properties;
 import java.util.Set;
 import java.util.UUID;
 
-import javax.net.ssl.HostnameVerifier;
-import javax.net.ssl.HttpsURLConnection;
-import javax.net.ssl.SSLSession;
-import javax.persistence.EntityManager;
-
 import org.apache.ambari.server.AmbariException;
 import org.apache.ambari.server.ClusterNotFoundException;
 import org.apache.ambari.server.DuplicateResourceException;
@@ -174,8 +174,6 @@ import com.google.inject.Guice;
 import com.google.inject.Injector;
 import com.google.inject.persist.PersistService;
 
-import junit.framework.Assert;
-
 public class AmbariManagementControllerTest {
 
   private static final Logger LOG =
@@ -9700,6 +9698,7 @@ public class AmbariManagementControllerTest {
     clusters.addHost(HOST1);
     Host host = clusters.getHost(HOST1);
     setOsFamily(host, "redhat", "5.9");
+    clusters.getHost(HOST1).setState(HostState.HEALTHY);
 
     ClusterRequest clusterRequest = new ClusterRequest(null, CLUSTER_NAME, STACK_ID, null);
     amc.createCluster(clusterRequest);


Mime
View raw message