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

pinal pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 123f7619a ATLAS-4807: Fix IT test related to Labels
123f7619a is described below

commit 123f7619aabd630464e17a3e4457fcd77bedc74d
Author: Pinal Shah <pinal.s...@freestoneinfotech.com>
AuthorDate: Wed Nov 1 13:34:04 2023 +0700

    ATLAS-4807: Fix IT test related to Labels
    
    Signed-off-by: Pinal Shah <pinal.s...@freestoneinfotech.com>
---
 .../org/apache/atlas/web/integration/EntityV2JerseyResourceIT.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/webapp/src/test/java/org/apache/atlas/web/integration/EntityV2JerseyResourceIT.java
 
b/webapp/src/test/java/org/apache/atlas/web/integration/EntityV2JerseyResourceIT.java
index 00f0aab1a..52aaf8130 100755
--- 
a/webapp/src/test/java/org/apache/atlas/web/integration/EntityV2JerseyResourceIT.java
+++ 
b/webapp/src/test/java/org/apache/atlas/web/integration/EntityV2JerseyResourceIT.java
@@ -967,7 +967,7 @@ public class EntityV2JerseyResourceIT extends 
BaseResourceIT {
         createdDBName = (String) createHiveDB().getAttribute(NAME);
         Set<String> labels = new HashSet<>();
         labels.add("labelByTypeName");
-        atlasClientV2.addLabels(createHiveDB().getTypeName(), toMap(NAME, 
createdDBName), labels);
+        atlasClientV2.setLabels(createHiveDB().getTypeName(), toMap(NAME, 
createdDBName), labels);
         AtlasEntityWithExtInfo info = 
atlasClientV2.getEntityByGuid(createHiveDB().getGuid(), false, true);
         assertNotNull(info);
         assertNotNull(info.getEntity().getLabels());
@@ -979,7 +979,7 @@ public class EntityV2JerseyResourceIT extends 
BaseResourceIT {
         createdDBName = (String) createHiveDB().getAttribute(NAME);
         Set<String> labels = new HashSet<>();
         labels.add("labelByTypeNameNext");
-        atlasClientV2.setLabels(createHiveDB().getTypeName(), toMap(NAME, 
createdDBName), labels);
+        atlasClientV2.addLabels(createHiveDB().getTypeName(), toMap(NAME, 
createdDBName), labels);
         AtlasEntityWithExtInfo infoForSet = 
atlasClientV2.getEntityByGuid(createHiveDB().getGuid(), false, true);
         assertNotNull(infoForSet);
         assertNotNull(infoForSet.getEntity().getLabels());

Reply via email to