go-tuf icon indicating copy to clipboard operation
go-tuf copied to clipboard

interop tests use deprecated python-tuf code

Open jku opened this issue 3 years ago • 3 comments

client/python_interop uses the legacy python-tuf client code (the generate.py script also uses legacy repository_tool). python-tuf has recently removed the legacy code from git, and the next release will not contain it anymore.

Updating to new client should be straight forward: There's an example client that might be what you need (https://github.com/theupdateframework/python-tuf/tree/develop/examples/client_example) -- I admit I did not fully find out what the test does.

Updating generate.py might be a bit more work (in the sense that there is no repository_tool API anymore) but amount of code should not be any worse using the low level Metadata API, see https://github.com/theupdateframework/python-tuf/tree/develop/examples/repo_example/basic_repo.py

python-tuf devs are obviously available for advice.

jku avatar Feb 11 '22 12:02 jku

I can probably take this next week.

znewman01 avatar Feb 11 '22 12:02 znewman01

Oops, looks like promising this week was overly ambitious, but I should have time next week (week of Feb 21)

znewman01 avatar Feb 17 '22 22:02 znewman01

Ahh, okay update here: this got blocked on #232.

znewman01 avatar Jun 08 '22 13:06 znewman01