-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[fips140][configtls.TestTPM_tpmCertificate_errors] Skip test if GODEBUG=fips140=only is set
#14255
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?
[fips140][configtls.TestTPM_tpmCertificate_errors] Skip test if GODEBUG=fips140=only is set
#14255
Conversation
CodSpeed Performance ReportMerging #14255 will not alter performanceComparing
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14255 +/- ##
==========================================
- Coverage 92.15% 92.13% -0.03%
==========================================
Files 668 668
Lines 41492 41492
==========================================
- Hits 38239 38227 -12
- Misses 2218 2226 +8
- Partials 1035 1039 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
dmathieu
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.
I don't know about this. It silently skips tests, and seeing which test is being skipped could be unclear.
I think it would be clearer (though more verbose) to explicitly skip within eaach test rather than within an helper.
Makes sense. Updated in d0cff30. |
560225c to
d0cff30
Compare
63d509b to
8a96420
Compare
8a96420 to
26220bd
Compare
|
Hi @dmathieu @bogdandrutu, the CI failures in this PR seem unrelated to the changes in this PR. I've tried rebasing on the latest |
Description
In #14225, we skipped the
configtls.TestTPM_loadCertificateunit test if the tests were run withGODEBUG=fips140=only. Otherwise, the unit test failed with apanic: crypto/cipher: use of CFB is not allowed in FIPS 140-only modeerror.Turns out there was a second unit test in the same package that needed skipping for the same reason:
configtls.TestTPM_tpmCertificate_errors. This PR skips it too.Link to tracking issue
Follow up to #14225