Unit test test_restore_backup_with_body_KeyError fails under Python 3.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned |
Bug Description
Running unit tests under Python 3.6 leads to this error (while it works in Python 2.7):
cinder.
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
b'Traceback (most recent call last):'
b' File "/home/
b" res_dict[
b' File "/usr/lib/
b' self.assertThat
b' File "/usr/lib/
b' raise mismatch_error'
b'testtools
b'reference = "Additional properties are not allowed (\'\' was unexpected)"'
b'actual = "\'restore\' is a required property"'
b''
b''
Captured pythonlogging:
~~~~~~~
b'2018-02-16 10:44:32,625 INFO [cinder.rpc] Automatically selected cinder-scheduler objects version 1.35 as minimum service version.'
b'2018-02-16 10:44:32,627 INFO [cinder.rpc] Automatically selected cinder-scheduler RPC version 3.10 as minimum service version.'
b'2018-02-16 10:44:32,630 INFO [cinder.rpc] Automatically selected cinder-volume objects version 1.35 as minimum service version.'
b'2018-02-16 10:44:32,632 INFO [cinder.rpc] Automatically selected cinder-volume RPC version 3.15 as minimum service version.'
b'2018-02-16 10:44:32,634 INFO [cinder.rpc] Automatically selected cinder-backup objects version 1.35 as minimum service version.'
b'2018-02-16 10:44:32,637 INFO [cinder.rpc] Automatically selected cinder-backup RPC version 2.1 as minimum service version.'
b'2018-02-16 10:44:32,790 INFO [cinder.
b'2018-02-16 10:44:32,791 INFO [cinder.
b''