You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ad...@apache.org on 2017/12/06 11:17:04 UTC
ambari git commit: AMBARI-22253. Fix compile error in
RequiredConfigPropertiesValidatorTest (adoroszlai)
Repository: ambari
Updated Branches:
refs/heads/branch-feature-AMBARI-14714-blueprintv2 674347a63 -> bcc0277aa
AMBARI-22253. Fix compile error in RequiredConfigPropertiesValidatorTest (adoroszlai)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/bcc0277a
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/bcc0277a
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/bcc0277a
Branch: refs/heads/branch-feature-AMBARI-14714-blueprintv2
Commit: bcc0277aa460d3db4a3d436cadfa37d4679cf0e2
Parents: 674347a
Author: Doroszlai, Attila <ad...@hortonworks.com>
Authored: Wed Dec 6 12:13:29 2017 +0100
Committer: Doroszlai, Attila <ad...@hortonworks.com>
Committed: Wed Dec 6 12:13:29 2017 +0100
----------------------------------------------------------------------
.../validators/RequiredConfigPropertiesValidatorTest.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/bcc0277a/ambari-server/src/test/java/org/apache/ambari/server/topology/validators/RequiredConfigPropertiesValidatorTest.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/java/org/apache/ambari/server/topology/validators/RequiredConfigPropertiesValidatorTest.java b/ambari-server/src/test/java/org/apache/ambari/server/topology/validators/RequiredConfigPropertiesValidatorTest.java
index f6b4ec8..36f90a9 100644
--- a/ambari-server/src/test/java/org/apache/ambari/server/topology/validators/RequiredConfigPropertiesValidatorTest.java
+++ b/ambari-server/src/test/java/org/apache/ambari/server/topology/validators/RequiredConfigPropertiesValidatorTest.java
@@ -26,6 +26,7 @@ import org.apache.ambari.server.controller.StackV2;
import org.apache.ambari.server.topology.BlueprintV2;
import org.apache.ambari.server.topology.ClusterTopology;
import org.apache.ambari.server.topology.Configuration;
+import org.apache.ambari.server.topology.HostGroupV2;
import org.apache.ambari.server.topology.HostGroupV2Impl;
import org.apache.ambari.server.topology.InvalidTopologyException;
import org.apache.ambari.server.topology.Service;
@@ -81,7 +82,7 @@ public class RequiredConfigPropertiesValidatorTest extends EasyMockSupport {
private Collection<String> bpServices = new HashSet<>();
private Collection<Service> slaveHostGroupServices = new HashSet<>();
private Collection<Service> masterHostGroupServices = new HashSet<>();
- private Map<String, HostGroupV2Impl> hostGroups = new HashMap<>();
+ private Map<String, HostGroupV2> hostGroups = new HashMap<>();
private Map<String, Collection<String>> missingProps = new TreeMap<>();
@@ -103,7 +104,7 @@ public class RequiredConfigPropertiesValidatorTest extends EasyMockSupport {
EasyMock.expect(clusterTopologyMock.getBlueprint()).andReturn(blueprintMock).anyTimes();
- EasyMock.expect((Map<String, HostGroupV2Impl>)blueprintMock.getHostGroups()).andReturn(hostGroups);
+ EasyMock.expect(blueprintMock.getHostGroups()).andReturn(hostGroups);
EasyMock.expect(masterHostGroupMock.getName()).andReturn("master").anyTimes();
EasyMock.expect(masterHostGroupMock.getConfiguration()).andReturn(masterHostGroupConfigurationMock).anyTimes();