-
Notifications
You must be signed in to change notification settings - Fork 139
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
Fixed test SSLVerifyHostName when build NATS_FORCE_HOST_VERIFICATION=OFF #788
Conversation
This test would fail unless we force host verification, so adapt test to take into consideration the expected result based on the build environment variable. Signed-off-by: Ivan Kozlovic <[email protected]>
@levb We already have quite a bit of a matrix (even within GA I mean), but do you think we need to have a new one to test with the force_host_verification disabled? It is enabled by default and I would want the lib to be like that by default, but yeah, building with it disabled showed that I did not account for that originally in that test. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #788 +/- ##
==========================================
+ Coverage 68.71% 70.65% +1.94%
==========================================
Files 39 47 +8
Lines 15207 15136 -71
Branches 3143 3090 -53
==========================================
+ Hits 10449 10694 +245
+ Misses 1700 1458 -242
+ Partials 3058 2984 -74 ☔ View full report in Codecov by Sentry. |
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;
I added a GHA job and pushed here, hope you don't mind.
@kozlovic I am now looking at the https://github.com/nats-io/nats.c/actions/runs/10322972901/job/28579373546?pr=788 failure, will send a separate PR for it, |
…ld NATS_FORCE_HOST_VERIFICATION=OFF (#788)
…ld NATS_FORCE_HOST_VERIFICATION=OFF (nats-io#788)
This test would fail unless we force host verification, so adapt test to take into consideration the expected result based on the build environment variable.
Signed-off-by: Ivan Kozlovic [email protected]