crowbar/barclamp-crowbar — pull request #406 by cloudedge (2013-02-26 07:07:57+00:00)
Title: Cleanup routes and fix node bdd [1/1]

This pull cleans up some of the remaining route changes
and fixes the broken Node BDD tests.

There are still some places we could use BDD coverage, but...

At this point, the basic pattern for the API is set. There may be some more tweaks to the
wrapper pattern.

CLI updates are next.

BDD/attrib.erl | 16 ++-
BDD/bdd.erl | 9 +-
BDD/bdd_restrat.erl | 33 +++--
BDD/bdd_utils.erl | 11 ++
BDD/crowbar.erl | 2 +
BDD/crowbar_rest.erl | 1 +
BDD/dashboard.erl | 2 +-
BDD/dev.config | 2 +-
BDD/dev.erl | 10 +-
BDD/features/crowbar_cli.feature | 1 +
BDD/features/group.feature | 65 ++++++++++
BDD/features/groups.feature | 63 ----------
BDD/features/node.feature | 63 +++++++---
BDD/group_cb.erl | 125 +++++++++++++++++++
BDD/groups.erl | 128 ++------------------
BDD/node.erl | 79 +++++-------
.../app/controllers/application_controller.rb | 11 ++
.../app/controllers/attribs_controller.rb | 45 ++++++-
.../app/controllers/groups_controller.rb | 82 +++++++------
.../app/controllers/nodes_controller.rb | 69 +++++------
crowbar_framework/app/models/attrib.rb | 2 +-
crowbar_framework/app/models/node.rb | 1 -
crowbar_framework/config/locales/en.yml | 2 +
crowbar_framework/config/routes.rb | 39 +++---
.../db/migrate/20120801190200_scaffold_nav.rb | 2 +-
crowbar_framework/lib/api_helper.rb | 6 +-
doc/devguide/model/crowbar_model.dia | Bin 3916 -> 4012 bytes
27 files changed, 502 insertions(+), 367 deletions(-)

Crowbar-Pull-ID: b301d11c1fc3a2195f0d0c17cb3988d33ead5590

Crowbar-Release: development