dellcloudedge/barclamp-crowbar — pull request #204 by cloudedge (2012-09-24 05:41:37+00:00)
Title: Groups-Nodes REST API working with BDD test coverage and Docs [1/1]

This pull completes the work for the REST API part of the
nodes-groups functionality. It passes ALL BDD and unit tests.

Documentation has also been updated.

I have made a lot of progress on BDD patterns for this because
it was the first time we really had to test REST in BDD.

The most significant change was the addition of the "Finally"
step for cleanup actions within a scenario.

I have also done some work to standardize the API responses so
that they are converging towards a more consistent pattern.

crowbar_framework/BDD/bdd.erl | 35 ++++---
crowbar_framework/BDD/bdd_catchall.erl | 10 +-
crowbar_framework/BDD/bdd_utils.erl | 6 +-
crowbar_framework/BDD/crowbar.erl | 40 ++++++-
crowbar_framework/BDD/default.config | 5 +-
crowbar_framework/BDD/eurl.erl | 13 ++-
crowbar_framework/BDD/features/groups.feature | 37 ++++++-
crowbar_framework/BDD/groups.erl | 84 +++++++++++++-
crowbar_framework/BDD/nodes.erl | 4 +-
.../app/controllers/barclamp_controller.rb | 6 -
.../app/controllers/groups_controller.rb | 83 ++++----------
crowbar_framework/app/models/doc.rb | 2 +-
crowbar_framework/app/views/nodes/index.html.haml | 116 ++++++++++----------
.../crowbar_framework/doc/==BC-MODEL==.yml | 21 +++-
.../default/==BC-MODEL==/barclamps/==BC-MODEL==.md | 3 +
.../doc/default/==BC-MODEL==/license.md | 5 -
.../doc/default/==BC-MODEL==/licenses/license.md | 5 +
crowbar_framework/config/locales/crowbar/en.yml | 1 +
crowbar_framework/config/routes.rb | 14 +-
.../doc/default/crowbar/devguide/api/group.md | 99 +++++++++--------
.../doc/default/crowbar/devguide/testing/bdd.md | 32 +++++-
.../doc/default/crowbar/devguide/testing/units.md | 1 +
22 files changed, 394 insertions(+), 228 deletions(-)