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/01/21 18:18:40 UTC

[jira] [Commented] (AMBARI-14750) Provide CRUD API support for settings

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

Hadoop QA commented on AMBARI-14750:
------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12783471/rb42339.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 3 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:red}-1 core tests{color}.  The test build failed in ambari-server 

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

This message is automatically generated.

> Provide CRUD API support for settings
> -------------------------------------
>
>                 Key: AMBARI-14750
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14750
>             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: rb42339.patch
>
>
> Introduce a new API for *admin-settings*
> {code}
> api/v1/admin-settings
> {code}
> There can be several class of system wide admin settings - motd  etc. These are like configurations - basically named property bags. It doesn't need version support.
> *CRUD*
> * create a new entry
> {code}
> curl -u admin:admin -H "X-Requested-By: ambari" -X POST  http://localhost:8080/api/v1/admin-settings -d '{
>    "AdminSettings" : {
>     "content" : "{test_content1 : test_value1}",
>     "name" : "motd1",
>     "setting_type" : "ambari-server",
>     "updated_by" : "admin"
>   }
> }' 
> {code}
> * read any entry
> {code}
> curl -u admin:admin -H "X-Requested-By: ambari" -X GET  http://localhost:8080/api/v1/admin-settings/motd1
> Response:
> {
>   "href" : "http://localhost:8080/api/v1/admin-settings/motd1",
>   "AdminSettings" : {
>     "content" : "{test_content1 : test_value1}",
>     "name" : "motd1",
>     "setting_type" : "ambari-server",
>     "update_timestamp" : 1453315409437,
>     "updated_by" : "admin"
>   }
> }
> {code}
> * update - update an entry
> {code}
> curl -u admin:admin -H "X-Requested-By: ambari" -X PUT  http://localhost:8080/api/v1/admin-settings/motd -d '{
>    "AdminSettings" : {
>     "content" : "{test_content1 : test_value1}",
>     "setting_type" : "ambari-server",
>     "updated_by" : "admin"
>   }
> }' 
> {code}
> * delete an entry
> {code}
> curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE  http://localhost:8080/api/v1/admin-settings/motd
> {code}



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