test: improve self-signed certificate cleanup#3706
Merged
reubenmiller merged 6 commits intothin-edge:mainfrom Jun 27, 2025
Merged
test: improve self-signed certificate cleanup#3706reubenmiller merged 6 commits intothin-edge:mainfrom
reubenmiller merged 6 commits intothin-edge:mainfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
Contributor
Robot Results
|
b2bf978 to
cb685e2
Compare
Signed-off-by: reubenmiller <reuben.d.miller@gmail.com>
1ba70e3 to
9ddfb0f
Compare
Member
|
Instead of manually tracking individual certificates, couldn't we perhaps just remove ALL the certificates from the tenant that match the test device name (and children)? These names should be globally unique, so no other device should be affected and additionally:
I think this would be a good enough solution assuming that from within the tests we only create certs with the name of the device (and children) or I'm otherwise not missing anything else. |
Bravo555
reviewed
Jun 26, 2025
Member
Bravo555
left a comment
There was a problem hiding this comment.
Looks alright, still have some suggestions and questions, will approve after they're addressed.
11 tasks
11 tasks
Contributor
Author
…er certificates for cleanup Signed-off-by: reubenmiller <reuben.d.miller@gmail.com>
Signed-off-by: reubenmiller <reuben.d.miller@gmail.com>
Signed-off-by: reubenmiller <reuben.d.miller@gmail.com>
… self-signed certificates Signed-off-by: reubenmiller <reuben.d.miller@gmail.com>
RSA 1024 keys aren't currently supported by the Cumulocity Certificate Authority feature. It is unclear whether they will be allowed or not in the future given that the key size is considered to be insecure. Signed-off-by: reubenmiller <reuben.d.miller@gmail.com>
ab51521 to
9842236
Compare
13 tasks
This file contains hidden or 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
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.
Proposed changes
Improve the tracking of self-signed certificates within the tests. With the changes, the system tests no longer leave self-signed certificate which where generated within the tests.
Types of changes
Paste Link to the issue
Checklist
just prepare-devonce)just formatas mentioned in CODING_GUIDELINESjust checkas mentioned in CODING_GUIDELINESFurther comments