You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests fail with securesystemslib master since the change in secure-systems-lab/securesystemslib#244 to adapt securesystemslib.formats.PATH_SCHEMA to use securesystemslib.schema.AnyNonEmptyString
In one of the latest commits AnyNonemptyString was introduced
and with it, PATH_SCHEMA was changed to AnyNonemptyString from
AnyString. This led to unit tests failures in TUF.
See: theupdateframework/python-tuf#1059
One could argue what is the right approach: to consider
that PATH_SCHEMA is every non-empty string or every string.
I think this is not of much importance, but for TUF and
possibly for other securesystemslib adopters, this leads to tests
failures. The reason is that there are multiple functions
with arguments which should conformant against the PATH_SCHEMA
but have default values of ''.
See :
- "prefix" argument in load_repository function
- "location_in_repository" argument in create_new_project function
both of which are in tuf/developer_tool.py
Signed-off-by: Martin Vrachev <[email protected]>
Description of issue or feature request:
Tests fail with securesystemslib master since the change in secure-systems-lab/securesystemslib#244 to adapt
securesystemslib.formats.PATH_SCHEMA
to usesecuresystemslib.schema.AnyNonEmptyString
See a recent Travis log: https://travis-ci.org/github/theupdateframework/tuf/jobs/702415488
Current behavior:
Tests fail with securesystemslib master
Expected behavior:
Tests pass with securesystemslib master
The text was updated successfully, but these errors were encountered: