GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — Don't use the network in OcspClientTest.simpleOcspQueryTest by normanmaurer · Pull Request #17908 · netty/netty Conversation
Member
Motivation:
Modification:
Result:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsMotivation: `OcspClientTest.simpleOcspQueryTest` fetched the certificate chain from `https://apple.com` and then sent the OCSP query to Apple's real responder. This makes the test flaky whenever the network is unreliable, which regularly happens on GitHub runners. Modification: - Start a local Netty HTTP server on 127.0.0.1 that acts as OCSP responder. It parses the OCSP request and answers with a signed `good` response that echoes the nonce. - Generate the CA and server certificate with `CertificateBuilder`, with an OCSP URL that points to the local server. - Enable nonce validation in the test. Result: `simpleOcspQueryTest` only talks to localhost and no longer depends on external hosts.
|
There was an error while loading. Please reload this page.
🚨 TestLens detected 1 failed test 🚨Test SummaryTip Inspect all details with the TestLens CLI: Build PR / macos-aarch64-java11-boringssl build > Netty/Transport/Native/KQueue
🏷️ Commit: 31458a9 Test FailuresKQueueETSocketHalfClosedTest > testAllDataReadClosure(TestInfo) (Netty/Transport/Native/KQueue in Build PR / macos-aarch64-java11-boringssl build)Rerun ControlsSelect tests to mute in this pull request:
Reuse successful test results:
Click the checkbox to trigger a rerun:
Learn more about TestLens at testlens.app/docs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Could not create auto-port PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Could not create auto-port PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Port for 5.0 #17920 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…17920) Motivation: `OcspClientTest.simpleOcspQueryTest` fetched the certificate chain from `https://apple.com` and then sent the OCSP query to Apple's real responder. This makes the test flaky whenever the network is unreliable, which regularly happens on GitHub runners. Modification: - Start a local Netty HTTP server on 127.0.0.1 that acts as OCSP responder. It parses the OCSP request and answers with a signed `good` response that echoes the nonce. - Generate the CA and server certificate with `CertificateBuilder`, with an OCSP URL that points to the local server. - Enable nonce validation in the test. Result: `simpleOcspQueryTest` only talks to localhost and no longer depends on external hosts.
Motivation: `OcspClientTest.simpleOcspQueryTest` and `OcspServerCertificateValidatorTest.connectUsingHttpAndValidateCertificateUsingOcspTest` fetch the certificate chain from `https://apple.com` and then send the OCSP query to Apple's real responder. This makes the tests flaky whenever the network is unreliable, which regularly happens on GitHub runners (for example with a `ConnectTimeoutException` to `ocsp.apple.com:80` or a failed `assertTrue(ocspStatus.get())`). Modification: - Add `OcspTestUtil` with a local Netty HTTP server on 127.0.0.1 that acts as OCSP responder. It parses the OCSP request and answers with a signed `good` response that echoes the nonce. It also contains the BouncyCastle helpers to generate the CA and server certificates with an OCSP URL that points to the local server. 4.1 has no `pkitesting` module, so `buildCertificate` accepts additional extensions. - Use it in `OcspClientTest.simpleOcspQueryTest` and enable nonce validation there. - Use it in `OcspServerCertificateValidatorTest` together with a local TLS server whose certificate points at the local OCSP responder. Result: Both tests only talk to localhost and no longer depend on external hosts.
…18038) Motivation: `OcspClientTest.simpleOcspQueryTest` and `OcspServerCertificateValidatorTest.connectUsingHttpAndValidateCertificateUsingOcspTest` fetch the certificate chain from `https://apple.com`/ and then send the OCSP query to Apple's real responder. This makes the tests flaky whenever the network is unreliable, which regularly happens on GitHub runners (for example with a `ConnectTimeoutException` to `ocsp.apple.com:80` or a failed `assertTrue(ocspStatus.get())`). Modification: - Add `OcspTestUtil` with a local Netty HTTP server on 127.0.0.1 that acts as OCSP responder. It parses the OCSP request and answers with a signed `good` response that echoes the nonce. It also contains the BouncyCastle helpers to generate the CA and server certificates with an OCSP URL that points to the local server. 4.1 has no `pkitesting` module, so `buildCertificate` accepts additional extensions. - Use it in `OcspClientTest.simpleOcspQueryTest` and enable nonce validation there. - Use it in `OcspServerCertificateValidatorTest` together with a local TLS server whose certificate points at the local OCSP responder. Result: Both tests only talk to localhost and no longer depend on external hosts.
…y#17933) (netty#18038) Motivation: `OcspClientTest.simpleOcspQueryTest` and `OcspServerCertificateValidatorTest.connectUsingHttpAndValidateCertificateUsingOcspTest` fetch the certificate chain from `https://apple.com`/ and then send the OCSP query to Apple's real responder. This makes the tests flaky whenever the network is unreliable, which regularly happens on GitHub runners (for example with a `ConnectTimeoutException` to `ocsp.apple.com:80` or a failed `assertTrue(ocspStatus.get())`). Modification: - Add `OcspTestUtil` with a local Netty HTTP server on 127.0.0.1 that acts as OCSP responder. It parses the OCSP request and answers with a signed `good` response that echoes the nonce. It also contains the BouncyCastle helpers to generate the CA and server certificates with an OCSP URL that points to the local server. 4.1 has no `pkitesting` module, so `buildCertificate` accepts additional extensions. - Use it in `OcspClientTest.simpleOcspQueryTest` and enable nonce validation there. - Use it in `OcspServerCertificateValidatorTest` together with a local TLS server whose certificate points at the local OCSP responder. Result: Both tests only talk to localhost and no longer depend on external hosts.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.