ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpapirkovs...@apache.org
Subject ambari git commit: AMBARI-14774. Change logging level to INFO for unit tests. Unit tests fix 2. (mpapirkovskyy)
Date Sat, 23 Jan 2016 13:41:42 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 0776956c1 -> 1be4be17b


AMBARI-14774. Change logging level to INFO for unit tests. Unit tests fix 2. (mpapirkovskyy)


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

Branch: refs/heads/trunk
Commit: 1be4be17bdc3c180b664def7238e17a2a432815b
Parents: 0776956
Author: Myroslav Papirkovskyy <mpapyrkovskyy@hortonworks.com>
Authored: Sat Jan 23 15:37:59 2016 +0200
Committer: Myroslav Papirkovskyy <mpapyrkovskyy@hortonworks.com>
Committed: Sat Jan 23 15:37:59 2016 +0200

----------------------------------------------------------------------
 .../ambari/server/actionmanager/TestActionScheduler.java     | 2 +-
 .../server/api/rest/KdcServerConnectionVerificationTest.java | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1be4be17/ambari-server/src/test/java/org/apache/ambari/server/actionmanager/TestActionScheduler.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/java/org/apache/ambari/server/actionmanager/TestActionScheduler.java
b/ambari-server/src/test/java/org/apache/ambari/server/actionmanager/TestActionScheduler.java
index bc4d397..fd8b4ea 100644
--- a/ambari-server/src/test/java/org/apache/ambari/server/actionmanager/TestActionScheduler.java
+++ b/ambari-server/src/test/java/org/apache/ambari/server/actionmanager/TestActionScheduler.java
@@ -317,7 +317,7 @@ public class TestActionScheduler {
     stages.get(0).setHostRoleStatus(hostname, "SECONDARY_NAMENODE", HostRoleStatus.IN_PROGRESS);
     scheduler.doWork();
     assertEquals(1, stages.get(0).getAttemptCount(hostname, "NAMENODE"));
-    assertEquals(2, stages.get(0).getAttemptCount(hostname, "SECONDARY_NAMENODE"));
+    assertEquals(1, stages.get(0).getAttemptCount(hostname, "SECONDARY_NAMENODE"));
 
     while (!stages.get(0).getHostRoleStatus(hostname, "SECONDARY_NAMENODE")
         .equals(HostRoleStatus.TIMEDOUT) && cycleCount++ <= MAX_CYCLE_ITERATIONS)
{

http://git-wip-us.apache.org/repos/asf/ambari/blob/1be4be17/ambari-server/src/test/java/org/apache/ambari/server/api/rest/KdcServerConnectionVerificationTest.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/java/org/apache/ambari/server/api/rest/KdcServerConnectionVerificationTest.java
b/ambari-server/src/test/java/org/apache/ambari/server/api/rest/KdcServerConnectionVerificationTest.java
index 6624506..18a4c0a 100644
--- a/ambari-server/src/test/java/org/apache/ambari/server/api/rest/KdcServerConnectionVerificationTest.java
+++ b/ambari-server/src/test/java/org/apache/ambari/server/api/rest/KdcServerConnectionVerificationTest.java
@@ -134,7 +134,7 @@ public class KdcServerConnectionVerificationTest  {
     assertEquals(11111, kdcConfig.getKdcPort());
     assertEquals(10 * 1000, kdcConfig.getTimeout());
 
-    verify(connection, exception, error);
+    verify(connection, exception);
   }
 
   @Test
@@ -229,7 +229,7 @@ public class KdcServerConnectionVerificationTest  {
     assertEquals(11111, kdcConfig.getKdcPort());
     assertEquals(10 * 1000, kdcConfig.getTimeout());
 
-    verify(connection, exception, error);
+    verify(connection, exception);
   }
 
   @Test
@@ -280,7 +280,7 @@ public class KdcServerConnectionVerificationTest  {
     assertEquals(11111, kdcConfig.getKdcPort());
     assertEquals(10 * 1000, kdcConfig.getTimeout());
 
-    verify(connection, exception, error);
+    verify(connection, exception);
   }
 
   @Test
@@ -375,7 +375,7 @@ public class KdcServerConnectionVerificationTest  {
     assertEquals(11111, kdcConfig.getKdcPort());
     assertEquals(10 * 1000, kdcConfig.getTimeout());
 
-    verify(connection, exception, error);
+    verify(connection, exception);
   }
 
   @Test


Mime
View raw message