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
bbdeaee3
Commit
bbdeaee3
authored
7 years ago
by
Madhan Neethiraj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2363: DSL error on extraneous input (#2)
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
97e47d24
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
EntityDiscoveryJerseyResourceIT.java
...tlas/web/integration/EntityDiscoveryJerseyResourceIT.java
+2
-2
MetadataDiscoveryJerseyResourceIT.java
...as/web/integration/MetadataDiscoveryJerseyResourceIT.java
+1
-2
No files found.
webapp/src/test/java/org/apache/atlas/web/integration/EntityDiscoveryJerseyResourceIT.java
View file @
bbdeaee3
...
...
@@ -19,7 +19,7 @@
package
org
.
apache
.
atlas
.
web
.
integration
;
import
com.sun.jersey.core.util.MultivaluedMapImpl
;
import
org.apache.atlas.
exception.AtlasBas
eException
;
import
org.apache.atlas.
AtlasServic
eException
;
import
org.apache.atlas.model.discovery.AtlasSearchResult
;
import
org.apache.atlas.model.discovery.AtlasSearchResult.AtlasFullTextResult
;
import
org.apache.atlas.model.discovery.AtlasSearchResult.AtlasQueryType
;
...
...
@@ -110,7 +110,7 @@ public class EntityDiscoveryJerseyResourceIT extends BaseResourceIT {
assertEquals
(
searchResult
.
getEntities
().
size
(),
1
);
}
@Test
(
expectedExceptions
=
Atlas
Bas
eException
.
class
)
@Test
(
expectedExceptions
=
Atlas
Servic
eException
.
class
)
public
void
testSearchByDSLForUnknownType
()
throws
Exception
{
String
dslQuery
=
"from blah"
;
AtlasSearchResult
searchResult
=
atlasClientV2
.
dslSearch
(
dslQuery
);
...
...
This diff is collapsed.
Click to expand it.
webapp/src/test/java/org/apache/atlas/web/integration/MetadataDiscoveryJerseyResourceIT.java
View file @
bbdeaee3
...
...
@@ -25,7 +25,6 @@ import com.sun.jersey.api.client.ClientResponse;
import
com.sun.jersey.core.util.MultivaluedMapImpl
;
import
org.apache.atlas.AtlasClient
;
import
org.apache.atlas.AtlasServiceException
;
import
org.apache.atlas.exception.AtlasBaseException
;
import
org.apache.atlas.model.typedef.AtlasBaseTypeDef
;
import
org.apache.atlas.v1.model.instance.Id
;
import
org.apache.atlas.v1.model.instance.Referenceable
;
...
...
@@ -134,7 +133,7 @@ public class MetadataDiscoveryJerseyResourceIT extends BaseResourceIT {
}
}
@Test
(
expectedExceptions
=
Atlas
Bas
eException
.
class
)
@Test
(
expectedExceptions
=
Atlas
Servic
eException
.
class
)
public
void
testSearchByDSLForUnknownType
()
throws
Exception
{
String
dslQuery
=
"from blah"
;
MultivaluedMap
<
String
,
String
>
queryParams
=
new
MultivaluedMapImpl
();
...
...
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