crowbar/barclamp-provisioner — pull request #237 by cloudedge (2013-12-16 00:37:11+00:00)
Title: Allow users to set MAC address in DHCP database when node is created AND deal w/ issues created when we changed the attribute system [3/5]

This pull request started as a very simple, add another HINT into nodes for DHCP database.
This was added to the provisioner database and includes TESTs.

Creating those tests exposed a lot of work needed to make sure that BDD was testing
the full annealer including that background workers were running and the annealer
queue was flushed before we checked for changed states.

During that time, @VictorLowther changed the way that we deal with attributes. I
updated the code in the node.hint to also use the attribute system as designed.
This was a good improvement and more general.

The attribute system changes exposed inconsistencies in how we were dealing with
role.template and other places were we store data. I had to fix all those so
that the tests were passing.

TESTS ROCK.

crowbar.yml | 4 ++
.../barclamp_provisioner/application_controller.rb | 18 +++++++++
.../barclamp_provisioner/dhcps_controller.rb | 38 +++++++++++++++++++
.../models/barclamp_provisioner/dhcp_database.rb | 39 +++++++++++++++-----
.../barclamp_provisioner/config/routes.rb | 27 ++++++++++++++
doc/devguide/api/dhcp_database.md | 13 +++++++
6 files changed, 129 insertions(+), 10 deletions(-)

Crowbar-Pull-ID: 66d40a815aa402d4c2c9bee71df46a05ed8e8f57

Crowbar-Release: development