You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by av...@apache.org on 2018/05/02 23:02:57 UTC

[ambari] 04/04: AMBARI-23744 : Fix UUID computation issues in AMS. (Unit test failure fix)

This is an automated email from the ASF dual-hosted git repository.

avijayan pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git

commit 0b4c4867658a13d722eea849c783d6f761c34fdb
Author: Aravindan Vijayan <av...@hortonworks.com>
AuthorDate: Wed May 2 12:47:21 2018 -0700

    AMBARI-23744 : Fix UUID computation issues in AMS. (Unit test failure fix)
---
 .../org/apache/ambari/server/upgrade/UpgradeCatalog270Test.java     | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog270Test.java b/ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog270Test.java
index 40b19e0..57fd7f8 100644
--- a/ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog270Test.java
+++ b/ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog270Test.java
@@ -313,6 +313,8 @@ public class UpgradeCatalog270Test {
     Method renameAmbariInfra = UpgradeCatalog270.class.getDeclaredMethod("renameAmbariInfra");
     Method updateKerberosDescriptorArtifacts = UpgradeCatalog270.class.getSuperclass().getDeclaredMethod("updateKerberosDescriptorArtifacts");
     Method updateSolrConfigurations = UpgradeCatalog270.class.getDeclaredMethod("updateSolrConfigurations");
+    Method updateAmsConfigurations = UpgradeCatalog270.class.getDeclaredMethod("updateAmsConfigs");
+
     UpgradeCatalog270 upgradeCatalog270 = createMockBuilder(UpgradeCatalog270.class)
         .addMockedMethod(showHcatDeletedUserMessage)
         .addMockedMethod(addNewConfigurationsFromXml)
@@ -326,6 +328,7 @@ public class UpgradeCatalog270Test {
         .addMockedMethod(renameAmbariInfra)
         .addMockedMethod(updateKerberosDescriptorArtifacts)
         .addMockedMethod(updateSolrConfigurations)
+        .addMockedMethod(updateAmsConfigurations)
         .createMock();
 
 
@@ -363,6 +366,9 @@ public class UpgradeCatalog270Test {
     upgradeCatalog270.updateSolrConfigurations();
     expectLastCall().once();
 
+    upgradeCatalog270.updateAmsConfigs();
+    expectLastCall().once();
+
     replay(upgradeCatalog270);
 
     upgradeCatalog270.executeDMLUpdates();

-- 
To stop receiving notification emails like this one, please contact
avijayan@apache.org.