Commit a1fb9eda by Shwetha GS

ATLAS-439 Investigate apache build failure - EntityJerseyResourceIT.testEntityDeduping (shwethags)

parent 9f28540b
...@@ -7,6 +7,7 @@ ATLAS-409 Atlas will not import avro tables with schema read from a file (dosset ...@@ -7,6 +7,7 @@ ATLAS-409 Atlas will not import avro tables with schema read from a file (dosset
ATLAS-379 Create sqoop and falcon metadata addons (venkatnrangan,bvellanki,sowmyaramesh via shwethags) ATLAS-379 Create sqoop and falcon metadata addons (venkatnrangan,bvellanki,sowmyaramesh via shwethags)
ALL CHANGES: ALL CHANGES:
ATLAS-439 Investigate apache build failure - EntityJerseyResourceIT.testEntityDeduping (shwethags)
ATLAS-426 atlas_start fails on cygwin (dkantor via shwethags) ATLAS-426 atlas_start fails on cygwin (dkantor via shwethags)
ATLAS-448 Hive IllegalArgumentException with Atlas hook enabled on SHOW TRANSACTIONS AND SHOW COMPACTIONS (shwethags) ATLAS-448 Hive IllegalArgumentException with Atlas hook enabled on SHOW TRANSACTIONS AND SHOW COMPACTIONS (shwethags)
ATLAS-181 Integrate storm topology metadata into Atlas (svenkat,yhemanth via shwethags) ATLAS-181 Integrate storm topology metadata into Atlas (svenkat,yhemanth via shwethags)
......
...@@ -141,12 +141,12 @@ public class EntityJerseyResourceIT extends BaseResourceIT { ...@@ -141,12 +141,12 @@ public class EntityJerseyResourceIT extends BaseResourceIT {
db.set("name", dbName); db.set("name", dbName);
db.set("description", randomString()); db.set("description", randomString());
serviceClient.createEntity(db).getString(0); final String dbid = serviceClient.createEntity(db).getString(0);
waitForNotification(notificationConsumer, MAX_WAIT_TIME, new NotificationPredicate() { waitForNotification(notificationConsumer, MAX_WAIT_TIME, new NotificationPredicate() {
@Override @Override
public boolean evaluate(EntityNotification notification) throws Exception { public boolean evaluate(EntityNotification notification) throws Exception {
return notification != null && notification.getEntity().get("name").equals(dbName); return notification != null && notification.getEntity().getId()._getId().equals(dbid);
} }
}); });
...@@ -155,12 +155,13 @@ public class EntityJerseyResourceIT extends BaseResourceIT { ...@@ -155,12 +155,13 @@ public class EntityJerseyResourceIT extends BaseResourceIT {
assertEquals(results.length(), 1); assertEquals(results.length(), 1);
//create entity again shouldn't create another instance with same unique attribute value //create entity again shouldn't create another instance with same unique attribute value
serviceClient.createEntity(db); results = serviceClient.createEntity(db);
assertEquals(results.length(), 0);
try { try {
waitForNotification(notificationConsumer, MAX_WAIT_TIME, new NotificationPredicate() { waitForNotification(notificationConsumer, MAX_WAIT_TIME, new NotificationPredicate() {
@Override @Override
public boolean evaluate(EntityNotification notification) throws Exception { public boolean evaluate(EntityNotification notification) throws Exception {
return notification != null && notification.getEntity().get("name").equals(dbName); return notification != null && notification.getEntity().getId()._getId().equals(dbid);
} }
}); });
fail("Expected time out exception"); fail("Expected time out exception");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment