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

jialiang 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 6e8e08645c AMBARI-26466: 
WidgetResourceProviderTest.testUpdateResources fails due to Jakarta Persistence 
API update (#4010)
6e8e08645c is described below

commit 6e8e08645c264c34318fadce7824796bec816a73
Author: Jhen-Yung Hsu <[email protected]>
AuthorDate: Thu Apr 24 09:05:40 2025 +0800

    AMBARI-26466: WidgetResourceProviderTest.testUpdateResources fails due to 
Jakarta Persistence API update (#4010)
    
    Co-authored-by: yungh <[email protected]>
---
 .../server/controller/internal/WidgetResourceProviderTest.java    | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git 
a/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/WidgetResourceProviderTest.java
 
b/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/WidgetResourceProviderTest.java
index 8160d13ecd..83bac71322 100644
--- 
a/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/WidgetResourceProviderTest.java
+++ 
b/ambari-server/src/test/java/org/apache/ambari/server/controller/internal/WidgetResourceProviderTest.java
@@ -361,7 +361,13 @@ public class WidgetResourceProviderTest {
     Assert.assertFalse(oldName.equals(entity.getWidgetName()));
     Assert.assertFalse(oldMetrics.equals(entity.getMetrics()));
     Assert.assertFalse(oldProperties.equals(entity.getProperties()));
-    
Assert.assertEquals("[{\"name\":\"new_value\",\"new_name\":\"new_value2\"}]",entity.getMetrics());
+    Assert.assertEquals("[\n" +
+            "  {\n" +
+            "    \"name\": \"new_value\",\n" +
+            "    \"new_name\": \"new_value2\"\n" +
+            "  }\n" +
+            "]",entity.getMetrics());
+
     // Depends on hashing, string representation can be different
     
Assert.assertTrue(CollectionPresentationUtils.isJsonsEquals("{\"new_property\":\"new_value2\",\"property1\":\"new_value1\"}",
 entity.getProperties()));
     Assert.assertEquals("widget name2",entity.getWidgetName());


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to