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
4e1ed9ae
Commit
4e1ed9ae
authored
7 years ago
by
Sarath Subramanian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2302: Fix test failures in AtlasClientTest - remove unused LocalSolrTest
parent
f87072f3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
113 deletions
+0
-113
LocalSolrTest.java
.../src/test/java/org/apache/atlas/runner/LocalSolrTest.java
+0
-46
LocalSolrTest.java
...ava/org/apache/atlas/repository/impexp/LocalSolrTest.java
+0
-67
No files found.
common/src/test/java/org/apache/atlas/runner/LocalSolrTest.java
deleted
100644 → 0
View file @
f87072f3
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org
.
apache
.
atlas
.
runner
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.testng.Assert
;
import
org.testng.annotations.AfterTest
;
import
org.testng.annotations.BeforeTest
;
import
org.testng.annotations.Test
;
@Test
public
class
LocalSolrTest
{
private
static
final
Logger
LOG
=
LoggerFactory
.
getLogger
(
LocalSolrTest
.
class
);
@BeforeTest
public
void
startLocalSolr
()
throws
Exception
{
LocalSolrRunner
.
start
();
}
@AfterTest
public
void
shutdownLocalSolr
()
throws
Exception
{
LocalSolrRunner
.
stop
();
}
@Test
public
void
testLocalSolrConnection
()
throws
Exception
{
Assert
.
assertTrue
(
1
==
1
);
}
}
This diff is collapsed.
Click to expand it.
repository/src/test/java/org/apache/atlas/repository/impexp/LocalSolrTest.java
deleted
100644 → 0
View file @
f87072f3
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org
.
apache
.
atlas
.
repository
.
impexp
;
import
org.apache.atlas.ApplicationProperties
;
import
org.apache.atlas.repository.graph.GraphBackedSearchIndexer
;
import
org.apache.atlas.runner.LocalSolrRunner
;
import
org.apache.atlas.type.AtlasTypeRegistry
;
import
org.apache.commons.configuration.Configuration
;
import
org.testng.annotations.AfterTest
;
import
org.testng.annotations.BeforeTest
;
import
org.testng.annotations.Test
;
import
org.testng.Assert
;
import
javax.inject.Inject
;
import
static
org
.
apache
.
atlas
.
graph
.
GraphSandboxUtil
.
useLocalSolr
;
public
class
LocalSolrTest
{
@Inject
AtlasTypeRegistry
typeRegistry
;
@BeforeTest
public
void
setUp
()
throws
Exception
{
if
(
useLocalSolr
())
{
try
{
LocalSolrRunner
.
start
();
Configuration
configuration
=
ApplicationProperties
.
get
();
configuration
.
setProperty
(
"atlas.graph.index.search.solr.zookeeper-url"
,
LocalSolrRunner
.
getZookeeperUrls
());
}
catch
(
Exception
e
)
{
//ignore
}
}
new
GraphBackedSearchIndexer
(
typeRegistry
);
}
@Test
public
void
testLocalSolr
()
{
String
zookeeperUrls
=
LocalSolrRunner
.
getZookeeperUrls
();
System
.
out
.
println
(
"Started Local Solr at: "
+
zookeeperUrls
);
Assert
.
assertNotNull
(
zookeeperUrls
);
}
@AfterTest
public
void
tearDown
()
throws
Exception
{
System
.
out
.
println
(
"Stopping Local Solr..."
);
LocalSolrRunner
.
stop
();
}
}
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