Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
84be2598
Commit
84be2598
authored
5 years ago
by
Ashutosh Mestry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3355: BasicTestSetup: Long assigned to integer field.
parent
b5189194
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
BasicTestSetup.java
.../src/test/java/org/apache/atlas/query/BasicTestSetup.java
+4
-4
No files found.
repository/src/test/java/org/apache/atlas/query/BasicTestSetup.java
View file @
84be2598
...
...
@@ -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"
,
5
d
);
table
.
setAttribute
(
"db"
,
getAtlasObjectId
(
db
));
table
.
setAttribute
(
"sd"
,
getAtlasObjectId
(
sd
));
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment