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

Function test_info

sdk/rust/tests/test_client.rs:90–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88
89#[tokio::test]
90async fn test_info() {
91 let client = AsyncDstackClient::new(None);
92 let info = client.info().await.unwrap();
93 assert!(!info.app_id.is_empty());
94 assert!(!info.instance_id.is_empty());
95 assert!(!info.app_cert.is_empty());
96 assert!(!info.tcb_info.mrtd.is_empty());
97 assert!(!info.tcb_info.rtmr0.is_empty());
98 assert!(!info.tcb_info.rtmr1.is_empty());
99 assert!(!info.tcb_info.rtmr2.is_empty());
100 assert!(!info.tcb_info.rtmr3.is_empty());
101 assert!(!info.tcb_info.compose_hash.is_empty());
102 assert!(!info.tcb_info.device_id.is_empty());
103 assert!(!info.tcb_info.app_compose.is_empty());
104 assert!(!info.tcb_info.event_log.is_empty());
105 assert!(!info.app_name.is_empty());
106 assert!(!info.device_id.is_empty());
107 assert!(!info.key_provider_info.is_empty());
108 assert!(!info.compose_hash.is_empty());
109}
110
111#[tokio::test]
112async fn test_async_client_sign_and_verify_ed25519() {

Callers

nothing calls this directly

Calls 1

infoMethod · 0.45

Tested by

no test coverage detected