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
243a4321
Commit
243a4321
authored
6 years ago
by
Sarath Subramanian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2957: Fix and enable disabled StormHook Integrations Tests
parent
e7b9131d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
StormAtlasHookIT.java
...st/java/org/apache/atlas/storm/hook/StormAtlasHookIT.java
+2
-3
FailedMessagesLogger.java
...main/java/org/apache/atlas/hook/FailedMessagesLogger.java
+5
-3
pom.xml
pom.xml
+4
-0
No files found.
addons/storm-bridge/src/test/java/org/apache/atlas/storm/hook/StormAtlasHookIT.java
View file @
243a4321
...
@@ -36,7 +36,7 @@ import org.testng.annotations.AfterClass;
...
@@ -36,7 +36,7 @@ import org.testng.annotations.AfterClass;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.Test
;
import
org.testng.annotations.Test
;
@Test
(
enabled
=
false
)
@Test
public
class
StormAtlasHookIT
{
public
class
StormAtlasHookIT
{
public
static
final
Logger
LOG
=
LoggerFactory
.
getLogger
(
StormAtlasHookIT
.
class
);
public
static
final
Logger
LOG
=
LoggerFactory
.
getLogger
(
StormAtlasHookIT
.
class
);
...
@@ -70,8 +70,7 @@ public class StormAtlasHookIT {
...
@@ -70,8 +70,7 @@ public class StormAtlasHookIT {
atlasClient
=
null
;
atlasClient
=
null
;
}
}
//TODO: Fix failing test
@Test
@Test
(
enabled
=
false
)
public
void
testAddEntities
()
throws
Exception
{
public
void
testAddEntities
()
throws
Exception
{
StormTopology
stormTopology
=
StormTestUtil
.
createTestTopology
();
StormTopology
stormTopology
=
StormTestUtil
.
createTestTopology
();
StormTestUtil
.
submitTopology
(
stormCluster
,
TOPOLOGY_NAME
,
stormTopology
);
StormTestUtil
.
submitTopology
(
stormCluster
,
TOPOLOGY_NAME
,
stormTopology
);
...
...
This diff is collapsed.
Click to expand it.
notification/src/main/java/org/apache/atlas/hook/FailedMessagesLogger.java
View file @
243a4321
...
@@ -74,16 +74,18 @@ public class FailedMessagesLogger {
...
@@ -74,16 +74,18 @@ public class FailedMessagesLogger {
*/
*/
private
String
getRootLoggerDirectory
()
{
private
String
getRootLoggerDirectory
()
{
String
rootLoggerDirectory
=
null
;
String
rootLoggerDirectory
=
null
;
org
.
apache
.
log4j
.
Logger
rootLogger
=
org
.
apache
.
log4j
.
Logger
.
getRootLogger
();
Logger
rootLogger
=
Logger
.
getRootLogger
();
Enumeration
allAppenders
=
rootLogger
.
getAllAppenders
();
Enumeration
allAppenders
=
rootLogger
.
getAllAppenders
();
if
(
allAppenders
!=
null
)
{
if
(
allAppenders
!=
null
)
{
while
(
allAppenders
.
hasMoreElements
())
{
while
(
allAppenders
.
hasMoreElements
())
{
Appender
appender
=
(
Appender
)
allAppenders
.
nextElement
();
Appender
appender
=
(
Appender
)
allAppenders
.
nextElement
();
if
(
appender
instanceof
FileAppender
)
{
if
(
appender
instanceof
FileAppender
)
{
FileAppender
fileAppender
=
(
FileAppender
)
appender
;
FileAppender
fileAppender
=
(
FileAppender
)
appender
;
String
rootLoggerFile
=
fileAppender
.
getFile
();
String
rootLoggerFile
=
fileAppender
.
getFile
();
rootLoggerDirectory
=
new
File
(
rootLoggerFile
).
getParent
();
rootLoggerDirectory
=
rootLoggerFile
!=
null
?
new
File
(
rootLoggerFile
).
getParent
()
:
null
;
break
;
break
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
pom.xml
View file @
243a4321
...
@@ -1902,6 +1902,8 @@
...
@@ -1902,6 +1902,8 @@
<systemProperties>
<systemProperties>
<user.dir>
${project.basedir}
</user.dir>
<user.dir>
${project.basedir}
</user.dir>
<atlas.data>
${project.build.directory}/data
</atlas.data>
<atlas.data>
${project.build.directory}/data
</atlas.data>
<atlas.log.dir>
${project.build.directory}/logs
</atlas.log.dir>
<atlas.log.file>
application.log
</atlas.log.file>
<log4j.configuration>
atlas-log4j.xml
</log4j.configuration>
<log4j.configuration>
atlas-log4j.xml
</log4j.configuration>
<embedded.solr.directory>
${project.basedir}/target
</embedded.solr.directory>
<embedded.solr.directory>
${project.basedir}/target
</embedded.solr.directory>
</systemProperties>
</systemProperties>
...
@@ -1932,6 +1934,8 @@
...
@@ -1932,6 +1934,8 @@
<systemPropertyVariables>
<systemPropertyVariables>
<projectBaseDir>
${projectBaseDir}
</projectBaseDir>
<projectBaseDir>
${projectBaseDir}
</projectBaseDir>
<atlas.data>
${project.build.directory}/data
</atlas.data>
<atlas.data>
${project.build.directory}/data
</atlas.data>
<atlas.log.dir>
${project.build.directory}/logs
</atlas.log.dir>
<atlas.log.file>
application.log
</atlas.log.file>
<log4j.configuration>
atlas-log4j.xml
</log4j.configuration>
<log4j.configuration>
atlas-log4j.xml
</log4j.configuration>
<embedded.solr.directory>
${project.basedir}/target
</embedded.solr.directory>
<embedded.solr.directory>
${project.basedir}/target
</embedded.solr.directory>
</systemPropertyVariables>
</systemPropertyVariables>
...
...
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