mirror of
https://tangled.org/tranquil.farm/tranquil-pds
synced 2026-02-08 21:30:08 +00:00
37 lines
834 B
Rust
37 lines
834 B
Rust
mod common;
|
|
use common::*;
|
|
use reqwest::StatusCode;
|
|
|
|
#[tokio::test]
|
|
#[ignore]
|
|
async fn test_get_repo() {
|
|
let client = client();
|
|
let params = [
|
|
("did", AUTH_DID),
|
|
];
|
|
let res = client.get(format!("{}/xrpc/com.atproto.sync.getRepo", base_url().await))
|
|
.query(¶ms)
|
|
.send()
|
|
.await
|
|
.expect("Failed to send request");
|
|
|
|
assert_eq!(res.status(), StatusCode::OK);
|
|
}
|
|
|
|
#[tokio::test]
|
|
#[ignore]
|
|
async fn test_get_blocks() {
|
|
let client = client();
|
|
let params = [
|
|
("did", AUTH_DID),
|
|
// "cids" would be a list of CIDs
|
|
];
|
|
let res = client.get(format!("{}/xrpc/com.atproto.sync.getBlocks", base_url().await))
|
|
.query(¶ms)
|
|
.send()
|
|
.await
|
|
.expect("Failed to send request");
|
|
|
|
assert_eq!(res.status(), StatusCode::OK);
|
|
}
|