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

Function test_tappd_client_info_integration

sdk/rust/tests/test_tappd_client.rs:32–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31#[tokio::test]
32async fn test_tappd_client_info_integration() {
33 let client = get_test_client();
34 let info = client.info().await.unwrap();
35
36 println!("✓ Info request successful");
37 println!(" App ID: {}", info.app_id);
38 println!(" Instance ID: {}", info.instance_id);
39 println!(" App Name: {}", info.app_name);
40
41 // Validate response structure
42 assert!(!info.app_id.is_empty());
43 assert!(!info.instance_id.is_empty());
44 assert!(!info.app_name.is_empty());
45 assert!(!info.tcb_info.app_compose.is_empty());
46 assert!(!info.tcb_info.mrtd.is_empty());
47 assert!(!info.tcb_info.rtmr0.is_empty());
48 assert!(!info.tcb_info.rtmr1.is_empty());
49 assert!(!info.tcb_info.rtmr2.is_empty());
50 assert!(!info.tcb_info.rtmr3.is_empty());
51 assert!(!info.tcb_info.event_log.is_empty());
52}
53
54#[tokio::test]
55async fn test_tappd_client_derive_key_integration() {

Callers

nothing calls this directly

Calls 2

get_test_clientFunction · 0.85
infoMethod · 0.45

Tested by

no test coverage detected