ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathanhur...@apache.org
Subject [4/9] git commit: AMBARI-6908 - Alerts: AlertDefinition Should Have a Label (jonathanhurley)
Date Tue, 19 Aug 2014 15:46:29 GMT
AMBARI-6908 - Alerts: AlertDefinition Should Have a Label (jonathanhurley)


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

Branch: refs/heads/branch-alerts-dev
Commit: 0e9a676b55fc9c2926e1958f8b36f30bc1ba3e84
Parents: b2f25b6
Author: Jonathan Hurley <jhurley@hortonworks.com>
Authored: Mon Aug 18 21:01:32 2014 -0400
Committer: Jonathan Hurley <jhurley@hortonworks.com>
Committed: Tue Aug 19 11:39:55 2014 -0400

----------------------------------------------------------------------
 .../controller/internal/AlertDefinitionResourceProviderTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/0e9a676b/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProviderTest.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProviderTest.java
b/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProviderTest.java
index 7df999e..ab74614 100644
--- a/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProviderTest.java
+++ b/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProviderTest.java
@@ -263,11 +263,11 @@ public class AlertDefinitionResourceProviderTest {
     Assert.assertEquals(Integer.valueOf(1), entity.getScheduleInterval());
     Assert.assertNull(entity.getScope());
     Assert.assertEquals("HDFS", entity.getServiceName());
+    Assert.assertNotNull(entity.getSource());
     Assert.assertEquals("METRIC", entity.getSourceType());
     Assert.assertEquals("Mock Label (Create)", entity.getLabel());
 
     // verify Source
-    Assert.assertNotNull(entity.getSource());
     Source actualSource = gson.fromJson(entity.getSource(), Source.class);
     Assert.assertNotNull(actualSource);
 


Mime
View raw message