crowbar/barclamp-network — pull request #252 by cloudedge (2013-12-16 00:37:09+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 [2/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.

.../barclamp_network/interfaces_controller.rb | 2 +-
.../app/models/barclamp_network/network.rb | 9 ++++++++-
.../app/models/barclamp_network/role.rb | 6 ++++--
.../app/models/barclamp_network/server.rb | 12 +++++++-----
4 files changed, 20 insertions(+), 9 deletions(-)

Crowbar-Pull-ID: 66d40a815aa402d4c2c9bee71df46a05ed8e8f57

Crowbar-Release: development