dellcloudedge/barclamp-crowbar — pull request #271 by cloudedge (2012-11-16 14:39:46+00:00)
Title: Attribute model w/ tests and docs.  BDD results reporting [1/1]

The core of this work is to bring in the Attribute model. This model is needed
by the CMDB system and essential to further progress.

I also cleaned up the results reporting on BDD so there is a roll-up of all tests
in a consistent manner. This will allow us to track test performance more
easily than just watching the screen output.

I added bdd:failed(). so that you can re-run just the failed bdd:test() output.

Also, added tests and fixed the security on docs (there should not be any).

bin/dev_mode.sh | 1 +
crowbar_framework/BDD/attributes.erl | 88 ++++++++++++++
crowbar_framework/BDD/authenticate.erl | 6 +
crowbar_framework/BDD/bdd.erl | 77 ++++++++++---
crowbar_framework/BDD/bdd_utils.erl | 13 ++-
crowbar_framework/BDD/cmdbs.erl | 2 +-
crowbar_framework/BDD/features/attributes.feature | 27 +++++
.../BDD/features/authenticate.feature | 21 +++-
crowbar_framework/BDD/features/cmdbs.feature | 2 +-
.../app/controllers/crowbar_controller.rb | 33 +++++-
.../app/controllers/docs_controller.rb | 2 +-
crowbar_framework/app/models/attribute.rb | 24 ++++
crowbar_framework/app/models/cmdb.rb | 1 +
crowbar_framework/app/models/cmdb_map.rb | 11 +-
crowbar_framework/config/locales/crowbar/en.yml | 7 -
crowbar_framework/config/locales/en.yml | 11 ++
.../db/migrate/20120725023017_create_cmdb_maps.rb | 15 ++-
.../db/migrate/20120730225300_create_cmdbs.rb | 6 +-
.../db/migrate/20120730227000_create_attributes.rb | 29 +++++
.../db/migrate/20120730230520_create_cmdb_runs.rb | 6 +-
.../doc/default/crowbar/devguide/api/attribute.md | 122 ++++++++++++++++++++
.../doc/default/crowbar/devguide/api/cmdb.md | 7 +-
.../doc/default/crowbar/devguide/devtool.md | 18 +++-
.../doc/default/crowbar/devguide/testing/bdd.md | 22 ++--
.../spec/models/proposal_queue_spec.rb | 2 +-
.../test/unit/attribute_model_test.rb | 60 ++++++++++
crowbar_framework/test/unit/barclamp_model_test.rb | 83 +++++++++-----
crowbar_framework/test/unit/cmdb_map_model_test.rb | 49 ++++++++
crowbar_framework/test/unit/cmdb_model_test.rb | 3 +-
crowbar_framework/test/unit/group_model_test.rb | 14 +-
30 files changed, 662 insertions(+), 100 deletions(-)

Crowbar-Pull-ID: dbc39008df172634dbb170239b23710e8c7fd0ea

Crowbar-Release: development