crowbar/barclamp-crowbar — pull request #665 by cloudedge (2013-08-23 21:04:14+00:00)
Title: Can create new deployments from API and UI [1/1]

Added the code AND TESTS to allow creating a new deployment (auto parent to system).

I removed the deployment.deployment_id field because I could not find any references to
it at all. It appears to be redundant with parent and parent is clearer.

Also, expanded the simulator to install more nodes and two deployments for testing.

This step was needed so that I could write annealer tests (that is my current objective)

Next: adding more deployment tests!

BDD/deployment.erl | 5 ++--
BDD/dev.config | 18 +++++++++-----
BDD/dev.erl | 20 +++++++++++++---
BDD/features/deployment.feature | 8 ++++++-
.../app/controllers/deployments_controller.rb | 5 ++--
crowbar_framework/app/models/deployment.rb | 25 +++++++++++++++-----
crowbar_framework/app/models/node.rb | 2 +-
.../app/views/deployments/index.html.haml | 9 ++++++-
.../config/initializers/crowbar_deployment.rb | 4 ----
crowbar_framework/config/locales/crowbar/en.yml | 8 ++++---
.../migrate/20120731225466_create_deployments.rb | 2 +-
11 files changed, 76 insertions(+), 30 deletions(-)

Crowbar-Pull-ID: 6e1ccf2914cdbe9f0638c4ee55121dfd57dd5311

Crowbar-Release: development