[ 
https://issues.apache.org/jira/browse/SQOOP-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15070946#comment-15070946
 ] 

Hudson commented on SQOOP-2546:
-------------------------------

SUCCESS: Integrated in Sqoop2 #980 (See 
[https://builds.apache.org/job/Sqoop2/980/])
SQOOP-2546: Sqoop2: RESTiliency: Unify behavior on getting details on (jarcec: 
[https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=b1561866ed3e1f4b85299d27568351a50dffa3da])
* server/src/main/java/org/apache/sqoop/server/common/ServerError.java
* test/src/test/java/org/apache/sqoop/integration/server/rest/LinkRestTest.java
* 
test/src/test/java/org/apache/sqoop/integration/server/rest/ConnectorRestTest.java
* server/src/main/java/org/apache/sqoop/handler/LinkRequestHandler.java


> Sqoop2: RESTiliency: Unify behavior on getting details on non-existing 
> connector
> --------------------------------------------------------------------------------
>
>                 Key: SQOOP-2546
>                 URL: https://issues.apache.org/jira/browse/SQOOP-2546
>             Project: Sqoop
>          Issue Type: Sub-task
>            Reporter: Jarek Jarcec Cecho
>            Assignee: Colin Ma
>             Fix For: 1.99.7
>
>         Attachments: SQOOP-2546.001.patch
>
>
> Here is test code that is testing our behavior on non existing connector:
> {code}
>     new TestDescription("Get connector by non-existing ID", 
> "v1/connector/666", "GET", null, new Validator() {
>       @Override
>       void validate() throws Exception {
>         assertResponseCode(500);
>         
> assertServerException("org.apache.sqoop.error.code.CommonRepositoryError", 
> "COMMON_0057");
>       }}),
>     new TestDescription("Get connector by non-existing name", 
> "v1/connector/jarcecs-cool-connector", "GET", null, new Validator() {
>       @Override
>       void validate() throws Exception {
>         assertResponseCode(500);
>         assertServerException("org.apache.sqoop.server.common.ServerError", 
> "SERVER_0005");
>       }}),
> {code}
> Depending whether one asks for non-existing connector ID or non-existing 
> connector name, he gets different answer. That seems really weird for single 
> REST end point and I think that we should fix that.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to