[CDRIVER-3641] Enable mock server tests with all TLS libraries Created: 28/Apr/20 Updated: 09/Feb/23 |
|
| Status: | Backlog |
| Project: | C Driver |
| Component/s: | tests, tls |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Kevin Albertson | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | platform-problems | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | CDRIVER-2733 |
| Description |
|
The mock server indicates it supports TLS connections (providing mock_server_set_ssl_opts), but only appears to fully support TLS with OpenSSL. In particular, this limitation came up in There are a lot of other TLS tests using the mock server, but those tests are limited to OpenSSL or Secure Transport. It also appears all tests using the ssl_test are not run on Secure Channel either (see test-mongoc-stream-tls.c and test-mongoc-stream-tls-error.c). If we really cannot support TLS connections in the mock server outside of OpenSSL, at the very least we should at least make the mock server clearly fail at runtime if configuring with TLS and Secure Channel so we don't need to rediscover this later. |