An easy-to-host PDS on the ATProtocol, iPhone and MacOS. Maintain control of your keys and data, always.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(identity-wallet): fix test_submit_claim_success mock to use local endpoint

Point PDS endpoint in mock DID document to mock_server.base_url() so the
HEAD reachability check routes through the mock server instead of hitting
the real internet.

authored by

Malpercio and committed by
Tangled
b88f5713 cf060aee

+6 -4
+6 -4
apps/identity-wallet/src-tauri/src/claim.rs
··· 2314 2314 }); 2315 2315 2316 2316 // Mock GET to plc.directory (re-fetch DID doc) 2317 + // Use mock_server.base_url() as PDS endpoint so HEAD reachability check 2318 + // routes through the mock server instead of hitting the real internet. 2319 + let pds_endpoint = mock_server.base_url(); 2317 2320 let updated_doc = serde_json::json!({ 2318 2321 "did": "did:plc:test", 2319 2322 "alsoKnownAs": ["at://alice.example.com"], ··· 2322 2325 "services": { 2323 2326 "atproto_pds": { 2324 2327 "type": "AtprotoPersonalDataServer", 2325 - "endpoint": "https://pds.example.com" 2328 + "endpoint": pds_endpoint 2326 2329 } 2327 2330 } 2328 2331 }); ··· 2336 2339 .json_body(updated_doc.clone()); 2337 2340 }); 2338 2341 2339 - // Mock HEAD to plc.directory (reachability check) 2342 + // Mock HEAD request for PDS reachability check 2340 2343 mock_server.mock(|when, then| { 2341 - when.method(httpmock::Method::HEAD) 2342 - .path_contains("pds.example.com"); 2344 + when.method(httpmock::Method::HEAD); 2343 2345 then.status(200); 2344 2346 }); 2345 2347