python-tuf/tests
Martin Vrachev 922c5d28e5 Add support for unrecognized fields in Metadata
The Document formats section (chapter 4) of the
specification says the following:

"All of the formats described below include the ability to add more
attribute-value fields to objects for backward-compatible format
changes. Implementers who encounter undefined attribute-value pairs in
the format must include the data when calculating hashes or verifying
signatures and must preserve the data when re-serializing."

I initially thought it's applicable only to the SIGNED fields as
"undefined attribute-value pairs in the format must include the data
when calculating hashes or verifying signatures"
This doesn't mean that the sentence before that excludes "Metadata" as a
possible place for additional fields.
The other maintainers agreed with me and we are going to add support for
'unrecognized_fields" inside "Metadata".

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
2022-02-14 12:12:54 +02: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 exceptions: rename FetcherHTTPError 2022-02-04 11:03:12 +02:00
simple_server.py tests: Remove unused options from simple_server 2022-01-21 11:31:09 +02:00
test_api.py Move nonunique sigs test to serialization tests 2022-02-10 17:30:35 +02: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 exceptions: rename FetcherHTTPError 2022-02-04 11:03:12 +02:00
test_metadata_serialization.py Add support for unrecognized fields in Metadata 2022-02-14 12:12:54 +02:00
test_trusted_metadata_set.py test: define TESTS_DIR constant 2022-01-24 13:54:07 +01:00
test_updater_consistent_snapshot.py Fix linter errors in tests 2021-12-15 12:14:20 +02:00
test_updater_delegation_graphs.py Add tuf/api/exceptions.py 2022-01-19 16:52:19 +02:00
test_updater_fetch_target.py Add tuf/api/exceptions.py 2022-01-19 16:52:19 +02:00
test_updater_key_rotations.py Add tuf/api/exceptions.py 2022-01-19 16:52:19 +02:00
test_updater_ng.py test: stop using unittest_toolbox in new tests 2022-01-24 13:54:13 +01:00
test_updater_top_level_update.py Merge pull request #1766 from jku/tests-sim-add-key-rotation 2022-02-03 13:29:23 +01: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