Fix malformed encryption-type body in test cases
This change addresses bug #1286261 and fixes two malformed encryption-type bodies in two test_create test cases. Change-Id: I308561c1d5a70812889a93922e13194597f670f1 Closes-Bug: #1286261
This commit is contained in:

committed by
Gerrit Code Review

parent
eb301ec6ad
commit
51ffb26437
@@ -73,12 +73,11 @@ class VolumeEncryptionTypesTest(utils.TestCase):
|
||||
Verify that one POST request is made for the encryption type creation.
|
||||
Verify that encryption type creation returns a VolumeEncryptionType.
|
||||
"""
|
||||
result = cs.volume_encryption_types.create(2, {'encryption':
|
||||
{'provider': 'Test',
|
||||
'key_size': None,
|
||||
'cipher': None,
|
||||
'control_location':
|
||||
None}})
|
||||
result = cs.volume_encryption_types.create(2, {'provider': 'Test',
|
||||
'key_size': None,
|
||||
'cipher': None,
|
||||
'control_location':
|
||||
None})
|
||||
cs.assert_called('POST', '/types/2/encryption')
|
||||
self.assertIsInstance(result, VolumeEncryptionType)
|
||||
|
||||
|
@@ -73,12 +73,11 @@ class VolumeEncryptionTypesTest(utils.TestCase):
|
||||
Verify that one POST request is made for the encryption type creation.
|
||||
Verify that encryption type creation returns a VolumeEncryptionType.
|
||||
"""
|
||||
result = cs.volume_encryption_types.create(2, {'encryption':
|
||||
{'provider': 'Test',
|
||||
'key_size': None,
|
||||
'cipher': None,
|
||||
'control_location':
|
||||
None}})
|
||||
result = cs.volume_encryption_types.create(2, {'provider': 'Test',
|
||||
'key_size': None,
|
||||
'cipher': None,
|
||||
'control_location':
|
||||
None})
|
||||
cs.assert_called('POST', '/types/2/encryption')
|
||||
self.assertIsInstance(result, VolumeEncryptionType)
|
||||
|
||||
|
Reference in New Issue
Block a user