You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eagle.apache.org by ha...@apache.org on 2017/01/10 02:46:22 UTC

eagle git commit: [MINOR] Fix unit test problem

Repository: eagle
Updated Branches:
  refs/heads/master 02d6cce73 -> 18424b9f5


[MINOR] Fix unit test problem

[MINOR] Fix unit test problem
- fix ut problem which caused by adding dependency for hadoop_metric_monitor

Author: chitin <ch...@gmail.com>

Closes #766 from chitin/uishow_utbug.


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

Branch: refs/heads/master
Commit: 18424b9f5f6ceaa54a5574eda391b19d4a4e3e57
Parents: 02d6cce
Author: chitin <ch...@gmail.com>
Authored: Tue Jan 10 10:46:06 2017 +0800
Committer: Hao Chen <ha...@apache.org>
Committed: Tue Jan 10 10:46:06 2017 +0800

----------------------------------------------------------------------
 eagle-hadoop-metric/pom.xml                                    | 6 ++++++
 .../eagle/metric/HadoopMetricMonitorAppProviderTest.java       | 5 +++++
 2 files changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/eagle/blob/18424b9f/eagle-hadoop-metric/pom.xml
----------------------------------------------------------------------
diff --git a/eagle-hadoop-metric/pom.xml b/eagle-hadoop-metric/pom.xml
index b8bfd6f..0677f3b 100644
--- a/eagle-hadoop-metric/pom.xml
+++ b/eagle-hadoop-metric/pom.xml
@@ -45,6 +45,12 @@
                 </exclusion>
             </exclusions>
         </dependency>
+        <dependency>
+            <groupId>org.apache.eagle</groupId>
+            <artifactId>eagle-topology-app</artifactId>
+            <version>${project.version}</version>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
     <build>

http://git-wip-us.apache.org/repos/asf/eagle/blob/18424b9f/eagle-hadoop-metric/src/test/java/org/apache/eagle/metric/HadoopMetricMonitorAppProviderTest.java
----------------------------------------------------------------------
diff --git a/eagle-hadoop-metric/src/test/java/org/apache/eagle/metric/HadoopMetricMonitorAppProviderTest.java b/eagle-hadoop-metric/src/test/java/org/apache/eagle/metric/HadoopMetricMonitorAppProviderTest.java
index 908ce2d..94e1b82 100644
--- a/eagle-hadoop-metric/src/test/java/org/apache/eagle/metric/HadoopMetricMonitorAppProviderTest.java
+++ b/eagle-hadoop-metric/src/test/java/org/apache/eagle/metric/HadoopMetricMonitorAppProviderTest.java
@@ -55,6 +55,11 @@ public class HadoopMetricMonitorAppProviderTest extends ApplicationTestBase {
 
         ApplicationOperations.InstallOperation installOperation = new ApplicationOperations.InstallOperation("test_site", "HADOOP_METRIC_MONITOR", ApplicationEntity.Mode.LOCAL);
         installOperation.setConfiguration(getConf());
+
+        //Install dependency
+        ApplicationOperations.InstallOperation installOperationDependency = new ApplicationOperations.InstallOperation("test_site", "TOPOLOGY_HEALTH_CHECK_APP", ApplicationEntity.Mode.LOCAL);
+        applicationResource.installApplication(installOperationDependency);
+
         // Install application
         ApplicationEntity applicationEntity = applicationResource.installApplication(installOperation).getData();
         // Uninstall application