ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmitriu...@apache.org
Subject ambari git commit: AMBARI-9777. Blank current stack version on the host added via addHostWizard. Fix unit test failure (dlysnichenko)
Date Thu, 26 Feb 2015 14:00:06 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.0.0 f71bb3fe7 -> 5b55f3862


AMBARI-9777. Blank current stack version on the host added via addHostWizard. Fix unit test
failure (dlysnichenko)


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

Branch: refs/heads/branch-2.0.0
Commit: 5b55f38620a0eb841a01e2d1b4646f6f8f1f99ba
Parents: f71bb3f
Author: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Authored: Thu Feb 26 15:59:35 2015 +0200
Committer: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Committed: Thu Feb 26 15:59:35 2015 +0200

----------------------------------------------------------------------
 .../java/org/apache/ambari/server/state/cluster/ClusterTest.java  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5b55f386/ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java
b/ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java
index bdf312e..a8b64f8 100644
--- a/ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java
+++ b/ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java
@@ -1315,6 +1315,9 @@ public class ClusterTest {
 
     c2.transitionHostVersionState(hostEntity3, rve1, stackId);
 
+    // Revert fields of static instance
+    ClusterVersionDAOMock.mockedClusterVersions = null;
+
     verify(hostVersionDAOMock).merge(hostVersionCaptor.capture());
     assertEquals(hostVersionCaptor.getValue().getState(), RepositoryVersionState.CURRENT);
   }


Mime
View raw message