Hi all, Test security/infra/java/security/cert/CertPathValidator/certification/SectigoCSRootCAs.java fails when there is no internet connection. This PR check the outbound network connection to http://crl.sectigo.com/SectigoPublicCodeSigningRootR46.crl or ocsp.sectigo.com before test executed. I think if there is no network connection, test should not report failure, because it's not jvm bug or test bug. It's enviroenmental issue, so maybe it's better to throw SkippedException.
Additional testing: - [x] The environmental which need proxy, and the proxy is set correctly, test should be run passed - [x] The environmental which need proxy, and the proxy is unset, test should report skip - [x] The environmental do not need proxy, test should be run passed - [x] The environmental do not network at all, test should report skip --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - 8382215: SectigoCSRootCAs.java fails when there is no internet connection Changes: https://git.openjdk.org/jdk/pull/30740/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30740&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8382215 Stats: 56 lines in 1 file changed: 53 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/30740.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30740/head:pull/30740 PR: https://git.openjdk.org/jdk/pull/30740
