crowbar/barclamp-test — pull request #51 by cloudedge (2013-08-26 03:37:59+00:00)
Title: WIP Attribute table population to read discovered Node information [2/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).

.../app/models/barclamp_test/attrib.rb | 31 ++++++++++++++++++++
.../app/models/barclamp_test/attrib_test.rb | 22 --------------
.../migrate/20120801015105_barclamp_import_test.rb | 2 +-
.../migrate/20130825010101_create_test_attribs.rb | 26 ++++++++++++++++
4 files changed, 58 insertions(+), 23 deletions(-)

Crowbar-Pull-ID: a035e98056469f35dacd39a8f186f456432e2019

Crowbar-Release: development