-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Update Python interop tests to python-tuf v1.0.0 (#228)
* Add python-tuf-v1.0.0 client/generator Signed-off-by: Zachary Newman <[email protected]> Signed-off-by: Asra Ali <[email protected]> * Update python_interop Makefile to generate v1.0.0 Signed-off-by: Zachary Newman <[email protected]> Signed-off-by: Asra Ali <[email protected]> * Make Python interop tests run against v1.0.0. A few changes, besides pointing at the new directory: - the python-tuf repo says "High-level support for implementing repository operations is planned but not yet provided;" this includes consistent snapshot, so we'll add a consistent snapshot test at that point. - make a new tmp dir for each Python client test (it gets confused otherwise) - the new python-tuf client downloads `foo/bar.txt` to `targets/foo%2Fbar.txt` so check for it there Signed-off-by: Zachary Newman <[email protected]> Signed-off-by: Asra Ali <[email protected]> * Remove old python_interop for python-tuf v0.11.1 Signed-off-by: Zachary Newman <[email protected]> Signed-off-by: Asra Ali <[email protected]> * Add consistent snapshot (generator + test) Signed-off-by: Asra Ali <[email protected]> * Regenerate python_interop testdata Signed-off-by: Asra Ali <[email protected]> * update testadata and requirements Signed-off-by: Asra Ali <[email protected]> * remove addition of snapshot meta in timestamp Signed-off-by: Asra Ali <[email protected]> Signed-off-by: Zachary Newman <[email protected]> Signed-off-by: Asra Ali <[email protected]> Co-authored-by: Asra Ali <[email protected]>
- Loading branch information
Showing
56 changed files
with
515 additions
and
974 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
PYTHON_TUF=python-tuf-v1.0.0 | ||
|
||
all: | ||
docker build -t tuf-gen ./generate | ||
docker run tuf-gen | tar x | ||
docker build -t tuf-gen ./$(PYTHON_TUF) | ||
docker run tuf-gen | tar x -C $(PYTHON_TUF) | ||
|
||
clean: | ||
rm -rf python-tuf-0.9/with{,out}-consistent-snapshot | ||
rm -rf $(PYTHON_TUF)/with{,out}-consistent-snapshot | ||
|
||
.PHONY: all clean |
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
client/python_interop/testdata/python-tuf-v0.11.1/Dockerfile
This file was deleted.
Oops, something went wrong.
244 changes: 0 additions & 244 deletions
244
client/python_interop/testdata/python-tuf-v0.11.1/client.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.