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
bb189766
Commit
bb189766
authored
Aug 23, 2017
by
Sarath Subramanian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2079: Fix coverity scan issue and IT failures introduced by ATLAS-2062 - missing changes
parent
97ae3a3c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
FalconHookIT.java
.../test/java/org/apache/atlas/falcon/hook/FalconHookIT.java
+1
-1
HiveITBase.java
...ridge/src/test/java/org/apache/atlas/hive/HiveITBase.java
+1
-1
HiveHookIT.java
.../src/test/java/org/apache/atlas/hive/hook/HiveHookIT.java
+1
-1
pom.xml
pom.xml
+1
-1
TypesUtil.java
...va/org/apache/atlas/typesystem/types/utils/TypesUtil.java
+1
-1
TypesJerseyResourceIT.java
...g/apache/atlas/web/integration/TypesJerseyResourceIT.java
+2
-2
No files found.
addons/falcon-bridge/src/test/java/org/apache/atlas/falcon/hook/FalconHookIT.java
View file @
bb189766
...
...
@@ -304,7 +304,7 @@ public class FalconHookIT {
}
private
String
assertEntityIsRegistered
(
final
String
typeName
,
final
String
property
,
final
String
value
)
throws
Exception
{
waitFor
(
80
000
,
new
Predicate
()
{
waitFor
(
1
000
,
new
Predicate
()
{
@Override
public
void
evaluate
()
throws
Exception
{
Referenceable
entity
=
atlasClient
.
getEntity
(
typeName
,
property
,
value
);
...
...
addons/hive-bridge/src/test/java/org/apache/atlas/hive/HiveITBase.java
View file @
bb189766
...
...
@@ -155,7 +155,7 @@ public class HiveITBase {
protected
String
assertEntityIsRegistered
(
final
String
typeName
,
final
String
property
,
final
String
value
,
final
HiveHookIT
.
AssertPredicate
assertPredicate
)
throws
Exception
{
waitFor
(
80
000
,
new
HiveHookIT
.
Predicate
()
{
waitFor
(
1
000
,
new
HiveHookIT
.
Predicate
()
{
@Override
public
void
evaluate
()
throws
Exception
{
Referenceable
entity
=
atlasClient
.
getEntity
(
typeName
,
property
,
value
);
...
...
addons/hive-bridge/src/test/java/org/apache/atlas/hive/hook/HiveHookIT.java
View file @
bb189766
...
...
@@ -1803,7 +1803,7 @@ public class HiveHookIT extends HiveITBase {
}
private
void
assertEntityIsNotRegistered
(
final
String
typeName
,
final
String
property
,
final
String
value
)
throws
Exception
{
waitFor
(
80
000
,
new
Predicate
()
{
waitFor
(
1
000
,
new
Predicate
()
{
@Override
public
void
evaluate
()
throws
Exception
{
try
{
...
...
pom.xml
View file @
bb189766
...
...
@@ -1922,7 +1922,7 @@
<log4j.configuration>
atlas-log4j.xml
</log4j.configuration>
</systemProperties>
<skipTests>
${skipTests}
</skipTests>
<forkCount>
1
C
</forkCount>
<forkCount>
2
C
</forkCount>
<reuseForks>
false
</reuseForks>
<redirectTestOutputToFile>
true
</redirectTestOutputToFile>
<argLine>
-Djava.awt.headless=true -Dproject.version=${project.version}
...
...
typesystem/src/main/java/org/apache/atlas/typesystem/types/utils/TypesUtil.java
View file @
bb189766
...
...
@@ -112,7 +112,7 @@ public class TypesUtil {
public
static
HierarchicalTypeDefinition
<
ClassType
>
createClassTypeDef
(
String
name
,
String
description
,
String
version
,
ImmutableSet
<
String
>
superTypes
,
AttributeDefinition
...
attrDefs
)
{
return
new
HierarchicalTypeDefinition
<>(
ClassType
.
class
,
name
,
description
,
superTypes
,
attrDefs
);
return
new
HierarchicalTypeDefinition
<>(
ClassType
.
class
,
name
,
description
,
version
,
superTypes
,
attrDefs
);
}
public
static
TypesDef
getTypesDef
(
ImmutableList
<
EnumTypeDefinition
>
enums
,
...
...
webapp/src/test/java/org/apache/atlas/web/integration/TypesJerseyResourceIT.java
View file @
bb189766
...
...
@@ -112,14 +112,14 @@ public class TypesJerseyResourceIT extends BaseResourceIT {
@Test
public
void
testUpdate
()
throws
Exception
{
HierarchicalTypeDefinition
<
ClassType
>
typeDefinition
=
TypesUtil
.
createClassTypeDef
(
randomString
(),
ImmutableSet
.<
String
>
of
(),
.
createClassTypeDef
(
randomString
(),
null
,
"1.0"
,
ImmutableSet
.<
String
>
of
(),
TypesUtil
.
createUniqueRequiredAttrDef
(
NAME
,
DataTypes
.
STRING_TYPE
));
List
<
String
>
typesCreated
=
atlasClientV1
.
createType
(
TypesSerialization
.
toJson
(
typeDefinition
,
false
));
assertEquals
(
typesCreated
.
size
(),
1
);
assertEquals
(
typesCreated
.
get
(
0
),
typeDefinition
.
typeName
);
//Add attribute description
typeDefinition
=
TypesUtil
.
createClassTypeDef
(
typeDefinition
.
typeName
,
typeDefinition
=
TypesUtil
.
createClassTypeDef
(
typeDefinition
.
typeName
,
null
,
"2.0"
,
ImmutableSet
.<
String
>
of
(),
TypesUtil
.
createUniqueRequiredAttrDef
(
NAME
,
DataTypes
.
STRING_TYPE
),
createOptionalAttrDef
(
DESCRIPTION
,
DataTypes
.
STRING_TYPE
));
...
...
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