crowbar/barclamp-clouderamanager — pull request #101 by Paul-Webster (2013-04-08 20:29:39+00:00)
Title: Hadoop 2.3 dev - CM API [1/1]

Hadoop 2.3 dev . CM API
* Reworked the service.rb module (big delta).
* Changed the api_client entry points to static method declarations.
* Patched the service API calls through api_client.rb.
* Several low level fixes to service object handling (debugging the code with the API test harness).
* Added find_hosts(), find_services(), find_clusters() to api_client.rb so the API caller can
determine if resources exist before actually creating the resource.
* Extended the new test script called create_cluster.rb which deploys a hadoop cluster
from scratch. This is intended to be a code mock-up of the final chef scripting solution.
* Extended the api_test_harness.rb script to include the new API entry points that I added.

.../clouderamanager/libraries/api_client.rb | 79 +++++++++--
.../clouderamanager/libraries/clusters.rb | 9 +-
.../clouderamanager/libraries/resource.rb | 12 +-
.../clouderamanager/libraries/services.rb | 149 +++++++++++---------
chef/cookbooks/clouderamanager/libraries/types.rb | 2 +-
unittest/api_test_harness.rb | 87 +++++++++---
unittest/create_cluster.rb | 55 +++++---
7 files changed, 269 insertions(+), 124 deletions(-)

Crowbar-Pull-ID: ef6b86279e0618aa1b0de0bacc0d8270dbab1a1b

Crowbar-Release: fred