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 delegation and targetpath search tests #101

Closed
jku opened this issue Aug 2, 2024 · 1 comment
Closed

Add delegation and targetpath search tests #101

jku opened this issue Aug 2, 2024 · 1 comment
Assignees

Comments

@jku
Copy link
Member

jku commented Aug 2, 2024

This is a bit tricky to test but we should ensure that multiple levels of targets delegations work correctly and that target path search never finds incorrect artifacts.

python-tuf has some parametrized tests in https://github.com/theupdateframework/python-tuf/blob/develop/tests/test_updater_delegation_graphs.py: TestDelegationsGraphs for the delegation tests and then TestTargetFileSearch for targetpath searching. They are a bit complicated but I don't really see better ways.

@jku
Copy link
Member Author

jku commented Oct 4, 2024

the tests could be far more extensive but a first set is in there

@jku jku closed this as completed Oct 4, 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

No branches or pull requests

2 participants