Improve Common.Certificates internals and tests#1523
Conversation
a8fa12e to
2b58d74
Compare
|
Should probably dispose |
bart-vmware
left a comment
There was a problem hiding this comment.
Reverting PR approval due to failing tests in cibuild.
|
Wouldn't it be easier to test via |
- more cert tests using both default and named options - use SpinUntil instead of Task.Delay for file system operations
e362560 to
4135edb
Compare
I'm not sure it's worth the effort, or exactly how we would use I do like the idea of using |
Good point, I didn't realize that limitation. It's unfortunate that we can't use |
- inline AddCertificate(), use appsetting.json in tests for path config changes - catch & log exceptions when loading certificates - poll for changes during tests - check all the changetokens - more naming changes
cd62b02 to
cd6f434
Compare
- take error handling back out of ConfigureCertificateOptions - reduce polling timeout in tests
a8142b9 to
b41cea5
Compare
bart-vmware
left a comment
There was a problem hiding this comment.
LGTM, aside from a redundant assertion. Please rebase on main.
…est.cs Co-authored-by: Bart Koelman <104792814+bart-vmware@users.noreply.github.com>
|




Description
Handle exceptions when loading certificates in IOptions, fix named options bug, simplify related code.
Enhance test scenario coverage and implementations, ensure testing for both default and named options.
Fixes #1506
Quality checklist
If your change affects other repositories, such as Documentation, Samples and/or MainSite, add linked PRs here.