-
Notifications
You must be signed in to change notification settings - Fork 69
test: Use initial and latest tedge-p11-sever version in PKCS11 feature integration tests #3885
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
base: main
Are you sure you want to change the base?
test: Use initial and latest tedge-p11-sever version in PKCS11 feature integration tests #3885
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
96161aa to
7063e36
Compare
Robot Results
|
| # ... cmd=tedge cert create-key-hsm --type rsa --bits ${bits} --label "${label}" "pkcs11:token=tedge" | ||
| ... cmd=p11tool --set-pin=123456 --login --generate-privkey rsa --bits ${bits} --label ${label} "pkcs11:token=tedge" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that p11tool is used instead of tedge cert create-key-hsm because we want to run the tests even with an old version of tedge. Being explicit about that requirement would be better than commenting out the tedge command.
|
|
||
| *** Variables *** | ||
| # It seems 1.6.2 tag was created but later removed, as packages with this tag are present on cloudsmith. | ||
| ${TEDGE_P11_SERVER_VERSION} 1.6.2~300+g5cfe216 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No 1.6.2 tag has been created and later removed.
Since this commit #2543:
1.6.2~300+g5cfe216means in preparation of1.6.2, 300 commits after the previous tag i.e.1.6.1in that case.
However, thin-edge documentation is not up to date and is still referencing the old scheme https://thin-edge.github.io/thin-edge.io/contribute/package-hosting/#version-syntax
didier-wenzek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The proposed test hierarchy is really clear (with a resource file and two test suites per feature - one for the initial reference release and one for the HEAD). I don't know if there is a better way to run with robot framework the same test suite on two different version of the software under test. But the current proposal nicely shares the test source code for the initial and current versions in a resource file per feature.
I will be happy to approve, but I would like first discuss the reference version to be used for the "create hsm keys" feature.
|
|
||
|
|
||
| *** Variables *** | ||
| ${TEDGE_P11_SERVER_VERSION} 1.6.2~300+g5cfe216 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even if 1.6.2~300+g5cfe216 is the precise commit which introduced the tedge cert create-key-hsm command, I would use the official release aka 1.7.0 (which retention policy is longer).
| ${TEDGE_P11_SERVER_VERSION} 1.6.2~300+g5cfe216 | |
| ${TEDGE_P11_SERVER_VERSION} 1.7.0 |
didier-wenzek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
Signed-off-by: Marcel Guzik <marcel.guzik@cumulocity.com>
… 1.6.1 Signed-off-by: Marcel Guzik <marcel.guzik@cumulocity.com>
Signed-off-by: Marcel Guzik <marcel.guzik@cumulocity.com>
Signed-off-by: Marcel Guzik <marcel.guzik@cumulocity.com>
…e suites Signed-off-by: Marcel Guzik <marcel.guzik@cumulocity.com>
fc73f7b to
8fa28b7
Compare
Proposed changes
To ensure new versions of
tedgeremain compatible with older versions oftedge-p11-server, all PKCS11 features will be tested using both initial (i.e. firsttedge-p11-serverversion that supports them) and latesttedge-p11-serverversions.This will supersede the previous approach of separate compatibility suite which only tested a subset of the features from version 1.5.1. With this new approach, all features will be tested for compatibility.
Types of changes
Paste Link to the issue
Checklist
just prepare-devonce)just formatas mentioned in CODING_GUIDELINESjust checkas mentioned in CODING_GUIDELINESFurther comments