You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2016/02/03 16:46:39 UTC

[jira] [Commented] (AMBARI-14899) UI part of rename Admin Setting API

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

Hadoop QA commented on AMBARI-14899:
------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12786027/AMBARI-14899.patch
  against trunk revision .

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

    {color:red}-1 tests included{color}.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    {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-admin ambari-web.

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

This message is automatically generated.

> UI part of rename Admin Setting API
> -----------------------------------
>
>                 Key: AMBARI-14899
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14899
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.4.0
>            Reporter: Antonenko Alexander
>            Assignee: Antonenko Alexander
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-14899.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)