mirror of
https://github.com/openkmip/pykmip
synced 2025-12-20 18:23:24 +00:00
Add integration tests for Locate using new attributes
This change adds integration tests that verify that objects can be found by Locate when filtering off of the new ObjectGroup and ApplicationSpecificInformation attributes. Some minor tweaks to the database attribute models are included to simplify usage.
This commit is contained in:
committed by
Peter Hamilton
parent
009e8cecc9
commit
cd1079afd5
@@ -799,6 +799,8 @@ class KmipEngine(object):
|
||||
)
|
||||
elif attribute_name == "Object Group":
|
||||
for value in attribute_value:
|
||||
# TODO (peterhamilton) Enforce uniqueness of object groups
|
||||
# to avoid wasted space.
|
||||
managed_object.object_groups.append(
|
||||
objects.ObjectGroup(object_group=value.value)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user