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

Function check_info_response

sdk/python/tests/test_client.py:72–85  ·  view source on GitHub ↗
(result: InfoResponse)

Source from the content-addressed store, hash-verified

70
71
72def check_info_response(result: InfoResponse):
73 assert isinstance(result, InfoResponse)
74 assert isinstance(result.app_id, str)
75 assert isinstance(result.instance_id, str)
76 assert isinstance(result.tcb_info, TcbInfo)
77 assert len(result.tcb_info.mrtd) == 96
78 assert len(result.tcb_info.rtmr0) == 96
79 assert len(result.tcb_info.rtmr1) == 96
80 assert len(result.tcb_info.rtmr2) == 96
81 assert len(result.tcb_info.rtmr3) == 96
82 assert len(result.tcb_info.compose_hash) == 64
83 assert len(result.tcb_info.device_id) == 64
84 assert len(result.tcb_info.app_compose) > 0
85 assert len(result.tcb_info.event_log) > 0
86
87
88@pytest.mark.asyncio

Calls

no outgoing calls

Tested by

no test coverage detected