]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Make Stacks the owners of their own DB representation
authorZane Bitter <zbitter@redhat.com>
Tue, 3 Jul 2012 11:02:03 +0000 (13:02 +0200)
committerZane Bitter <zbitter@redhat.com>
Wed, 4 Jul 2012 15:20:39 +0000 (17:20 +0200)
commit5b4a403f51a4099bd8651c8e92101c4f3e5f7e6f
tree2688e3b1efc65cfb44158ad5ea13ac9847ed503d
parentce8f316fb5130641f948c177c4980bd8585f06b3
Make Stacks the owners of their own DB representation

Change the way that Stack objects are initialised, so that they know how to
load and store themselves in the database (they were already updating their
own data, but the actual creation was being done externally). This
consolidates a lot of existing Stack database creation code (in the
manager, nested stacks and unit tests) into one place.

Also, split the template and parameter handling out into separate classes,
and pass these through the constructor for easier testing.

Change-Id: I65bec175191713d0a4a6aa1d3d5442a1b64042f8
Signed-off-by: Zane Bitter <zbitter@redhat.com>
heat/engine/manager.py
heat/engine/parser.py
heat/engine/stack.py
heat/tests/functional/test_bin_heat.py
heat/tests/test_parser.py
heat/tests/test_resources.py
heat/tests/test_stacks.py
heat/tests/test_validate.py
heat/tests/test_waitcondition.py