Function
test_ssl_config
(
tls_ca_certificate_pem_path: str,
tls_ca_certificate_private_key_path: str,
)
Source from the content-addressed store, hash-verified
| 263 | |
| 264 | |
| 265 | def test_ssl_config( |
| 266 | tls_ca_certificate_pem_path: str, |
| 267 | tls_ca_certificate_private_key_path: str, |
| 268 | ) -> None: |
| 269 | config = Config( |
| 270 | app=asgi_app, |
| 271 | ssl_certfile=tls_ca_certificate_pem_path, |
| 272 | ssl_keyfile=tls_ca_certificate_private_key_path, |
| 273 | ) |
| 274 | config.load() |
| 275 | |
| 276 | assert config.is_ssl is True |
| 277 | |
| 278 | |
| 279 | def test_ssl_config_combined(tls_certificate_key_and_chain_path: str) -> None: |
Callers
nothing calls this directly
Tested by
no test coverage detected