[
https://issues.apache.org/jira/browse/AMBARI-13296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14941471#comment-14941471
]
Hudson commented on AMBARI-13296:
---------------------------------
FAILURE: Integrated in Ambari-branch-2.1 #632 (See
[https://builds.apache.org/job/Ambari-branch-2.1/632/])
AMBARI-13296. Credential Resource API should return an empty list rather
(rlevas:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=3596320c14f339b204f183b609780dd078ca1d2d])
*
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/CredentialResourceProviderTest.java
*
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/CredentialResourceProvider.java
> Credential Resource API should return an empty list rather than a 404 error
> ---------------------------------------------------------------------------
>
> Key: AMBARI-13296
> URL: https://issues.apache.org/jira/browse/AMBARI-13296
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.1.3
> Reporter: Robert Levas
> Assignee: Robert Levas
> Priority: Minor
> Fix For: 2.1.3
>
> Attachments: AMBARI-13296_branch-2.1_01.patch,
> AMBARI-13296_trunk_01.patch
>
>
> When no credentials resources are found when listing credential resources via
> the Credential Resource API, an empty list should be returned rather than a
> 404 error.
> For example:
> {code:title=GET /api/v1/clusters/c1/credentials}
> {
> "href": "http://host:port/api/v1/clusters/c1/credentials",
> "items": []
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)