Add more tests#537
Conversation
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
6cbe799 to
2a8af3f
Compare
|
Putting this into draft mode while I experiment with the oidc-token from here for sigstore signing. |
Create a signature with the currently active model signing library and test it against old versions of the library installed into a venv. Use the older versions of the library to test against the pre-created signatures located in the test directory. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2a8af3f to
fe79da5
Compare
|
It can now sign with sigstore using that test-token as well. It has problems with --use_staging, though, so I cannot use this option. |
This is specifically for trying to verify new signatures on old versions? I believe rekor v2 is live in staging, which is why you're having this issue (verifying a rekorv2 entry with sigstore-python v3.6.5 which doesnt have support for them yet?) . I understand verifying old signatures with new versions, but do we need tests for verifying new signatures using old versions? |
I got strange errors with insufficient time sources.
|
mihaimaruseac
left a comment
There was a problem hiding this comment.
Minor nit in renaming some files, but otherwise I'd say to get this in for now, even though we might need to do a refactoring of the testing to also take into account that the spec has been moved to a separate repo. But for the next release they can be here.
Also adjust the testrunner to pick up test cases with suffix .sh. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Head branch was pushed to by a user without write access
Summary
Add test cases for v1.0.1 signatures.
Also add a test that first creates key, certificate, and sigstore type of signatures with the currently active library and tests verification against several older versions of the library that are installed in a venv. This serves the purpose to ensure backwards compatibility. Then also use the older version of the library and model_signing tool to verify against the key, certificate, and sigstore signatures we have in the test directory.
Checklist