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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user