-
Notifications
You must be signed in to change notification settings - Fork 269
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
Merge develop to experimental-client #1358
Merged
jku
merged 33 commits into
theupdateframework:experimental-client
from
jku:merge-master-to-experiemental-client
Apr 21, 2021
Merged
Merge develop to experimental-client #1358
jku
merged 33 commits into
theupdateframework:experimental-client
from
jku:merge-master-to-experiemental-client
Apr 21, 2021
Conversation
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
For compatibility with Windows systems, declare repository_data files to always have LF line endings on checkout. A trailing "/**" matches everything inside, with infinite depth. Signed-off-by: Teodora Sechkova <tsechkova@vmware.com>
Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
…n-setup Remove additional version settup in Signed
…comment New API: Fix exception message for version
Add .gitattributes file
Bumps [cryptography](https://github.com/pyca/cryptography) from 3.4.6 to 3.4.7. - [Release notes](https://github.com/pyca/cryptography/releases) - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](pyca/cryptography@3.4.6...3.4.7) Signed-off-by: dependabot[bot] <support@github.com>
…pendabot/pip/cryptography-3.4.7 build(deps): bump cryptography from 3.4.6 to 3.4.7
While packaging latest release for debian from pypi tarball I noticed some tests' files were not shipped, let's add them. Relate-to: theupdateframework#263 Signed-off-by: Philippe Coval <rzr@users.sf.net>
…zr/review/master build: Add keys to sdist archive for tests
Runing module from python will help portability between systems. Those scripts may be renamed by distros, for instance Debian provides python3-converage. Signed-off-by: Philippe Coval <rzr@users.sf.net>
…zr/review/master test: Start coverage from python module
Signed-off-by: maoyangLiu <liumaoyang@inspur.com>
Remove use of six Signed-off-by: Velichka Atanasova <avelichka@vmware.com> Replace the use of dict.items(mydict) with mydict.items(), dict.keys(mydict) with mydict.keys() and dict.values(mydict) with mydict.values() Signed-off-by: Velichka Atanasova <avelichka@vmware.com> Replace 'import urllib' and 'import urllib.x' with 'from urllib import x' for vendor compatibility Signed-off-by: Velichka Atanasova <avelichka@vmware.com>
Remove use of six
Signed-off-by: Kainaat Singh <kainaatsingh93@gmail.com> remove unwanted lines
…uture-module Remove future module
Make sure test server processes are killed before the temporary directories are removed. Let Modified_Testcase handle the top-level temporary directory. Don't let Modified_testcase handle any subdirectories because: * teardown will try to remove them in the wrong order * removing the top level is enough Fixes theupdateframework#1344 Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
Call the parent (Modified_Testcase) tearDown as the last thing in tearDown(). This is good practice anyway and in practice may prevent bugs where the instance needs to cleanup something before Modified_Testcase removes the temp dir. In practice there does not seem to be visible bugs in these tests (as the all have top level temp directory handling in tearDownClass()) Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
These tests seem to try to remove temp files before the processes using those files had stopped. This likely lead to an error (and dangling temp files) on Windows, but Modified_Testcase hides the error Make sure temp directories are removed as the last thing in teardown. Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
fix the outdate link in docs/tuf-spec.0.9.txt
tests: don't delete open files
Can be useful to run tests using distro runtimes, (like python3 on Debian). Relate-to: theupdateframework#263 Origin: https://salsa.debian.org/rzr/python-tuf/-/tree/debian/review/master Forwarded: theupdateframework#1337 Signed-off-by: Philippe Coval <rzr@users.sf.net>
…zr/review/master tests: Use current python interpreter for sub tests
Checks metadata expiration against a reference time (a naive datetime in UTC). If not provided, checks against the current UTC date and time. Returns True if expiration time is less than the reference time. Signed-off-by: Velichka Atanasova <avelichka@vmware.com>
Even though, this ADR documents something already implied in the TUF spec in [document formats](https://theupdateframework.github.io/specification/latest/#document-formats) it seems better to document this decision clearly so that it could be referenced and give an explanation why someone can load a metadata file with additional unrecognized fields. Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
Add a method of Signed metadata class returning information about metadata expiration
Document ADR 0008 about unrecognized fields
Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
Add ADR8 to the ADR's index file
This is essentially short-hand for JSONDeserializer().deserialize(data) but seems much easier for the API user so may be worth it. Metadata.from_file() now uses Metadata.from_bytes() internally. Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
api: Add Metadata.from_bytes()
…periemental-client
sechkova
approved these changes
Apr 21, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Let's get some new metadata features (from_bytes and is_expired) from develop branch