-
Notifications
You must be signed in to change notification settings - Fork 518
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
[tests] Fix certificate tests after Apple started blocking the Thawte certificate. #19650
Conversation
… certificate. The “Thawte SGC CA” certificate we're using for testing is now blocked by Apple, evaluating trust results in this error: > “Thawte SGC CA” certificate is blocked So update the certificates to today: the mail_google_com certificate, and add the corresponding two parent certificates (including the root certificate). Then adjust the tests accordingly. Finally delete all unused certificates from the code. Fixes these test failures: MonoTouchFixtures.Security.TrustTest [FAIL] Trust_FullChain : GetTrustResult-2 Expected: RecoverableTrustFailure But was: FatalTrustFailure at MonoTouchFixtures.Security.TrustTest.Trust_FullChain(SecTrust trust, SecPolicy policy, X509CertificateCollection certs) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 389 at MonoTouchFixtures.Security.TrustTest.Trust_FullChain() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 321 [FAIL] Trust2_FullChain : GetTrustResult-2 Expected: RecoverableTrustFailure But was: FatalTrustFailure at MonoTouchFixtures.Security.TrustTest.Trust_FullChain(SecTrust trust, SecPolicy policy, X509CertificateCollection certs) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 389 at MonoTouchFixtures.Security.TrustTest.Trust2_FullChain() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 449
This comment has been minimized.
This comment has been minimized.
📚 [PR Build] Artifacts 📚Packages generatedView packagesPipeline on Agent |
💻 [CI Build] Windows Integration Tests passed 💻✅ All Windows Integration Tests passed. Pipeline on Agent |
💻 [CI Build] Windows Integration Tests passed 💻✅ All Windows Integration Tests passed. Pipeline on Agent |
📚 [PR Build] Artifacts 📚Packages generatedView packagesPipeline on Agent |
💻 [CI Build] Tests on macOS M1 - Mac Ventura (13.0) passed 💻✅ All tests on macOS M1 - Mac Ventura (13.0) passed. Pipeline on Agent |
💻 [CI Build] Tests on macOS M1 - Mac Big Sur (11.5) passed 💻✅ All tests on macOS M1 - Mac Big Sur (11.5) passed. Pipeline on Agent |
✅ API diff for current PR / commitLegacy Xamarin (No breaking changes)
NET (empty diffs)
✅ API diff vs stableLegacy Xamarin (No breaking changes).NET (No breaking changes)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
🔥 [CI Build] Test results 🔥Test results❌ Tests failed on VSTS: simulator tests 0 tests crashed, 1 tests failed, 234 tests passed. Failures❌ monotouch tests
Html Report (VSDrops) Download Successes✅ bcl: All 69 tests passed. Html Report (VSDrops) Download Pipeline on Agent |
Test failure is unrelated: https://github.com/xamarin/maccore/issues/868 |
/sudo backport release/8.0.1xx |
Backport Job to branch release/8.0.1xx Created! The magic is happening here |
Oh no! Backport failed! Please see https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=8826430 for more details. |
…locking the Thawte certificate. The “Thawte SGC CA” certificate we're using for testing is now blocked by Apple, evaluating trust results in this error: > “Thawte SGC CA” certificate is blocked So update the mail_google_com certificates to what mail.google.com serves now, and also update the corresponding parent certificates (which have changed). Then adjust the tests accordingly. Finally delete all unused certificates from the code. Fixes these test failures: MonoTouchFixtures.Security.TrustTest [FAIL] Trust_FullChain : GetTrustResult-2 Expected: RecoverableTrustFailure But was: FatalTrustFailure at MonoTouchFixtures.Security.TrustTest.Trust_FullChain(SecTrust trust, SecPolicy policy, X509CertificateCollection certs) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 389 at MonoTouchFixtures.Security.TrustTest.Trust_FullChain() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 321 [FAIL] Trust2_FullChain : GetTrustResult-2 Expected: RecoverableTrustFailure But was: FatalTrustFailure at MonoTouchFixtures.Security.TrustTest.Trust_FullChain(SecTrust trust, SecPolicy policy, X509CertificateCollection certs) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 389 at MonoTouchFixtures.Security.TrustTest.Trust2_FullChain() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 449 Backport of xamarin#19650.
…locking the Thawte certificate. (#19665) The “Thawte SGC CA” certificate we're using for testing is now blocked by Apple, evaluating trust results in this error: > “Thawte SGC CA” certificate is blocked So update the mail_google_com certificates to what mail.google.com serves now, and also update the corresponding parent certificates (which have changed). Then adjust the tests accordingly. Finally delete all unused certificates from the code. Fixes these test failures: MonoTouchFixtures.Security.TrustTest [FAIL] Trust_FullChain : GetTrustResult-2 Expected: RecoverableTrustFailure But was: FatalTrustFailure at MonoTouchFixtures.Security.TrustTest.Trust_FullChain(SecTrust trust, SecPolicy policy, X509CertificateCollection certs) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 389 at MonoTouchFixtures.Security.TrustTest.Trust_FullChain() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 321 [FAIL] Trust2_FullChain : GetTrustResult-2 Expected: RecoverableTrustFailure But was: FatalTrustFailure at MonoTouchFixtures.Security.TrustTest.Trust_FullChain(SecTrust trust, SecPolicy policy, X509CertificateCollection certs) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 389 at MonoTouchFixtures.Security.TrustTest.Trust2_FullChain() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 449 Backport of #19650.
/sudo backport release/7.0.3xx |
Backport Job to branch release/7.0.3xx Created! The magic is happening here |
Oh no! Backport failed! Please see https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=8913267 for more details. |
… certificate. (xamarin#19650) The “Thawte SGC CA” certificate we're using for testing is now blocked by Apple, evaluating trust results in this error: > “Thawte SGC CA” certificate is blocked So update the mail_google_com certificates to what mail.google.com serves now, and also update the corresponding parent certificates (which have changed). Then adjust the tests accordingly. Finally delete all unused certificates from the code. Fixes these test failures: MonoTouchFixtures.Security.TrustTest [FAIL] Trust_FullChain : GetTrustResult-2 Expected: RecoverableTrustFailure But was: FatalTrustFailure at MonoTouchFixtures.Security.TrustTest.Trust_FullChain(SecTrust trust, SecPolicy policy, X509CertificateCollection certs) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 389 at MonoTouchFixtures.Security.TrustTest.Trust_FullChain() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 321 [FAIL] Trust2_FullChain : GetTrustResult-2 Expected: RecoverableTrustFailure But was: FatalTrustFailure at MonoTouchFixtures.Security.TrustTest.Trust_FullChain(SecTrust trust, SecPolicy policy, X509CertificateCollection certs) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 389 at MonoTouchFixtures.Security.TrustTest.Trust2_FullChain() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 449
…locking the Thawte certificate. (#19800) The “Thawte SGC CA” certificate we're using for testing is now blocked by Apple, evaluating trust results in this error: > “Thawte SGC CA” certificate is blocked So update the mail_google_com certificates to what mail.google.com serves now, and also update the corresponding parent certificates (which have changed). Then adjust the tests accordingly. Finally delete all unused certificates from the code. Fixes these test failures: MonoTouchFixtures.Security.TrustTest [FAIL] Trust_FullChain : GetTrustResult-2 Expected: RecoverableTrustFailure But was: FatalTrustFailure at MonoTouchFixtures.Security.TrustTest.Trust_FullChain(SecTrust trust, SecPolicy policy, X509CertificateCollection certs) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 389 at MonoTouchFixtures.Security.TrustTest.Trust_FullChain() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 321 [FAIL] Trust2_FullChain : GetTrustResult-2 Expected: RecoverableTrustFailure But was: FatalTrustFailure at MonoTouchFixtures.Security.TrustTest.Trust_FullChain(SecTrust trust, SecPolicy policy, X509CertificateCollection certs) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 389 at MonoTouchFixtures.Security.TrustTest.Trust2_FullChain() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/Security/TrustTest.cs:line 449 Backport of #19650.
The “Thawte SGC CA” certificate we're using for testing is now blocked by
Apple, evaluating trust results in this error:
So update the mail_google_com certificates to what mail.google.com serves now, and also update the corresponding parent certificates (which have changed).
Then adjust the tests accordingly.
Finally delete all unused certificates from the code.
Fixes these test failures: