David Kantor created ATLAS-1539:
-----------------------------------
Summary: webapp tests fail when run from the webapp project
directory
Key: ATLAS-1539
URL: https://issues.apache.org/jira/browse/ATLAS-1539
Project: Atlas
Issue Type: Bug
Reporter: David Kantor
Assignee: David Kantor
Integration tests in webapp mostly fail when the tests are invoked from the
webapp project directory. The jetty container used by the tests is compromised
due to the error shown below, because the atlas-application.properties file in
the typesystem test jar has properties which assume the tests will always be
run from the top level e.g.
{noformat}
atlas.auth.policy.file=${sys:user.dir}/distro/src/conf/policy-store.txt
atlas.authentication.method.file.filename=${sys:user.dir}/distro/src/conf/users-credentials.properties
{noformat}
Here is the error which occurs within jetty:
{noformat}
2017-02-07 22:49:33,358 ERROR - [main:] ~ Error while reading user.properties
file,
filepath=C:\source\atlas\webapp/distro/src/conf/users-credentials.properties
(UserDao:74)
java.io.FileNotFoundException:
C:\source\atlas\webapp\distro\src\conf\users-credentials.properties (The system
cannot find the path specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at
org.apache.atlas.web.dao.UserDao.loadFileLoginsDetails(UserDao.java:67)
at org.apache.atlas.web.dao.UserDao.init(UserDao.java:53)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)