Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: Ifd0d1b8aa419e39361e76a4f846cb4eeaf0d46ca
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
upload_to_image() function should be updated when
client version is bigger than 3.1.
Without this we are not able to run this function:
image = cinder_client.volumes.upload_to_image(
volume=temporary_volume,
force=True,
image_name='temporary_image_of_{0}'.format(temporary_volume.id),
container_format="bare",
disk_format="raw"
)
Change-Id: I825ad0d6f6c25e2d85c756e6148e73e7e298ef75
Closes-Bug: #1787399
Co-Authored-By: Jiao Pengju <jiaopengju@cmss.chinamobile.com>
Add optional content parameter for checkpoint interface, so that other
checkpoint bank plugin like database bank plugin can be introduced to
Karbor.
Change-Id: I4eaad0b3fe38cb95a668b83acba39cd831bbb7df
Closes-Bug: #1745909