Package: heat / 1:11.0.0-6

Metadata

Package Version Patches format
heat 1:11.0.0-6 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
remove broken rst.patch | (download)

doc/source/template_guide/hot_spec.rst | 10 0 + 10 - 0 !
1 file changed, 10 deletions(-)

 remove broken rst
 In hot_spec.rst, there's some lines that are FTBFS with the newer docutils.
 Since it doesn't seem that important, and it's best to keep the rest of the
 documentation, we're just removing the block.
package all files.patch | (download)

MANIFEST.in | 4 4 + 0 - 0 !
1 file changed, 4 insertions(+)

 package all files
Fix_errors_with_issubclass_in_Python_3.7.patch | (download)

heat/engine/template.py | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 fix errors with issubclass() in python 3.7
 The cfn Ref instrinsic function is implemented as a Python function
 rather than a class, so calling issubclass() on it fails in Python 3.7.
Unit_tests_Fix_mock errors_with_too_few_side_effects.patch | (download)

heat/engine/resource.py | 7 6 + 1 - 0 !
heat/tests/aws/test_security_group.py | 52 27 + 25 - 0 !
heat/tests/aws/test_volume.py | 21 15 + 6 - 0 !
heat/tests/openstack/cinder/test_volume_utils.py | 3 2 + 1 - 0 !
heat/tests/openstack/heat/test_swiftsignal.py | 5 3 + 2 - 0 !
heat/tests/openstack/neutron/test_neutron_loadbalancer.py | 1 1 + 0 - 0 !
heat/tests/openstack/nova/test_server.py | 138 65 + 73 - 0 !
heat/tests/test_resource.py | 9 5 + 4 - 0 !
heat/tests/test_vpc.py | 32 19 + 13 - 0 !
9 files changed, 143 insertions(+), 125 deletions(-)

 unit tests: fix mock errors with too few side effects
 When a mock hasn't been provided with a long-enough list of side-effects
 for the number of times it is called, it raises StopIteration (instead
 of something sensible like AssertionError). Prior to Python 3.7, this
 exception could bubble up until it just stopped a task. (In Python 3.7
 it will eventually be caught and turned into a RuntimeError.)
 .
 To ensure that any errors of this sort are not handled silently, and to
 enable us to test for them prior to using Python 3.7, catch any
 StopIteration errors coming from plugin-provided non-generator functions
 and convert them to RuntimeError exceptions.
 .
 This reveals many errors in the unit tests, many introduced in the
 process of converting from mox to mock, which are also fixed by this
 patch.