Skip to content
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

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

maddieford
Copy link
Contributor

@maddieford maddieford commented Aug 29, 2024

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

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made

Quality of Code and Contribution Guidelines

* Pylint/test changes

* Update unit tests

* formatting

* add comment

* Generalize test data
@maddieford maddieford changed the title Parse encoded_signature property from EGS Parse encodedSignature property from EGS Aug 29, 2024
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"
Copy link
Member

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

Copy link
Contributor Author

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
@maddieford maddieford merged commit 86febb7 into Azure:develop Aug 29, 2024
11 checks passed
@maddieford maddieford deleted the encoded_signature branch August 29, 2024 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants