Commit 84be2598 by Ashutosh Mestry

ATLAS-3355: BasicTestSetup: Long assigned to integer field.

parent b5189194
...@@ -77,7 +77,7 @@ public abstract class BasicTestSetup { ...@@ -77,7 +77,7 @@ public abstract class BasicTestSetup {
loadModelFromJson("0000-Area0/0010-base_model.json", typeDefStore, typeRegistry); loadModelFromJson("0000-Area0/0010-base_model.json", typeDefStore, typeRegistry);
baseLoaded = true; baseLoaded = true;
} catch (IOException | AtlasBaseException e) { } catch (IOException | AtlasBaseException e) {
fail("Base model setup is required for test to run"); fail("Base model setup is required for test to run!");
} }
} }
...@@ -89,7 +89,7 @@ public abstract class BasicTestSetup { ...@@ -89,7 +89,7 @@ public abstract class BasicTestSetup {
try { try {
loadModelFromJson("1000-Hadoop/1030-hive_model.json", typeDefStore, typeRegistry); loadModelFromJson("1000-Hadoop/1030-hive_model.json", typeDefStore, typeRegistry);
} catch (IOException | AtlasBaseException e) { } catch (IOException | AtlasBaseException e) {
fail("Hive model setup is required for test to run"); fail("Hive model setup is required for test to run!");
} }
AtlasEntity.AtlasEntitiesWithExtInfo hiveTestEntities = hiveTestEntities(); AtlasEntity.AtlasEntitiesWithExtInfo hiveTestEntities = hiveTestEntities();
...@@ -97,7 +97,7 @@ public abstract class BasicTestSetup { ...@@ -97,7 +97,7 @@ public abstract class BasicTestSetup {
try { try {
entityStore.createOrUpdate(new AtlasEntityStream(hiveTestEntities), false); entityStore.createOrUpdate(new AtlasEntityStream(hiveTestEntities), false);
} catch (AtlasBaseException e) { } catch (AtlasBaseException e) {
fail("Hive instance setup is needed for test to run"); fail("Hive entities need to be created for test to run!");
} }
} }
...@@ -356,7 +356,7 @@ public abstract class BasicTestSetup { ...@@ -356,7 +356,7 @@ public abstract class BasicTestSetup {
table.setAttribute("temporary", false); table.setAttribute("temporary", false);
table.setAttribute("createTime", new Date(System.currentTimeMillis())); table.setAttribute("createTime", new Date(System.currentTimeMillis()));
table.setAttribute("lastAccessTime", System.currentTimeMillis()); table.setAttribute("lastAccessTime", System.currentTimeMillis());
table.setAttribute("retention", System.currentTimeMillis()); table.setAttribute("retention", 5d);
table.setAttribute("db", getAtlasObjectId(db)); table.setAttribute("db", getAtlasObjectId(db));
table.setAttribute("sd", getAtlasObjectId(sd)); table.setAttribute("sd", getAtlasObjectId(sd));
......
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