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

Add tests for hash algorithm support #175

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

jku
Copy link
Member

@jku jku commented Aug 26, 2024

  • Spec does not clearly state what algorithms should be supported
  • Test for sha256, sha512 and finally both of them -- sha256 should be supported by everyone and at that point sha512 is easy to implement
  • clients that do not implement sha512 can just "xfail" that test
  • Test a unknown hash algo as well
  • Avoid testing unknown + known algo: the expected results is not clear, see what should clients do with multiple hash algos #174

If we had a good "optional feature" selection mechanism we could use that for the supported algorithms but for now I think xfail works for this case.

* Spec does not clearly state what algorithms should be supported
* Test for sha256, sha512 and finally both of them
* Test a unknown hash algo as well
* Avoid testing unknown + known algo: the expected results is not clear,
  see theupdateframework#174

If we had a good "optional feature" selection we could use that for the
supported algorithms but for now I think xfail works for this case.

Signed-off-by: Jussi Kukkonen <[email protected]>
@jku jku linked an issue Aug 26, 2024 that may be closed by this pull request
@jku jku requested a review from AdamKorcz August 27, 2024 07:17
@jku jku merged commit b8f2205 into theupdateframework:main Aug 27, 2024
3 checks passed
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.

Test different hash algos
2 participants