-
Notifications
You must be signed in to change notification settings - Fork 851
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
Test on Windows do not pass #3619
Comments
If you have access to a windows dev machine and can put in a PR to fix this, that would be great. None of the maintainers have one at this point (that I know of). |
That would be my future task. I have just started and don't have enough knowledge to fix it yet. I'll assign it to myself and get to it when I feel strong about it. |
Hmm. Apparently, I cannot assign it to myself. Can you grant me permissions and add me to contributors? |
assigned to you. |
Problem identifiedThis code sets a certificate. It is so happens that okhttp or its internals search requested host in subjectAlternativeNames and not in commonName. The host resolution at this line works differently on Linux and Winodws (and maybe on other OSs too). Therefore, test will work incorrectly on at least one of these OSs. SolutionUse this resolved canonical name everywhere in the test instead of hardcoded Example changeCanonical host name is resolved and stored and then used in tests instead of Future workThis was an example implementation to make tests pass in this particular class. Some other test classes can benefit from this as well as all other hardcoded |
Fixed in #3770. |
.\gradlew.bat build
output:A little more informative output of
.\gradlew.bat build --info
:One of the participants on Slack channel suspected that Linux and Windows may behave differently in localhost resolution here.
opentelemetry-java/sdk-extensions/autoconfigure/src/testOtlpHttp/java/io/opentelemetry/sdk/autoconfigure/OtlpHttpConfigTest.java
Line 87 in 2670fe2
The text was updated successfully, but these errors were encountered: