crowbar/barclamp-test — pull request #26 by cloudedge (2013-02-24 22:10:51+00:00)
Title: EPIC rename of config and instance to deployment and snapshot CHECKPOINT [2/2]

This pull is HUGE (sorry)

There are THREE items in this pull (they are interconnected)

1. Introduction of the crowbar/v2/resource API pattern
This was needed to enable API work on deployment proposals

2. Renaming config & instance to be deployment and snapshot
Other items were also renamed Attrib -> AttribType, Role -> RoleType
In general, the concept of Instance is GONE.
All the tests have been updated and are passing (some BDD fails)

3. Cleanup/removal of old models, routes, and code
I have deleted dead code where possible
Models have been renamed from .rb to .old if they are no longer used

For the API pattern, I've continued to move towards:
[:barclamp]/v2/[:resource]/[:id] pattern
for status, it will be /framework/status/[:resource]
all the models are now wrapped

Some work remains on fixing BDD tests and joining new models into the API.
That work is the next pull, I wanted to expose these so people would be unblocked.

.../app/models/barclamp_test/attrib_test.rb | 42 +++++++++++++++
.../app/models/barclamp_test/barclamp.rb | 19 +++++++
.../app/models/test/attrib_instance_test.rb | 42 ---------------
crowbar_framework/app/models/test/barclamp.rb | 19 -------
.../test/unit/attrib_instance_test_model_test.rb | 52 -------------------
.../test/unit/attrib_test_model_test.rb | 54 ++++++++++++++++++++
6 files changed, 115 insertions(+), 113 deletions(-)

Crowbar-Pull-ID: e0aabc130001678192ae1d8b7a0a6688da09625f

Crowbar-Release: development