crowbar/barclamp-crowbar — pull request #666 by cloudedge (2013-08-26 03:37:53+00:00)
Title: WIP Attribute table population to read discovered Node information [1/2]

put back (in an improved way) the node.attrib_XXX infrastructure in phases.

Overall, this is a much much simpler approch than before. Attributes are READ-ONLY
They simply pull data from the node.discovery information. That information is
managed mainly by the jigs (but users could push data into it too because we have to be
able to do that for testing).

This first phase updates the attrib model and includes the test barclamp mapping.
Specifically, the UI Attrib list & show and API list & show are working. That required
that the API could create and delete attribs too (for BDD to work).

Tests demonstrate that the UI and API for the table work but do not check the
actual reading of attributes from node.discovery. That will be next.

I also expect to be able to add to node.discovery data and then pull that data back out.
I'm working towards that (and will have matching tests).

BDD/attrib.erl | 101 ++++----------------
BDD/bdd_restrat.erl | 2 +-
BDD/deployment.erl | 21 ++--
BDD/features/attrib.feature | 36 +++++++
BDD/features/deployment.feature | 36 ++++++-
.../app/controllers/attribs_controller.rb | 48 +++++-----
crowbar_framework/app/models/attrib.rb | 37 +++++--
crowbar_framework/app/models/node.rb | 8 +-
.../app/views/attribs/index.html.haml | 14 +++
crowbar_framework/app/views/attribs/show.html.haml | 3 +
.../app/views/deployments/show.html.haml | 3 +-
.../app/views/snapshots/show.html.haml | 3 +-
crowbar_framework/config/locales/crowbar/en.yml | 6 ++
crowbar_framework/config/routes.rb | 3 +
.../db/migrate/20120731225600_create_attribs.rb | 5 +-
15 files changed, 190 insertions(+), 136 deletions(-)

Crowbar-Pull-ID: a035e98056469f35dacd39a8f186f456432e2019

Crowbar-Release: development