deb-heat/heat
Steven Hardy 50361dd4ac Fix/refactor test_stack_update_existing_parameters
This test is supposed to prove that passing the "existing" flag to
an update_stack call merges existing parameters with any new ones
passed into the update, but atm it strangely starts with a stack
containing zero existing parameters, and uses some convoluted mocks
to prove that the new parameters are used.  So AFAICT it's not
really testing what is required and it's pretty hard to read.

Refactoring so we look at the environment passed into the Stack
constructor (mocked with mock) enables us to compare the before/
after parameters and ensure the existing and new ones are correctly
combined as expected.

Change-Id: I1178a5127d9fd94fc38cf6d80a88ca75054f2d57
2015-07-23 17:37:43 +01:00
..
api Merge "Add PhysicalResourceNameAmbiguity to exc mapping" 2015-07-15 21:17:51 +00:00
cloudinit Update the rest of the code to satisfy flake8 in a py34 env 2015-04-24 11:53:43 +05:30
cmd Support for encrypt/decrypt parameters in heat-manage 2015-06-05 12:06:59 -05:00
common Merge "Get heat.tests.test_stack* working in py34 env" 2015-07-22 04:50:55 +00:00
db Get heat.tests.test_stack* working in py34 env 2015-07-14 14:10:51 +05:30
engine Merge "Add HIDDEN status to RandomString sequence" 2015-07-23 10:10:13 +00:00
httpd Add apache2 support for heat API services 2015-06-17 08:08:51 -04:00
locale Imported Translations from Transifex 2015-07-13 06:03:31 +00:00
objects Add a new crypt method using cryptography 2015-07-07 10:06:47 +02:00
openstack Switch to oslo.service 2015-06-23 08:30:39 +02:00
rpc Add template-function-list 2015-07-10 09:39:39 -04:00
scaling Use ResourceDefinitionCore methods for lbutils 2015-07-15 15:37:55 +03:00
tests Fix/refactor test_stack_update_existing_parameters 2015-07-23 17:37:43 +01:00
__init__.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
version.py Make the first line of every file consistent. 2014-03-04 09:03:04 -06:00