Update two tests to match changes made to Uptane's TUF fork #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
test_repository_lib fix:
Some time ago in PR #5
I changed signature code such that tuf.keys.create_signature
and verify_signature accept already-encoded bytes instead of
assuming what the encodings should look like, and moved
encoding up a bit in the stack (often to tuf.sig). This
test wasn't updated at that point, and now it is being
updated to deal with this (by encoding first, then calling
the tuf.keys.create_signature function).
test_mix_and_match_attack fix:
A fix to the way that role files are retained if validation
fails (possibly from #13)
broke this test, I think, though I'm not certain. In any
event, this demonstrates passable behavior for now, with the
role info loaded correctly.
These tests in the TUF fork are not regarded as critical,
given that testing occurs at the Uptane level and Uptane will
be migrating to the main TUF repository when possible;
however, these fixes may be helpful in the interim.