2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-20 02:03:31 +00:00

Updated test for App Specific Info for Symmetric Key and added test for App Specific Info for SecretData

This commit is contained in:
Grace Lombardi
2022-07-14 10:03:46 -04:00
committed by arp102
parent 1773fba67c
commit 124f7db5cb
3 changed files with 94 additions and 21 deletions

View File

@@ -560,16 +560,11 @@ class ProxyKmipClient(object):
if hasattr(managed_object, '_application_specific_informations'):
if managed_object._application_specific_informations:
for attr in managed_object._application_specific_informations:
app_dict = {}
app_dict[attr] = managed_object._application_specific_informations[attr]
attribute = self.attribute_factory.create_attribute(
name=enums.AttributeType.APPLICATION_SPECIFIC_INFORMATION,
value=app_dict,
index=1
)
object_attributes.append(attribute)
attribute = self.attribute_factory.create_attribute(
enums.AttributeType.APPLICATION_SPECIFIC_INFORMATION,
managed_object._application_specific_informations
)
object_attributes.append(attribute)
template = cobjects.TemplateAttribute(attributes=object_attributes)
object_type = managed_object.object_type
# Register the managed object and handle the results