This is an automated email from the ASF dual-hosted git repository.
amestry pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push:
new 84be259 ATLAS-3355: BasicTestSetup: Long assigned to integer field.
84be259 is described below
commit 84be259863b4447f2bb898cc431bfb55e059b805
Author: Ashutosh Mestry <[email protected]>
AuthorDate: Thu Aug 1 08:58:49 2019 -0700
ATLAS-3355: BasicTestSetup: Long assigned to integer field.
---
.../src/test/java/org/apache/atlas/query/BasicTestSetup.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/repository/src/test/java/org/apache/atlas/query/BasicTestSetup.java
b/repository/src/test/java/org/apache/atlas/query/BasicTestSetup.java
index 0bf8554..02f78b3 100644
--- a/repository/src/test/java/org/apache/atlas/query/BasicTestSetup.java
+++ b/repository/src/test/java/org/apache/atlas/query/BasicTestSetup.java
@@ -77,7 +77,7 @@ public abstract class BasicTestSetup {
loadModelFromJson("0000-Area0/0010-base_model.json", typeDefStore,
typeRegistry);
baseLoaded = true;
} 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 {
try {
loadModelFromJson("1000-Hadoop/1030-hive_model.json",
typeDefStore, typeRegistry);
} 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();
@@ -97,7 +97,7 @@ public abstract class BasicTestSetup {
try {
entityStore.createOrUpdate(new
AtlasEntityStream(hiveTestEntities), false);
} 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 {
table.setAttribute("temporary", false);
table.setAttribute("createTime", new Date(System.currentTimeMillis()));
table.setAttribute("lastAccessTime", System.currentTimeMillis());
- table.setAttribute("retention", System.currentTimeMillis());
+ table.setAttribute("retention", 5d);
table.setAttribute("db", getAtlasObjectId(db));
table.setAttribute("sd", getAtlasObjectId(sd));