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

Remove iso checksum type and fix tests #60

Merged
merged 4 commits into from
Apr 7, 2023

Conversation

ddelnano
Copy link
Owner

@ddelnano ddelnano commented Apr 7, 2023

This is a continuation of #48.

Testing

  • Verified the Ubuntu example builds properly when checksum is correct
  • Verified that packer correctly detects invalid checksum when malformed

somerandomqaguy and others added 4 commits April 6, 2023 23:12
Looks like the consts got moved into common
Solves TestBuilderPrepare_InvalidKey failing, since we weren't capturing
it's errors before.
This aligns the Xenserver plugin to being a bit more inline with what
Packer > 1.6.0 is expecting, since packer now simply ignores the
iso_checksum_type (it's supposed to error out but that code path isn't
working right now because we don't set PluginType in the configs. The
unit tests have been altered to reflect this reality.

Note that this isn't a comprehensive change; the config still has the
inert ISOChecksumType, and there's probably a laundry list of other
things that needs to be looked at, For now though, we have working
unit tests again.

Documentation from SDK has been aligned for iso_checksum
@ddelnano ddelnano merged commit b55b096 into master Apr 7, 2023
@ddelnano ddelnano deleted the ddelnano/remove_iso_checksum_type_and_fix_tests branch April 7, 2023 06:28
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.

2 participants