2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-31 15:43:45 +00:00

Adding support for the RekeyKeyPair operation

This change adds support for the ReKeyKeyPair operation, adding in
required KMIP objects and updating the KMIP client. Minor changes to the
server are included in preparation for future changes. The unit test
suite has been updated accordingly.
This commit is contained in:
Peter Hamilton
2015-01-21 11:41:08 -05:00
parent c6d6db3dfe
commit ff533ff4bb
15 changed files with 743 additions and 32 deletions

View File

@@ -281,8 +281,8 @@ class TestInteger(TestCase):
def test_init_unset(self):
i = Integer()
self.assertEqual(None, i.value,
self.bad_value.format('value', None, i.value))
self.assertEqual(0, i.value,
self.bad_value.format('value', 0, i.value))
self.assertEqual(i.LENGTH, i.length,
self.bad_value.format('length', i.LENGTH, i.length))
self.assertEqual(i.LENGTH, i.padding_length,
@@ -858,8 +858,8 @@ class TestEnumeration(TestCase):
self.assertEqual(None, e.enum,
self.bad_value.format('enum', None, e.enum))
self.assertEqual(None, e.value,
self.bad_value.format('value', None, e.value))
self.assertEqual(0, e.value,
self.bad_value.format('value', 0, e.value))
def test_validate_on_valid(self):
e = Enumeration()