Test TLS key generation with alt names.
()
| 214 | |
| 215 | |
| 216 | def test_tls_key_with_alt_names(): |
| 217 | """Test TLS key generation with alt names.""" |
| 218 | client = DstackClient() |
| 219 | alt_names = ["localhost", "127.0.0.1"] |
| 220 | result = client.get_tls_key( |
| 221 | subject="test-subject", |
| 222 | alt_names=alt_names, |
| 223 | usage_ra_tls=True, |
| 224 | usage_server_auth=True, |
| 225 | usage_client_auth=True, |
| 226 | ) |
| 227 | assert isinstance(result, GetTlsKeyResponse) |
| 228 | assert result.key is not None |
| 229 | assert len(result.certificate_chain) > 0 |
| 230 | |
| 231 | |
| 232 | def test_unix_socket_file_not_exist(): |
nothing calls this directly
no test coverage detected