dellcloudedge/barclamp-crowbar — pull request #275 by cloudedge (2012-11-20 16:28:17+00:00)
Title: Barclamp model API code with tests and docs [1/1]

This pull adds a barclamp API (read, list only).

Some minor changes to BDD (documented) to make it faster to create
API tests using generic methods.

BDD add includes a way to substitite information into Steps.

crowbar_framework/BDD/attribute.erl | 88 +++++++++++++++++
crowbar_framework/BDD/attributes.erl | 88 -----------------
crowbar_framework/BDD/barclamp.erl | 61 ++++++++++++
crowbar_framework/BDD/bdd.erl | 26 +++---
crowbar_framework/BDD/bdd_restrat.erl | 28 ++++++
crowbar_framework/BDD/bdd_utils.erl | 46 ++++++++--
crowbar_framework/BDD/bdd_webrat.erl | 5 +
crowbar_framework/BDD/cmdb.erl | 103 ++++++++++++++++++++
crowbar_framework/BDD/cmdbs.erl | 103 --------------------
crowbar_framework/BDD/crowbar.erl | 14 +++-
crowbar_framework/BDD/crowbar_rest.erl | 20 +---
crowbar_framework/BDD/eurl.erl | 18 ++--
crowbar_framework/BDD/features/attribute.feature | 27 +++++
crowbar_framework/BDD/features/attributes.feature | 27 -----
crowbar_framework/BDD/features/barclamp.feature | 14 +++
crowbar_framework/BDD/features/barclamps.feature | 31 ------
crowbar_framework/BDD/features/cmdb.feature | 29 ++++++
crowbar_framework/BDD/features/cmdbs.feature | 29 ------
.../BDD/features/documentation.feature | 4 +
crowbar_framework/BDD/features/support.feature | 16 +++
.../app/controllers/crowbar_controller.rb | 30 ++++++
.../app/controllers/support_controller.rb | 9 ++
crowbar_framework/app/models/doc.rb | 2 +-
crowbar_framework/config/locales/en.yml | 3 +
crowbar_framework/config/routes.rb | 1 +
.../doc/default/crowbar/devguide/api/#tempate.md | 28 ++++++
.../doc/default/crowbar/devguide/api/barclamp.md | 36 +++++--
.../default/crowbar/devguide/testing/bdd/steps.md | 14 +++
.../default/crowbar/devguide/ui/documentation.md | 6 +
29 files changed, 571 insertions(+), 335 deletions(-)

Crowbar-Pull-ID: 874d531738b9c10b2fb807de259c5a603e49d8cc

Crowbar-Release: development