murano/murano/tests/unit
Stan Lagun dcbf5e1899 Raise exception on call of method of destroyed object
In theory using destruction dependencies one can obtain a new
reference to an object that is about to be destroyed. In this
case any attempt to call a method on such object should result
in exception being raised. This guarantees that the nothing can
be done on the object after its .destroy method was executed.

Also because the HeatStack instance is owned by the CloudRegion
it is going to be destroyed prior to it. But CloudRegion needs
to call $stack.delete() in its .destroy method and this will cause
error. As a solution HeatStack made not to be owned by the
region and instead be an independent object with destruction
dependency on it which guarantees that it will be destroyed
after the CloudRegion.

Targets-blueprint: dependency-driven-resource-deallocation
Change-Id: I5650ea672d5f121be69669f27dd5f513fbdd5c44
2016-09-14 03:44:36 +00:00
..
api Use assertEqual() instead of assertDictEqual() 2016-07-27 15:59:29 +08:00
cmd TrivialFix: Remove cfg import unused 2016-08-29 09:35:14 +07:00
common Use assertEqual() instead of assertDictEqual() 2016-07-27 15:59:29 +08:00
core_library Remove partial clean-up in Instance.destroy 2014-09-04 15:29:43 +04:00
db Use assertIn, assertNotIn and assertIsNotNone 2016-08-01 11:00:55 +02:00
dsl Raise exception on call of method of destroyed object 2016-09-14 03:44:36 +00:00
engine Pass receiver to :GC.subscribeDestruction explicitly 2016-09-14 03:43:23 +00:00
packages Use assertIn, assertNotIn and assertIsNotNone 2016-08-01 11:00:55 +02:00
policy Fixes congress integration 2016-08-18 23:57:16 +00:00
__init__.py Move and rename functional tests 2014-07-29 22:29:27 +04:00
base.py make enforce_type=True in CONF.set_override 2016-01-13 23:28:26 +08:00
test_actions.py Add metadata to the result of action serialization 2016-06-25 15:19:13 +03:00
test_engine.py Support for static methods/properties 2016-02-18 22:23:19 +00:00
test_hacking.py Modified docstrings to comply with pep8 H405 style check 2016-05-10 20:18:23 +00:00
test_heat_stack.py Raise exception on call of method of destroyed object 2016-09-14 03:44:36 +00:00
utils.py Remove arguments "{}" and "[]" in function definitions 2015-12-19 01:10:30 +08:00