Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail with recent change to formats.PATH_SCHEMA in securesystemslib master #1059

Closed
joshuagl opened this issue Jun 26, 2020 · 1 comment

Comments

@joshuagl
Copy link
Member

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 use securesystemslib.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

MVrachev added a commit to MVrachev/securesystemslib that referenced this issue Jun 29, 2020
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]>
@joshuagl
Copy link
Member Author

Resolved with #1064

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant