ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smn...@apache.org
Subject [4/4] ambari git commit: AMBARI-16826: Unit Test failure: ComponentResourceProviderTest
Date Tue, 24 May 2016 18:37:37 GMT
AMBARI-16826: Unit Test failure: ComponentResourceProviderTest


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

Branch: refs/heads/branch-2.4
Commit: ba4493c66c00fa96ebca661ed42a15087989943b
Parents: db7f6cb
Author: Nahappan Somasundaram <nsomasundaram@hortonworks.com>
Authored: Mon May 23 13:24:04 2016 -0700
Committer: Nahappan Somasundaram <nsomasundaram@hortonworks.com>
Committed: Tue May 24 11:37:17 2016 -0700

----------------------------------------------------------------------
 .../server/controller/internal/ComponentResourceProviderTest.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ba4493c6/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ComponentResourceProviderTest.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ComponentResourceProviderTest.java
b/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ComponentResourceProviderTest.java
index 7ec6e66..d299fad 100644
--- a/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ComponentResourceProviderTest.java
+++ b/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ComponentResourceProviderTest.java
@@ -146,6 +146,7 @@ public class ComponentResourceProviderTest {
 
     expect(ambariMetaInfo.isValidServiceComponent("HDP", "99", "Service100", "Component100")).andReturn(true).anyTimes();
 
+    expect(componentInfo.getName()).andReturn("Component100").anyTimes();
     expect(componentInfo.isRecoveryEnabled()).andReturn(true).anyTimes();
     expect(ambariMetaInfo.getComponent("HDP", "99", "Service100", "Component100")).andReturn(componentInfo).anyTimes();
 
@@ -153,7 +154,7 @@ public class ComponentResourceProviderTest {
 
     // replay
     replay(managementController, response, clusters, cluster, service, stackId, ambariMetaInfo,
-        serviceComponentFactory, serviceComponent);
+        serviceComponentFactory, serviceComponent, componentInfo);
 
     SecurityContextHolder.getContext().setAuthentication(authentication);
 


Mime
View raw message