MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / test_tls_key_with_alt_names

Function test_tls_key_with_alt_names

sdk/python/tests/test_client.py:216–229  ·  view source on GitHub ↗

Test TLS key generation with alt names.

()

Source from the content-addressed store, hash-verified

214
215
216def 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
232def test_unix_socket_file_not_exist():

Callers

nothing calls this directly

Calls 2

get_tls_keyMethod · 0.95
DstackClientClass · 0.90

Tested by

no test coverage detected