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

Hadoop QA commented on AMBARI-14869:
------------------------------------

{color:green}+1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12785559/rb42976.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

    {color:green}+1 tests included{color}.  The patch appears to include 4 new 
or modified test files.

    {color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in 
ambari-server.

Test results: 
https://builds.apache.org/job/Ambari-trunk-test-patch/5140//testReport/
Console output: 
https://builds.apache.org/job/Ambari-trunk-test-patch/5140//console

This message is automatically generated.

> Rename Admin Setting API
> ------------------------
>
>                 Key: AMBARI-14869
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14869
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-server
>    Affects Versions: 2.4.0
>            Reporter: Ajit Kumar
>            Assignee: Ajit Kumar
>             Fix For: 2.4.0
>
>         Attachments: rb42976.patch
>
>
> Currently API endpoint is /admin-settings. Change it to /settings and all 
> modelling accordingly.
> POST
> {code}
> curl -u admin:admin  -H 'X-Requested-By: ambari' -X POST  
> http://SERVER-NAME:8080/api/v1/settings -d '{"Settings" : {
>         "content" : "{test_content : test_value}",
>         "name" : "motd",
>         "setting_type" : "ambari-server"
>       }}'
> Response:
> {
>   "resources" : [
>     {
>       "href" : "http://SERVER-NAME:8080/api/v1/settings/motd";,
>       "Settings" : {
>         "name" : "motd"
>       }
>     }
>   ]
> }
> {code}
> GET
> {code}
> curl -u admin:admin  -H 'X-Requested-By: ambari' -X GET  
> http://SERVER-NAME:8080/api/v1/settings/motd
> Response:
> {
>   "href" : "http://SERVER-NAME:8080/api/v1/settings/motd";,
>   "Settings" : {
>     "content" : "{test_content : test_value}",
>     "name" : "motd",
>     "setting_type" : "ambari-server",
>     "update_timestamp" : 1454102699484,
>     "updated_by" : "admin"
>   }
> }
> {code}
> PUT
> {code}
> curl -u admin:admin  -H 'X-Requested-By: ambari' -X PUT  
> http://SERVER-NAME:8080/api/v1/settings/motd -d '{"Settings" : {
>         "content" : "{test_content1 : test_value1}",
>         "setting_type" : "ambari-server"
>       }}'
> {code}
> LIST
> {code}
> curl -u admin:admin  -H 'X-Requested-By: ambari' -X GET  
> http://SERVER-NAME:8080/api/v1/settings
> Response:
> {
>   "href" : "http://SERVER-NAME:8080/api/v1/settings";,
>   "items" : [
>     {
>       "href" : "http://SERVER-NAME:8080/api/v1/settings/motd";,
>       "Settings" : {
>         "name" : "motd"
>       }
>     }
>   ]
> }
> {code}
> DELETE
> {code}
> curl -u admin:admin  -H 'X-Requested-By: ambari' -X DELETE  
> http://SERVER-NAME:8080/api/v1/settings/motd
> {code}



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

Reply via email to