crowbar/barclamp-crowbar — pull request #614 by cloudedge (2013-07-18 21:13:12+00:00)
Title: Fix barclamp import for testing.  More views and admin node create in BDD [1/2]

This pull is a setup for building good rspec tests of deployments

Also, bdd has to add admin nodes for role discovery to work

BDD/crowbar.erl | 26 +++++++++----
BDD/dev.erl | 9 ++++-
BDD/features/jig.feature | 14 ++++++-
BDD/features/node.feature | 14 ++++++-
BDD/features/role.feature | 20 +++++++++-
BDD/json.erl | 4 ++
BDD/node.erl | 4 +-
.../app/controllers/barclamps_controller.rb | 15 +++++---
.../app/controllers/jigs_controller.rb | 25 +++++++++---
crowbar_framework/app/models/barclamp.rb | 11 ++++--
.../app/views/barclamps/show.html.haml | 3 ++
crowbar_framework/app/views/jigs/index.html.haml | 2 +-
crowbar_framework/app/views/jigs/show.html.haml | 3 ++
crowbar_framework/app/views/nodes/index.html.haml | 5 ++-
crowbar_framework/app/views/nodes/show.html.haml | 6 ++-
crowbar_framework/app/views/roles/index.html.haml | 33 +++++++++++-----
crowbar_framework/config/locales/crowbar/en.yml | 10 +++++
crowbar_framework/spec/models/jig_spec.rb | 8 ++--
crowbar_framework/spec/models/node_role_spec | 40 ++++++++++++++++++++
.../shared_contexts/base_deployement_nodes.rb | 7 ++--
crowbar_framework/test/unit/barclamp_model_test.rb | 2 +-
doc/devguide/testing/bdd/internals/rest.md | 14 +++++++
22 files changed, 222 insertions(+), 53 deletions(-)

Crowbar-Pull-ID: d21fe52a613b7e9437962ddf30d8ed79e5927d85

Crowbar-Release: development