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
4c7c911c
Commit
4c7c911c
authored
6 years ago
by
nixonrodrigues
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3083 :- Disable SSLAndKerberosTest & SSLTest etc Unitcases
Change-Id: I55f6ea20b0643821996721d3a7370a44729d5ea2
parent
fa2c3e2c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
NegativeSSLAndKerberosTest.java
...apache/atlas/web/security/NegativeSSLAndKerberosTest.java
+3
-3
SSLAndKerberosTest.java
...ava/org/apache/atlas/web/security/SSLAndKerberosTest.java
+4
-5
SSLTest.java
.../src/test/java/org/apache/atlas/web/security/SSLTest.java
+3
-3
No files found.
webapp/src/test/java/org/apache/atlas/web/security/NegativeSSLAndKerberosTest.java
View file @
4c7c911c
...
...
@@ -47,7 +47,7 @@ public class NegativeSSLAndKerberosTest extends BaseSSLAndKerberosTest {
private
String
originalConf
;
private
AtlasClient
dgiClient
;
@BeforeClass
//
@BeforeClass
public
void
setUp
()
throws
Exception
{
jksPath
=
new
Path
(
Files
.
createTempDirectory
(
"tempproviders"
).
toString
(),
"test.jks"
);
providerUrl
=
JavaKeyStoreProvider
.
SCHEME_NAME
+
"://file/"
+
jksPath
.
toUri
();
...
...
@@ -115,7 +115,7 @@ public class NegativeSSLAndKerberosTest extends BaseSSLAndKerberosTest {
secureEmbeddedServer
.
getServer
().
start
();
}
@AfterClass
//
@AfterClass
public
void
tearDown
()
throws
Exception
{
if
(
secureEmbeddedServer
!=
null
)
{
secureEmbeddedServer
.
getServer
().
stop
();
...
...
@@ -130,7 +130,7 @@ public class NegativeSSLAndKerberosTest extends BaseSSLAndKerberosTest {
}
}
@Test
(
enabled
=
false
)
@Test
(
enabled
=
false
)
public
void
testUnsecuredClient
()
throws
Exception
{
try
{
dgiClient
.
listTypes
();
...
...
This diff is collapsed.
Click to expand it.
webapp/src/test/java/org/apache/atlas/web/security/SSLAndKerberosTest.java
View file @
4c7c911c
...
...
@@ -29,7 +29,7 @@ import org.apache.hadoop.security.alias.JavaKeyStoreProvider;
import
org.testng.annotations.AfterClass
;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.Test
;
import
org.junit.Ignore
;
import
java.io.File
;
import
java.io.IOException
;
import
java.net.URL
;
...
...
@@ -59,7 +59,7 @@ public class SSLAndKerberosTest extends BaseSSLAndKerberosTest {
private
String
originalConf
;
private
String
originalHomeDir
;
@BeforeClass
//
@BeforeClass
public
void
setUp
()
throws
Exception
{
jksPath
=
new
Path
(
Files
.
createTempDirectory
(
"tempproviders"
).
toString
(),
"test.jks"
);
providerUrl
=
JavaKeyStoreProvider
.
SCHEME_NAME
+
"://file/"
+
jksPath
.
toUri
();
...
...
@@ -103,7 +103,6 @@ public class SSLAndKerberosTest extends BaseSSLAndKerberosTest {
+
"/users-credentials"
);
configuration
.
setProperty
(
"atlas.auth.policy.file"
,
persistDir
+
"/policy-store.txt"
);
TestUtils
.
writeConfiguration
(
configuration
,
persistDir
+
File
.
separator
+
"atlas-application.properties"
);
...
...
@@ -140,7 +139,7 @@ public class SSLAndKerberosTest extends BaseSSLAndKerberosTest {
secureEmbeddedServer
.
getServer
().
start
();
}
@AfterClass
//
@AfterClass
public
void
tearDown
()
throws
Exception
{
if
(
secureEmbeddedServer
!=
null
)
{
secureEmbeddedServer
.
getServer
().
stop
();
...
...
@@ -181,7 +180,7 @@ public class SSLAndKerberosTest extends BaseSSLAndKerberosTest {
return
lc
.
getSubject
();
}
@Test
@Test
(
enabled
=
false
)
public
void
testService
()
throws
Exception
{
dgiCLient
.
listTypes
();
}
...
...
This diff is collapsed.
Click to expand it.
webapp/src/test/java/org/apache/atlas/web/security/SSLTest.java
View file @
4c7c911c
...
...
@@ -68,7 +68,7 @@ public class SSLTest extends BaseSSLAndKerberosTest {
}
}
@BeforeClass
//
@BeforeClass
public
void
setUp
()
throws
Exception
{
jksPath
=
new
Path
(
Files
.
createTempDirectory
(
"tempproviders"
).
toString
(),
"test.jks"
);
providerUrl
=
JavaKeyStoreProvider
.
SCHEME_NAME
+
"://file/"
+
jksPath
.
toUri
();
...
...
@@ -95,7 +95,7 @@ public class SSLTest extends BaseSSLAndKerberosTest {
secureEmbeddedServer
.
getServer
().
start
();
}
@AfterClass
//
@AfterClass
public
void
tearDown
()
throws
Exception
{
if
(
secureEmbeddedServer
!=
null
)
{
secureEmbeddedServer
.
getServer
().
stop
();
...
...
@@ -142,7 +142,7 @@ public class SSLTest extends BaseSSLAndKerberosTest {
}
}
@Test
//
@Test
public
void
testService
()
throws
Exception
{
atlasClient
.
listTypes
();
}
...
...
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