ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk" <aonis...@hortonworks.com>
Subject Review Request 31192: Cannot apply new property set for slider-client through api
Date Thu, 19 Feb 2015 14:15:52 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/31192/
-----------------------------------------------------------

Review request for Ambari and Myroslav Papirkovskyy.


Bugs: AMBARI-9703
    https://issues.apache.org/jira/browse/AMBARI-9703


Repository: ambari


Description
-------

**STR**

  1. Post new property set <http://%s/api/v1/clusters/cl1/configurations>
    
        {"type":"slider-client","Config":{"cluster_name":"cl1"},"tag":"customTestVersion","properties":{"customKey":"customValue"},"properties_attributes":{"final":{"customKey":true}}}

  2. apply new property set <http://%s/api/v1/clusters/cl1>
    
        { "Clusters": {  "desired_configs" : {  "type": "slider-client",
          "tag": "customTestVersion"} }}

  3. check new property set applied <http://%s/api/v1/clusters/cl1?desired_configs>
 
**ER**  
set applied, teg customTestVersion  
**AR**
    
              "slider-client" : {
            "tag" : "version1",
            "user" : "admin",
            "version" : 1
          }

in response


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java 765167e


Diff: https://reviews.apache.org/r/31192/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message