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
c3bf72cd
Commit
c3bf72cd
authored
8 years ago
by
Shwetha GS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1273 Test testOnChangeRefresh in DefaultMetadataServiceTest is failing…
ATLAS-1273 Test testOnChangeRefresh in DefaultMetadataServiceTest is failing (ayubkhan via shwethags)
parent
def9e385
master
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
release-log.txt
release-log.txt
+1
-0
DefaultMetadataServiceTest.java
.../org/apache/atlas/service/DefaultMetadataServiceTest.java
+8
-2
No files found.
release-log.txt
View file @
c3bf72cd
...
...
@@ -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)
ALL CHANGES:
ATLAS-1273 Test testOnChangeRefresh in DefaultMetadataServiceTest is failing (ayubkhan via shwethags)
Atlas web server allows user to browse webapp directory (vrathor-hw via shwethags)
ATLAS-1241 New Instance APIs and POJOs (sumasai)
ATLAS-1259 Fix Test and compilation failure caused bt ATLAS-1233 changes (apoorvnaik via sumasai)
...
...
This diff is collapsed.
Click to expand it.
repository/src/test/java/org/apache/atlas/service/DefaultMetadataServiceTest.java
View file @
c3bf72cd
...
...
@@ -77,6 +77,7 @@ import java.util.Collection;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Collections
;
import
static
org
.
apache
.
atlas
.
TestUtils
.
COLUMNS_ATTR_NAME
;
import
static
org
.
apache
.
atlas
.
TestUtils
.
COLUMN_TYPE
;
...
...
@@ -1138,11 +1139,16 @@ public class DefaultMetadataServiceTest {
@Test
public
void
testOnChangeRefresh
()
{
try
{
List
<
String
>
beforeChangeTypeNames
=
metadataService
.
getTypeNames
(
new
HashMap
<
TypeCache
.
TYPE_FILTER
,
String
>());
List
<
String
>
beforeChangeTypeNames
=
new
ArrayList
<>();
beforeChangeTypeNames
.
addAll
(
metadataService
.
getTypeNames
(
new
HashMap
<
TypeCache
.
TYPE_FILTER
,
String
>()));
((
DefaultMetadataService
)
metadataService
).
onChange
(
new
ChangedTypeDefs
());
List
<
String
>
afterChangeTypeNames
=
metadataService
.
getTypeNames
(
new
HashMap
<
TypeCache
.
TYPE_FILTER
,
String
>());
List
<
String
>
afterChangeTypeNames
=
new
ArrayList
<>();
afterChangeTypeNames
.
addAll
(
metadataService
.
getTypeNames
(
new
HashMap
<
TypeCache
.
TYPE_FILTER
,
String
>()));
Collections
.
sort
(
beforeChangeTypeNames
);
Collections
.
sort
(
afterChangeTypeNames
);
assertEquals
(
afterChangeTypeNames
,
beforeChangeTypeNames
);
}
catch
(
AtlasBaseException
e
)
{
fail
(
"Should've succeeded"
,
e
);
...
...
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