-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse encodedSignature property from EGS #3200
Conversation
* Pylint/test changes * Update unit tests * formatting * add comment * Generalize test data
azurelinuxagent/common/protocol/extensions_goal_state_from_extensions_config.py
Outdated
Show resolved
Hide resolved
data_file = wire_protocol_data.DATA_FILE.copy() | ||
# This extensions goal state has 1 extension without encodedSignature property (ExampleHandlerLinux) and 1 | ||
# extension with encodedSignature property (ExampleExtension) | ||
data_file["ext_conf"] = "wire/ext_conf-plugin_encoded_signature.xml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we just add the signature to wire/ext_conf.xml and hostgaplugin/vm_settings.json so that most test will get the values? the signature will be a standard property now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
* Respond to comments * check remaining extensions
Description
Some extensions are now being published with a signature. If an extension is signed, its signature will be included in the extensions goal state using the 'encodedSignature' property. If an extension is not signed, extensions goal state will not include an 'encodedSignature' property for that extension. This is true for extensions config and vmsettings.
This PR adds the encoded_signature instance variable to the Extension object model. Its value should be None if the 'encodedSignature' property does not exist for the extension in the extensions goal state.
Issue #
PR information
Quality of Code and Contribution Guidelines