this repo has no description
1mod common; 2use common::*; 3use reqwest::StatusCode; 4 5#[tokio::test] 6async fn test_get_repo() { 7 let client = client(); 8 let params = [ 9 ("did", AUTH_DID), 10 ]; 11 let res = client.get(format!("{}/xrpc/com.atproto.sync.getRepo", base_url().await)) 12 .query(&params) 13 .send() 14 .await 15 .expect("Failed to send request"); 16 17 assert_eq!(res.status(), StatusCode::OK); 18} 19 20#[tokio::test] 21async fn test_get_blocks() { 22 let client = client(); 23 let params = [ 24 ("did", AUTH_DID), 25 // "cids" would be a list of CIDs 26 ]; 27 let res = client.get(format!("{}/xrpc/com.atproto.sync.getBlocks", base_url().await)) 28 .query(&params) 29 .send() 30 .await 31 .expect("Failed to send request"); 32 33 assert_eq!(res.status(), StatusCode::OK); 34}