python-tuf/tests
Martin Vrachev 5fd3ddccbc ngclient: pick old timestamp if new.ver is equal
In the spec version 1.0.30, a new change has been added considering what
should happen if there is a new timestamp with the same version.
It says the following:
"In case they [versions] are equal, discard the new
timestamp metadata and abort the update cycle.
This is normal and it shouldn't raise any error."

In other words, if there is a new timestamp with the same version, then
stop the update process and use the old timestamp.

Those changes reflect these latest specification modifications.

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
2022-06-21 14:52:31 +03:00
..
generated_data Root and Targets key API changes 2022-06-17 13:33:01 +03:00
repository_data test: drop legacy test metadata generation scripts 2022-01-26 14:52:04 +01:00
.coveragerc Update misc repo metadata after legacy code drop 2022-01-26 15:25:40 +01:00
__init__.py Support ISO 8601, vendor iso8601, clean codebase. 2014-04-19 14:27:53 -04:00
aggregate_tests.py Apply black on tests/aggregate_tests.py 2021-12-07 11:51:23 +02:00
repository_simulator.py RepositorySimulator: support succinct_roles 2022-06-17 13:33:01 +03:00
simple_server.py tests: Remove unused options from simple_server 2022-01-21 11:31:09 +02:00
test_api.py Root and Targets key API changes 2022-06-17 13:33:01 +03:00
test_examples.py test: add missing return type hint in test method 2021-12-10 10:48:36 +01:00
test_fetcher_ng.py Reverted URL construction back to f-strings 2022-04-18 12:21:44 -04:00
test_metadata_eq_.py Delegations: add support for succinct_roles 2022-06-17 13:33:01 +03:00
test_metadata_generation.py Provide a way to generate a simple repository 2022-03-22 18:13:54 +02:00
test_metadata_serialization.py Delegations: add support for succinct_roles 2022-06-17 13:33:01 +03:00
test_trusted_metadata_set.py ngclient: pick old timestamp if new.ver is equal 2022-06-21 14:52:31 +03:00
test_updater_consistent_snapshot.py Fix linter errors in tests 2021-12-15 12:14:20 +02:00
test_updater_delegation_graphs.py Test delegation tree with succinct_roles 2022-06-17 13:33:01 +03:00
test_updater_fetch_target.py Add tuf/api/exceptions.py 2022-01-19 16:52:19 +02:00
test_updater_key_rotations.py Root and Targets key API changes 2022-06-17 13:33:01 +03:00
test_updater_ng.py Reverted URL construction back to f-strings 2022-04-18 12:21:44 -04:00
test_updater_top_level_update.py ngclient: pick old timestamp if new.ver is equal 2022-06-21 14:52:31 +03:00
test_updater_validation.py Add tests for Updater input validation 2022-03-18 18:59:05 +02:00
test_utils.py test: drop legacy tests and test tooling 2022-01-26 15:13:17 +01:00
utils.py test: drop usage of custom log module in new test 2022-01-26 14:54:43 +01:00