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
699498d7
Commit
699498d7
authored
Nov 21, 2016
by
svimal2106
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests SSLAndKerberosTest.testService and SSLTest.testService are failing
parent
1fa05264
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
0 deletions
+23
-0
release-log.txt
release-log.txt
+1
-0
TestUtils.java
webapp/src/test/java/org/apache/atlas/web/TestUtils.java
+5
-0
SSLAndKerberosTest.java
...ava/org/apache/atlas/web/security/SSLAndKerberosTest.java
+8
-0
SSLTest.java
.../src/test/java/org/apache/atlas/web/security/SSLTest.java
+9
-0
No files found.
release-log.txt
View file @
699498d7
...
@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al
...
@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ALL CHANGES:
ALL CHANGES:
ATLAS-1313 Tests SSLAndKerberosTest.testService and SSLTest.testService are failing (ayubkhan via svimal2106)
ATLAS-1116 Performance monitoring of backend methods in API requests (shwethags)
ATLAS-1116 Performance monitoring of backend methods in API requests (shwethags)
ATLAS-1310 attempt LDAP authentication only when enabled (mneethiraj)
ATLAS-1310 attempt LDAP authentication only when enabled (mneethiraj)
ATLAS-1309 updated HBase model with addition of column-family and column entity-defs (mneethiraj)
ATLAS-1309 updated HBase model with addition of column-family and column entity-defs (mneethiraj)
...
...
webapp/src/test/java/org/apache/atlas/web/TestUtils.java
View file @
699498d7
...
@@ -51,4 +51,9 @@ public class TestUtils {
...
@@ -51,4 +51,9 @@ public class TestUtils {
return
System
.
getProperty
(
"projectBaseDir"
)
+
String
.
format
(
"/webapp/target/atlas-webapp-%s"
,
return
System
.
getProperty
(
"projectBaseDir"
)
+
String
.
format
(
"/webapp/target/atlas-webapp-%s"
,
System
.
getProperty
(
"project.version"
));
System
.
getProperty
(
"project.version"
));
}
}
public
static
String
getTargetDirectory
()
{
return
System
.
getProperty
(
"projectBaseDir"
)
+
"/webapp/target"
;
}
}
}
webapp/src/test/java/org/apache/atlas/web/security/SSLAndKerberosTest.java
View file @
699498d7
...
@@ -57,6 +57,7 @@ public class SSLAndKerberosTest extends BaseSSLAndKerberosTest {
...
@@ -57,6 +57,7 @@ public class SSLAndKerberosTest extends BaseSSLAndKerberosTest {
private
TestSecureEmbeddedServer
secureEmbeddedServer
;
private
TestSecureEmbeddedServer
secureEmbeddedServer
;
private
Subject
subject
;
private
Subject
subject
;
private
String
originalConf
;
private
String
originalConf
;
private
String
originalHomeDir
;
@BeforeClass
@BeforeClass
public
void
setUp
()
throws
Exception
{
public
void
setUp
()
throws
Exception
{
...
@@ -118,6 +119,9 @@ public class SSLAndKerberosTest extends BaseSSLAndKerberosTest {
...
@@ -118,6 +119,9 @@ public class SSLAndKerberosTest extends BaseSSLAndKerberosTest {
originalConf
=
System
.
getProperty
(
"atlas.conf"
);
originalConf
=
System
.
getProperty
(
"atlas.conf"
);
System
.
setProperty
(
"atlas.conf"
,
persistDir
);
System
.
setProperty
(
"atlas.conf"
,
persistDir
);
originalHomeDir
=
System
.
getProperty
(
"atlas.home"
);
System
.
setProperty
(
"atlas.home"
,
TestUtils
.
getTargetDirectory
());
dgiCLient
=
proxyUser
.
doAs
(
new
PrivilegedExceptionAction
<
AtlasClient
>()
{
dgiCLient
=
proxyUser
.
doAs
(
new
PrivilegedExceptionAction
<
AtlasClient
>()
{
@Override
@Override
public
AtlasClient
run
()
throws
Exception
{
public
AtlasClient
run
()
throws
Exception
{
...
@@ -148,6 +152,10 @@ public class SSLAndKerberosTest extends BaseSSLAndKerberosTest {
...
@@ -148,6 +152,10 @@ public class SSLAndKerberosTest extends BaseSSLAndKerberosTest {
if
(
originalConf
!=
null
)
{
if
(
originalConf
!=
null
)
{
System
.
setProperty
(
"atlas.conf"
,
originalConf
);
System
.
setProperty
(
"atlas.conf"
,
originalConf
);
}
}
if
(
originalHomeDir
!=
null
){
System
.
setProperty
(
"atlas.home"
,
originalHomeDir
);
}
}
}
protected
Subject
loginTestUser
()
throws
LoginException
,
IOException
{
protected
Subject
loginTestUser
()
throws
LoginException
,
IOException
{
...
...
webapp/src/test/java/org/apache/atlas/web/security/SSLTest.java
View file @
699498d7
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
package
org
.
apache
.
atlas
.
web
.
security
;
package
org
.
apache
.
atlas
.
web
.
security
;
import
org.apache.atlas.AtlasClient
;
import
org.apache.atlas.AtlasClient
;
import
org.apache.atlas.web.TestUtils
;
import
org.apache.atlas.web.service.SecureEmbeddedServer
;
import
org.apache.atlas.web.service.SecureEmbeddedServer
;
import
org.apache.commons.configuration.PropertiesConfiguration
;
import
org.apache.commons.configuration.PropertiesConfiguration
;
import
org.apache.hadoop.conf.Configuration
;
import
org.apache.hadoop.conf.Configuration
;
...
@@ -46,6 +47,7 @@ public class SSLTest extends BaseSSLAndKerberosTest {
...
@@ -46,6 +47,7 @@ public class SSLTest extends BaseSSLAndKerberosTest {
private
String
providerUrl
;
private
String
providerUrl
;
private
TestSecureEmbeddedServer
secureEmbeddedServer
;
private
TestSecureEmbeddedServer
secureEmbeddedServer
;
private
String
originalConf
;
private
String
originalConf
;
private
String
originalHomeDir
;
class
TestSecureEmbeddedServer
extends
SecureEmbeddedServer
{
class
TestSecureEmbeddedServer
extends
SecureEmbeddedServer
{
...
@@ -79,6 +81,9 @@ public class SSLTest extends BaseSSLAndKerberosTest {
...
@@ -79,6 +81,9 @@ public class SSLTest extends BaseSSLAndKerberosTest {
originalConf
=
System
.
getProperty
(
"atlas.conf"
);
originalConf
=
System
.
getProperty
(
"atlas.conf"
);
System
.
setProperty
(
"atlas.conf"
,
persistDir
);
System
.
setProperty
(
"atlas.conf"
,
persistDir
);
originalHomeDir
=
System
.
getProperty
(
"atlas.home"
);
System
.
setProperty
(
"atlas.home"
,
TestUtils
.
getTargetDirectory
());
atlasClient
=
new
AtlasClient
(
configuration
,
new
String
[]{
DGI_URL
},
new
String
[]{
"admin"
,
"admin"
});
atlasClient
=
new
AtlasClient
(
configuration
,
new
String
[]{
DGI_URL
},
new
String
[]{
"admin"
,
"admin"
});
secureEmbeddedServer
=
new
TestSecureEmbeddedServer
(
21443
,
getWarPath
())
{
secureEmbeddedServer
=
new
TestSecureEmbeddedServer
(
21443
,
getWarPath
())
{
...
@@ -99,6 +104,10 @@ public class SSLTest extends BaseSSLAndKerberosTest {
...
@@ -99,6 +104,10 @@ public class SSLTest extends BaseSSLAndKerberosTest {
if
(
originalConf
!=
null
)
{
if
(
originalConf
!=
null
)
{
System
.
setProperty
(
"atlas.conf"
,
originalConf
);
System
.
setProperty
(
"atlas.conf"
,
originalConf
);
}
}
if
(
originalHomeDir
!=
null
){
System
.
setProperty
(
"atlas.home"
,
originalHomeDir
);
}
}
}
protected
void
setupCredentials
()
throws
Exception
{
protected
void
setupCredentials
()
throws
Exception
{
...
...
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