This is an automated email from the ASF dual-hosted git repository.

wuzhiguo pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 99f5d5a01e AMBARI-25874: Fix AlertTargetResourceProviderTest to work 
after merging AMBARI-25300 (#3651)
99f5d5a01e is described below

commit 99f5d5a01e799ab1274f9192de4e0f5b075412ea
Author: Kengo Seki <sek...@apache.org>
AuthorDate: Tue Feb 28 15:51:39 2023 +0900

    AMBARI-25874: Fix AlertTargetResourceProviderTest to work after merging 
AMBARI-25300 (#3651)
---
 .../server/controller/internal/AlertTargetResourceProviderTest.java      | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertTargetResourceProviderTest.java
 
b/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertTargetResourceProviderTest.java
index 1bb9f096c7..20e524ce4a 100644
--- 
a/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertTargetResourceProviderTest.java
+++ 
b/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertTargetResourceProviderTest.java
@@ -1073,6 +1073,7 @@ public class AlertTargetResourceProviderTest {
 
   @Test
   public void testEnable() throws Exception {
+    
expect(m_dao.findTargetByName(ALERT_TARGET_NAME)).andReturn(null).atLeastOnce();
     Capture<AlertTargetEntity> entityCapture = EasyMock.newCapture();
     m_dao.create(capture(entityCapture));
     expectLastCall().times(1);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@ambari.apache.org
For additional commands, e-mail: commits-h...@ambari.apache.org

Reply via email to