mirror of
https://github.com/openkmip/pykmip
synced 2025-12-15 07:43:26 +00:00
Update the server Query results to match current features
This change updates the server results returned by the Query operation to match the current set of supported features. The tests for Query have been updated to better reflect testing across KMIP versions.
This commit is contained in:
@@ -1552,6 +1552,7 @@ class KmipEngine(object):
|
||||
contents.Operation(enums.Operation.CREATE),
|
||||
contents.Operation(enums.Operation.CREATE_KEY_PAIR),
|
||||
contents.Operation(enums.Operation.REGISTER),
|
||||
contents.Operation(enums.Operation.LOCATE),
|
||||
contents.Operation(enums.Operation.GET),
|
||||
contents.Operation(enums.Operation.GET_ATTRIBUTES),
|
||||
contents.Operation(enums.Operation.GET_ATTRIBUTE_LIST),
|
||||
@@ -1560,10 +1561,14 @@ class KmipEngine(object):
|
||||
contents.Operation(enums.Operation.QUERY)
|
||||
])
|
||||
|
||||
if self._protocol_version == contents.ProtocolVersion.create(1, 1):
|
||||
if self._protocol_version >= contents.ProtocolVersion.create(1, 1):
|
||||
operations.extend([
|
||||
contents.Operation(enums.Operation.DISCOVER_VERSIONS)
|
||||
])
|
||||
if self._protocol_version >= contents.ProtocolVersion.create(1, 2):
|
||||
operations.extend([
|
||||
contents.Operation(enums.Operation.MAC)
|
||||
])
|
||||
|
||||
if enums.QueryFunction.QUERY_OBJECTS in queries:
|
||||
objects = list()
|
||||
|
||||
Reference in New Issue
Block a user