-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor some of the TUF metadata storage tests to be more general, s…
…o they can be applied to rethink. This also fixes the following bugs: 1. MemStorage's UpdateMany previously did a partial update even if there was a conflict. Now we check for conflicts before updating. 2. MemStorage's UpdateMany allowed you to insert the same version twice. 3. RethinkDB's UpdateMany does a partial update even if there was a conflict, because the deletion criteria value (for timestamp_checksum) was passed as a list not as strings. 4. RethinkDB's delete did not actually delete metadata, because the deletion criteria value (for gun) was passed as a list and not as strings. Signed-off-by: Ying Li <[email protected]>
- Loading branch information
Showing
8 changed files
with
421 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.