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

Updating server to enable the Activate operation

This change updates the PyKMIP server to enable the Activate
operation. Server unit tests are updated to account for this
change.
This commit is contained in:
Peter Hamilton
2016-12-07 08:13:39 -05:00
parent 131addf967
commit 065cc0cec1
2 changed files with 15 additions and 5 deletions

View File

@@ -910,6 +910,8 @@ class KmipEngine(object):
return self._process_get(payload)
elif operation == enums.Operation.GET_ATTRIBUTES:
return self._process_get_attributes(payload)
elif operation == enums.Operation.ACTIVATE:
return self._process_activate(payload)
elif operation == enums.Operation.DESTROY:
return self._process_destroy(payload)
elif operation == enums.Operation.QUERY:
@@ -1499,6 +1501,7 @@ class KmipEngine(object):
contents.Operation(enums.Operation.REGISTER),
contents.Operation(enums.Operation.GET),
contents.Operation(enums.Operation.GET_ATTRIBUTES),
contents.Operation(enums.Operation.ACTIVATE),
contents.Operation(enums.Operation.DESTROY),
contents.Operation(enums.Operation.QUERY)
])