crowbar/barclamp-crowbar — pull request #361 by cloudedge (2013-01-26 18:24:26+00:00)
Title: Barclamp processes attributes from Jig Data based on registeration [1/1]

This work is the next step in the progression to the complete inbound data path.

We are able to have a barclamp accept data from the Jig and store NodeAttribs
based on attributes that have been registered.

While that code path was relatively minor....there were some major elements that
had to be touched.

The Jig -> JigEvent -> JigRun models have a lot of items in them that are not
working and had to be fixed before I could complete this work.

I will do further refactoring on a future pull. Namely, remove the Name/Description/Order
from JigEvent and JigRun because they are not needed. Also, the subclassing of JigEvent and
JigRun are not needed and will also be removed.

crowbar_framework/app/models/barclamp.rb | 49 +++++++++-------
crowbar_framework/app/models/barclamp_attrib.rb | 2 +
.../app/models/crowbar/barclamp_crowbar.rb | 27 +++++++++
crowbar_framework/app/models/jig.rb | 45 ++++++++++++++-
crowbar_framework/app/models/jig_event.rb | 42 ++------------
crowbar_framework/app/models/jig_run.rb | 57 +++----------------
crowbar_framework/app/models/jig_test.rb | 30 ----------
crowbar_framework/app/models/node.rb | 60 ++++++--------------
crowbar_framework/app/models/node_attrib.rb | 8 ++-
crowbar_framework/config/locales/crowbar/en.yml | 2 +
.../test/data/barclamp_node_data_test.json | 12 +++-
.../test/unit/barclamp_attrib_model_test.rb | 11 ++++
.../test/unit/barclamp_node_data_test.rb | 40 ++++++++++---
.../test/unit/jig_event_model_test.rb | 31 ----------
crowbar_framework/test/unit/jig_model_test.rb | 12 ++++
crowbar_framework/test/unit/jig_run_model_test.rb | 36 ------------
doc/devguide/ui/documentation/formatting.md | 8 +++
17 files changed, 210 insertions(+), 262 deletions(-)

Crowbar-Pull-ID: ae9326fb8beaa2f1ee6f907e721ca9a0e2e2a7ab

Crowbar-Release: development