Merge "Add compute microversion 2.79"

This commit is contained in:
Zuul 2021-05-17 15:43:50 +00:00 committed by Gerrit Code Review
commit 2ab15d0035
2 changed files with 7 additions and 2 deletions

View File

@ -39,5 +39,7 @@ class VolumeAttachment(resource.Resource):
attachment_id = resource.Body('attachment_id', alternate_id=True)
#: Virtual device tags for the attachment.
tag = resource.Body('tag')
# tag introduced in 2.70
_max_microversion = '2.70'
#: Indicates whether to delete the volume when server is destroyed
delete_on_termination = resource.Body('delete_on_termination')
# delete_on_termination introduced in 2.79
_max_microversion = '2.79'

View File

@ -19,6 +19,7 @@ EXAMPLE = {
'id': '2',
'volume_id': '3',
'tag': '4',
'delete_on_termination': 'true',
}
@ -46,3 +47,5 @@ class TestServerInterface(base.TestCase):
self.assertEqual(EXAMPLE['id'], sot.id)
self.assertEqual(EXAMPLE['volume_id'], sot.volume_id)
self.assertEqual(EXAMPLE['tag'], sot.tag)
self.assertEqual(EXAMPLE['delete_on_termination'],
sot.delete_on_termination)