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:
Peter Hamilton
2014-02-28 13:09:27 -05:00
committed by Gerrit Code Review
parent eb301ec6ad
commit 51ffb26437
2 changed files with 10 additions and 12 deletions

View File

@@ -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',
result = cs.volume_encryption_types.create(2, {'provider': 'Test',
'key_size': None,
'cipher': None,
'control_location':
None}})
None})
cs.assert_called('POST', '/types/2/encryption')
self.assertIsInstance(result, VolumeEncryptionType)

View File

@@ -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',
result = cs.volume_encryption_types.create(2, {'provider': 'Test',
'key_size': None,
'cipher': None,
'control_location':
None}})
None})
cs.assert_called('POST', '/types/2/encryption')
self.assertIsInstance(result, VolumeEncryptionType)