ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mgerg...@apache.org
Subject ambari git commit: AMBARI-20578 APPENDUM Log Search Configuration API (mgergely)
Date Wed, 12 Apr 2017 15:41:09 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 310c55441 -> 64e88e05d


AMBARI-20578 APPENDUM Log Search Configuration API (mgergely)

Change-Id: I3b8af535da9f9ce43dffff661de74ce1b2f6925c


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

Branch: refs/heads/trunk
Commit: 64e88e05d264e4d5a12122b48b724aca48c87d8f
Parents: 310c554
Author: Miklos Gergely <mgergely@hortonworks.com>
Authored: Wed Apr 12 17:40:39 2017 +0200
Committer: Miklos Gergely <mgergely@hortonworks.com>
Committed: Wed Apr 12 17:41:01 2017 +0200

----------------------------------------------------------------------
 .../org/apache/ambari/server/upgrade/UpgradeCatalog300Test.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/64e88e05/ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog300Test.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog300Test.java
b/ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog300Test.java
index 5aef50a..fec041c 100644
--- a/ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog300Test.java
+++ b/ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog300Test.java
@@ -23,6 +23,7 @@ import static org.easymock.EasyMock.capture;
 import static org.easymock.EasyMock.createMockBuilder;
 import static org.easymock.EasyMock.eq;
 import static org.easymock.EasyMock.expect;
+import static org.easymock.EasyMock.expectLastCall;
 import static org.easymock.EasyMock.newCapture;
 import static org.easymock.EasyMock.replay;
 import static org.easymock.EasyMock.reset;
@@ -131,11 +132,13 @@ public class UpgradeCatalog300Test {
     Method addNewConfigurationsFromXml = AbstractUpgradeCatalog.class.getDeclaredMethod("addNewConfigurationsFromXml");
     Method showHcatDeletedUserMessage = UpgradeCatalog300.class.getDeclaredMethod("showHcatDeletedUserMessage");
     Method setStatusOfStagesAndRequests = UpgradeCatalog300.class.getDeclaredMethod("setStatusOfStagesAndRequests");
+    Method updateLogSearchConfigs = UpgradeCatalog300.class.getDeclaredMethod("updateLogSearchConfigs");
 
    UpgradeCatalog300 upgradeCatalog300 = createMockBuilder(UpgradeCatalog300.class)
             .addMockedMethod(showHcatDeletedUserMessage)
             .addMockedMethod(addNewConfigurationsFromXml)
             .addMockedMethod(setStatusOfStagesAndRequests)
+            .addMockedMethod(updateLogSearchConfigs)
             .createMock();
 
 
@@ -143,6 +146,8 @@ public class UpgradeCatalog300Test {
     upgradeCatalog300.showHcatDeletedUserMessage();
     upgradeCatalog300.setStatusOfStagesAndRequests();
 
+    upgradeCatalog300.updateLogSearchConfigs();
+    expectLastCall().once();
 
     replay(upgradeCatalog300);
 


Mime
View raw message