-
Notifications
You must be signed in to change notification settings - Fork 171
Improve Common.Certificates internals and tests #1523
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
Conversation
a8fa12e to
2b58d74
Compare
bart-vmware
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.
Thanks!
|
Should probably dispose |
bart-vmware
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.
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 |
src/Common/test/Certificates.Test/ConfigureCertificateOptionsTest.cs
Outdated
Show resolved
Hide resolved
src/Common/test/Certificates.Test/ConfigureCertificateOptionsTest.cs
Outdated
Show resolved
Hide resolved
src/Common/test/Certificates.Test/ConfigureCertificateOptionsTest.cs
Outdated
Show resolved
Hide resolved
src/Common/test/Certificates.Test/ConfigureCertificateOptionsTest.cs
Outdated
Show resolved
Hide resolved
src/Common/test/Certificates.Test/ConfigureCertificateOptionsTest.cs
Outdated
Show resolved
Hide resolved
src/Common/test/Certificates.Test/ConfigureCertificateOptionsTest.cs
Outdated
Show resolved
Hide resolved
src/Common/test/Certificates.Test/ConfigureCertificateOptionsTest.cs
Outdated
Show resolved
Hide resolved
src/Common/test/Certificates.Test/ConfigureCertificateOptionsTest.cs
Outdated
Show resolved
Hide resolved
src/Common/test/Certificates.Test/ConfigureCertificateOptionsTest.cs
Outdated
Show resolved
Hide resolved
- 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
src/Common/src/Certificates/CertificateConfigurationExtensions.cs
Outdated
Show resolved
Hide resolved
src/Common/src/Certificates/CertificateServiceCollectionExtensions.cs
Outdated
Show resolved
Hide resolved
src/Common/test/Certificates.Test/ConfigureCertificateOptionsTest.cs
Outdated
Show resolved
Hide resolved
src/Common/test/Certificates.Test/ConfigureCertificateOptionsTest.cs
Outdated
Show resolved
Hide resolved
src/Common/test/Certificates.Test/ConfigureCertificateOptionsTest.cs
Outdated
Show resolved
Hide resolved
src/Common/test/Certificates.Test/ConfigureCertificateOptionsTest.cs
Outdated
Show resolved
Hide resolved
src/Common/test/Certificates.Test/ConfigureCertificateOptionsTest.cs
Outdated
Show resolved
Hide resolved
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, aside from a redundant assertion. Please rebase on main.
src/Common/test/Certificates.Test/ConfigureCertificateOptionsTest.cs
Outdated
Show resolved
Hide resolved
…est.cs Co-authored-by: Bart Koelman <[email protected]>
|




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.