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

Fix and extend targets rollback test #151

Closed

Conversation

jku
Copy link
Member

@jku jku commented Aug 16, 2024

  • Fix the test for targets rollback when metafile hashes are used
  • Add a parametrization for targets and snapshot rollback tests: they now test both without hashes in metafiles and with hashes in metafiles (the test is 100% the same, only difference is whether repsoitory uses hashes)

This now leads to the "with hashes" tests failing because of #128: I believe the tests are correct. This PR can be used to test the fix for #128.

This PR is ready for review but should not be merged before the fix for #128.

* 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]>
@jku jku force-pushed the fix-and-extend-targets-rollback-test branch from 63a8b9c to b376d2a Compare August 16, 2024 09:03
@jku jku linked an issue Aug 16, 2024 that may be closed by this pull request
We can parametrize these tests so that they work both with and without
hashes:
* Replace two targets rollback tests with a parametrized test
* Replace on snapshot rollback test with a parametrized test
  (the "with hashes" case was not tested before)

Signed-off-by: Jussi Kukkonen <[email protected]>
@jku
Copy link
Member Author

jku commented Aug 19, 2024

closing for #154

@jku jku closed this Aug 19, 2024
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.

rollback tests missing targets rollback
1 participant