crowbar/barclamp-crowbar — pull request #341 by cloudedge (2013-01-13 17:32:09+00:00)
Title: Node Attributes can store data (incremental), doc migraiton & BDD improvements [1/1]

I help this pull request to reduce merge headaches from others (user & network)
so it's really THREE pulls combined.

============================================
Pull 1: Node Attributes partial work
============================================

I'm working on allowing you to store data on node attributes. This
will be updated in the next pull because of design dicusssions during
the week. But it's solid incremental progress.

There are tests for everything :)

==============================================
Pull 2: Doc Moves
==============================================

As described on the list, I'm moving the documentation to [root]/doc for
all of the barclamps and also moving general docs to the Crowbar repo.
This will make it much easier to find and maintain docs!

I'm making the changes in steps. Expect to see more pulls after this.

VICTOR...I need your help on the installer so that the Crowbar repo docs
are added to /opt/dell/doc.

WARNING: It looks like a lot of files are changed, but most are just deleted.

================================================
Pull 3: BDD enhancements
================================================

I'm making progress on BDD cleanups that make it safer and faster to
debug tests. This pull has a lot of small cleansups.

NOTE: A lot of the changes are very small changes to debug messages.

==================
FINAL COMMENT
==================

There are test failures for the user & network areas. I'm leaving
these for Chris and Dave to review and fix.

crowbar.yml | 6 +-
crowbar_framework/BDD/attrib.erl | 25 ++-
crowbar_framework/BDD/bdd.erl | 67 +++----
crowbar_framework/BDD/bdd_print.erl | 73 ++++++++
crowbar_framework/BDD/bdd_restrat.erl | 140 ++++++++++-----
crowbar_framework/BDD/bdd_utils.erl | 93 ++++++----
crowbar_framework/BDD/crowbar.config | 2 +
crowbar_framework/BDD/crowbar.erl | 10 +-
crowbar_framework/BDD/crowbar_rest.erl | 36 ++--
crowbar_framework/BDD/dashboard.erl | 2 +-
crowbar_framework/BDD/default.config | 1 +
crowbar_framework/BDD/dev.erl | 2 +-
crowbar_framework/BDD/devtool.config | 12 ++
crowbar_framework/BDD/eurl.erl | 37 ++--
crowbar_framework/BDD/features/attrib.feature | 8 +-
.../BDD/features/authenticate.feature | 2 +
crowbar_framework/BDD/features/dashboard.feature | 4 +-
.../BDD/features/documentation.feature | 2 +-
crowbar_framework/BDD/features/groups.feature | 26 +--
crowbar_framework/BDD/features/node.feature | 37 ++--
crowbar_framework/BDD/groups.erl | 45 ++---
crowbar_framework/BDD/json.erl | 21 ++-
crowbar_framework/BDD/linux_run.sh | 4 +-
crowbar_framework/BDD/node.erl | 125 +++++++------
crowbar_framework/BDD/node_attrib.erl | 59 ++++++
crowbar_framework/BDD/nodes.erl | 33 +---
crowbar_framework/BDD/users.erl | 68 +++----
.../app/controllers/crowbar_controller.rb | 22 ++-
.../app/controllers/groups_controller.rb | 4 +-
crowbar_framework/app/models/attrib.rb | 20 ++-
crowbar_framework/app/models/barclamp.rb | 32 ++++
crowbar_framework/app/models/node.rb | 29 +--
crowbar_framework/app/models/node_attrib.rb | 26 +--
crowbar_framework/barclamp_model/README.txt | 26 ---
.../barclamp_model/bin/crowbar_==BC-MODEL== | 21 ---
.../chef/cookbooks/==BC-MODEL==/README.me | 26 ---
.../cookbooks/==BC-MODEL==/attributes/default.rb | 22 ---
.../definitions/==BC-MODEL==_service.rb | 17 --
.../chef/cookbooks/==BC-MODEL==/metadata.rb | 8 -
.../chef/cookbooks/==BC-MODEL==/recipes/api.rb | 12 --
.../chef/cookbooks/==BC-MODEL==/recipes/common.rb | 25 ---
.../chef/cookbooks/==BC-MODEL==/recipes/monitor.rb | 42 -----
.../chef/cookbooks/==BC-MODEL==/recipes/setup.rb | 17 --
.../templates/default/==BC-MODEL==.conf.erb | 10 --
.../templates/default/==BC-MODEL==_nrpe.cfg.erb | 9 -
.../crowbar/bc-template-==BC-MODEL==.json | 29 ---
.../crowbar/bc-template-==BC-MODEL==.schema | 81 ---------
.../chef/roles/==BC-MODEL==-server.rb | 9 -
crowbar_framework/barclamp_model/crowbar.yml | 157 ----------------
.../app/controllers/==BC-MODEL==_controller.rb | 30 ----
.../app/models/==BC-MODEL==_service.rb | 49 -----
.../==BC-MODEL==/_edit_attributes.html.haml | 10 --
.../==BC-MODEL==/_edit_deployment.html.haml | 12 --
.../config/locales/==BC-MODEL==/en.yml | 28 ---
...YYYMMDDHHMMSS00_barclamp_import_==BC-MODEL==.rb | 24 ---
.../crowbar_framework/doc/==BC-MODEL==.yml | 18 --
.../default/==BC-MODEL==/barclamps/==BC-MODEL==.md | 3 -
.../doc/default/==BC-MODEL==/licenses/license.md | 5 -
.../db/migrate/20120730227000_create_attribs.rb | 2 +
.../migrate/20120731225600_create_node_attribs.rb | 1 -
.../doc/default/crowbar/devguide/api.md | 109 ------------
.../doc/default/crowbar/devguide/api/#tempate.md | 28 ---
.../doc/default/crowbar/devguide/api/attrib.md | 124 -------------
.../doc/default/crowbar/devguide/api/barclamp.md | 44 -----
.../doc/default/crowbar/devguide/api/cmdb.md | 130 --------------
.../doc/default/crowbar/devguide/api/group.md | 187 --------------------
.../doc/default/crowbar/devguide/api/node.md | 144 ---------------
.../doc/default/crowbar/devguide/api/proposal.md | 29 ---
.../doc/default/crowbar/devguide/api/status.md | 42 -----
.../doc/default/crowbar/devguide/barclamps.md | 123 -------------
.../crowbar/devguide/barclamps/create-stub.md | 71 --------
.../crowbar/devguide/barclamps/makingbarclamps.md | 119 -------------
.../default/crowbar/devguide/barclamps/metadata.md | 26 ---
.../default/crowbar/devguide/browser-support.md | 143 ---------------
.../doc/default/crowbar/devguide/building.md | 4 -
.../doc/default/crowbar/devguide/devtool.md | 19 --
.../doc/default/crowbar/devguide/testing.md | 25 ---
.../doc/default/crowbar/devguide/testing/bdd.md | 94 ----------
.../default/crowbar/devguide/testing/bdd/dsl.md | 55 ------
.../crowbar/devguide/testing/bdd/internals.md | 53 ------
.../devguide/testing/bdd/internals/config.md | 62 -------
.../crowbar/devguide/testing/bdd/internals/json.md | 32 ----
.../default/crowbar/devguide/testing/bdd/steps.md | 159 -----------------
.../crowbar/devguide/testing/bdd/steps_rest.md | 150 ----------------
.../default/crowbar/devguide/testing/chefspec.md | 14 --
.../default/crowbar/devguide/testing/devtool.md | 21 ---
.../doc/default/crowbar/devguide/testing/rspec.md | 15 --
.../doc/default/crowbar/devguide/testing/units.md | 17 --
.../doc/default/crowbar/devguide/ui.md | 12 --
.../default/crowbar/devguide/ui/documentation.md | 101 -----------
.../default/crowbar/devguide/ui/localization.md | 21 ---
.../doc/default/crowbar/devguide/ui/navigation.md | 35 ----
crowbar_framework/doc/default/crowbar/licenses.md | 15 --
.../doc/default/crowbar/licenses/crowbar.md | 14 --
.../default/crowbar/licenses/crowbar/licenses.md | 12 --
crowbar_framework/test/unit/attrib_model_test.rb | 8 +-
.../test/unit/barclamp_attrib_model_test.rb | 136 ++++++++++++++
.../test/unit/node_attrib_model_test.rb | 19 +-
crowbar_framework/test/unit/node_model_test.rb | 9 +-
doc/licenses.md | 15 ++
doc/licenses/crowbar.md | 14 ++
doc/licenses/crowbar/licenses.md | 12 ++
102 files changed, 860 insertions(+), 3368 deletions(-)

Crowbar-Pull-ID: f1c3917ca2626958799ab6f2f922cd225d9ec1ec

Crowbar-Release: development