crowbar/barclamp-clouderamanager — pull request #104 by Paul-Webster (2013-04-10 16:27:43+00:00)
Title: Hadoop 2.3 - CM-API - Fred - Submitter: Paul Webster - Reviewer: Jim Clement [1/1]

Hadoop 2.3 - CM-API - Fred - Submitter: Paul Webster - Reviewer: Jim Clement
* Fixed an object serialization issue in ApiBaseObject. Objects with inherited
to_json_dict() methods were not being handled correctly (i.e. ApiRole objects
with bindings from ApiService objects).
* Corrected self.instance_of? call in the types.rb/ApiBaseObject _update() method.
* Added find_role() in api_client so the api user can determine if the role exists
before creating a role.
* Added find_role() and create_role() calls to the cluster deployment
emulation script (create_cluster.rb).

.../clouderamanager/libraries/api_client.rb | 17 ++++++++++-
chef/cookbooks/clouderamanager/libraries/roles.rb | 16 ++++------
chef/cookbooks/clouderamanager/libraries/types.rb | 31 +++++++++++++-------
unittest/api_test_harness.rb | 10 +++++-
unittest/create_cluster.rb | 17 ++++++++--
5 files changed, 64 insertions(+), 27 deletions(-)

Crowbar-Pull-ID: 797bb906d7b0c35a9c80690f51ba4a5747f301e4

Crowbar-Release: fred