Add microversion 2.67 to rest api version history

Add microversion 2.67 to REST API Version History, it is used as an
index by novaclient's release note, and rename the "test_block_device"
test case
"test_from_api_invalid_oneof_image_id_or_destination_local_mapping" to
"test_from_api_invalid_image_to_destination_local_mapping", mentioned by
melwitt.

Depends-On: https://review.openstack.org/#/c/606398/

Part of blueprint boot-instance-specific-storage-backend

Change-Id: Ic6d562947f445c6f6cabd69484bc85b7aea88e48
This commit is contained in:
zhangbailin 2018-10-14 05:18:03 -04:00 committed by Matt Riedemann
parent 396156eb13
commit 25d87004ef
2 changed files with 7 additions and 2 deletions

View File

@ -854,3 +854,9 @@ following APIs to filter by changes before or equal to the resource
* ``GET /servers/detail``
* ``GET /servers/{server_id}/os-instance-actions``
* ``GET /os-migrations``
2.67
----
Adds the ``volume_type`` parameter to ``block_device_mapping_v2``, which can
be used to specify cinder ``volume_type`` when creating a server.

View File

@ -600,8 +600,7 @@ class TestBlockDeviceDict(test.NoDBTestCase):
self.assertEqual(retexp,
block_device.BlockDeviceDict.from_api(api_dict, True))
def test_from_api_invalid_oneof_image_id_or_destination_local_mapping(
self):
def test_from_api_invalid_image_to_destination_local_mapping(self):
api_dict = {'id': 1,
'source_type': 'image',
'destination_type': 'local',