dellcloudedge/barclamp-crowbar — pull request #150 by cloudedge (2012-08-18 22:55:23+00:00)
Title: Testing and documentation enhancements [1/5]

This requset is mostly focused on docs and testing

The docs system has a new feature where you can export a whole book!

I've added a lot to the docs (dev guide).

I've also gotten the BDD system to
1) do post & delete methods (in nodes)
2) have working setup/teardown methods

I made some tweaks to the models because we had been allowing two
names if the cases were different (BDD == bdd) which is bad.
The models now enforce case.

Also, the node name (FQDN) is forced to lowercase as per RFC.

crowbar_framework/BDD/Win7.bat | 1 +
crowbar_framework/BDD/bdd_webrat.erl | 4 +-
crowbar_framework/BDD/digest_auth.erl | 5 +
crowbar_framework/BDD/documentation.feature | 7 ++
crowbar_framework/BDD/nodes.erl | 36 ++++++--
crowbar_framework/BDD/nodes.feature | 7 +-
crowbar_framework/BDD/scaffolds.feature | 12 ++--
.../app/controllers/docs_controller.rb | 34 +++++++-
.../app/controllers/nodes_controller.rb | 6 ++
crowbar_framework/app/models/barclamp.rb | 2 +-
crowbar_framework/app/models/cmdb.rb | 2 +-
crowbar_framework/app/models/doc.rb | 2 +-
crowbar_framework/app/models/group.rb | 2 +-
crowbar_framework/app/models/nav.rb | 2 +-
crowbar_framework/app/models/node.rb | 5 +-
crowbar_framework/app/models/os.rb | 2 +-
crowbar_framework/app/models/user.rb | 2 +-
crowbar_framework/app/views/docs/topic.html.haml | 33 ++++---
crowbar_framework/config/locales/crowbar/en.yml | 8 +-
crowbar_framework/config/locales/en.yml | 1 +
crowbar_framework/config/routes.rb | 22 ++++-
crowbar_framework/doc/crowbar.yml | 9 ++-
.../doc/default/crowbar/book-developersguide.md | 6 +-
.../doc/default/crowbar/devguide/api.md | 77 +++++++++++++++++
.../doc/default/crowbar/devguide/api/barclamp.md | 1 +
.../doc/default/crowbar/devguide/api/node.md | 36 +++-----
.../doc/default/crowbar/devguide/api/status.md | 42 +++++++++
.../doc/default/crowbar/devguide/testing.md | 89 ++++++++++++++++++-
crowbar_framework/test/unit/node_model_test.rb | 8 ++
29 files changed, 370 insertions(+), 93 deletions(-)