-
Notifications
You must be signed in to change notification settings - Fork 5
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
RepositorySimulator._compute_hashes_and_length is broken #128
Comments
oh, it's likely the combination of:
the hashes/length are over the whole file so include signatures. This (the fact that making a mistake like this is so easy) is certainly a major downside to signing at request time so we may have to reconsider that decision... Still, maybe switching to a different default key type would also work. I originally only chose ecdsa because they are fast to generate (unlike rsa). |
I filed an issue for switching the signing keytype (or otherwise solving the underlying issue). That said, the test is still completely wrong: it claims to test a targets rollback but does not actually try to do one. |
Should this remain open, @jku? |
test_new_targets_hash_mismatch() is broken because of this as well: If any return values had been checked that would have been visible |
* Add a test for simple targets rollback * Fix the test for targets rollback when metafile hashes are used This now leads to the latter test failing because of theupdateframework#128: This PR can be used to test the fix for theupdateframework#128. This PR should not be merged before that. Signed-off-by: Jussi Kukkonen <[email protected]>
* Add a test for simple targets rollback * Fix the test for targets rollback when metafile hashes are used This now leads to the latter test failing because of theupdateframework#128: This PR can be used to test the fix for theupdateframework#128. This PR should not be merged before that. Signed-off-by: Jussi Kukkonen <[email protected]>
* Add a test for simple targets rollback * Fix the test for targets rollback when metafile hashes are used This now leads to the latter test failing because of theupdateframework#128: This PR can be used to test the fix for theupdateframework#128. This PR should not be merged before that. Signed-off-by: Jussi Kukkonen <[email protected]>
EDIT: Every test that uses
RepositorySimulator._compute_hashes_and_length = True
is currently broken because :This should get fixed if any option of #130 is implemented
Original report was :
test_snapshot_rollback_with_local_snapshot_hash_mismatch() does not seem right:
I can't quite see what the issue is.
We should
The text was updated successfully, but these errors were encountered: