Our Personal Data Server from scratch! tranquil.farm
oauth atproto pds rust postgresql objectstorage fun

fix(test): update test_server_basics to reflect new health endpoint format #37

merged opened by nel.pet targeting main from fix/fix-test-server-basics
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:h5wsnqetncv6lu2weom35lg2/sh.tangled.repo.pull/3mgghbbwyyu22
+7 -1
Diff #0
+7 -1
crates/tranquil-pds/tests/server.rs
··· 11 11 let base = base_url().await; 12 12 let health = client.get(format!("{}/health", base)).send().await.unwrap(); 13 13 assert_eq!(health.status(), StatusCode::OK); 14 - assert_eq!(health.text().await.unwrap(), "OK"); 14 + assert!( 15 + health 16 + .text() 17 + .await 18 + .unwrap() 19 + .starts_with("{\"version\":\"tranquil ") 20 + ); 15 21 let describe = client 16 22 .get(format!("{}/xrpc/com.atproto.server.describeServer", base)) 17 23 .send()

History

1 round 0 comments
sign up or login to add to the discussion
nel.pet submitted #0
1 commit
expand
fix(test): update test_server_basics to reflect new health endpoint format
expand 0 comments
pull request successfully merged