CLI app for developers prototyping atproto functionality
1
fork

Configure Feed

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

test(oauth-client): apply normalize_timing helper to oauth test renders

After rebasing onto main's normalize_timing fix, wire the helper into the
oauth_client_{discovery,metadata,jwks} render_report_to_string helpers so
their snapshots pin `elapsed: Xms` rather than a raw timing value.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

+36 -37
+2 -1
tests/oauth_client_discovery.rs
··· 15 15 report 16 16 .render(&mut buf, &RenderConfig { no_color: true }) 17 17 .expect("render failed"); 18 - String::from_utf8(buf).expect("invalid utf-8") 18 + let rendered = String::from_utf8(buf).expect("invalid utf-8"); 19 + common::normalize_timing(rendered) 19 20 } 20 21 21 22 #[tokio::test]
+2 -1
tests/oauth_client_jwks.rs
··· 14 14 report 15 15 .render(&mut buf, &RenderConfig { no_color: true }) 16 16 .expect("render failed"); 17 - String::from_utf8(buf).expect("invalid utf-8") 17 + let rendered = String::from_utf8(buf).expect("invalid utf-8"); 18 + common::normalize_timing(rendered) 18 19 } 19 20 20 21 // =============================================================================
+2 -1
tests/oauth_client_metadata.rs
··· 14 14 report 15 15 .render(&mut buf, &RenderConfig { no_color: true }) 16 16 .expect("render failed"); 17 - String::from_utf8(buf).expect("invalid utf-8") 17 + let rendered = String::from_utf8(buf).expect("invalid utf-8"); 18 + common::normalize_timing(rendered) 18 19 } 19 20 20 21 // =============================================================================
+1 -1
tests/snapshots/oauth_client_discovery__https_404_produces_network_error.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/missing.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -2
tests/snapshots/oauth_client_discovery__https_confidential_happy_discovery.snap
··· 1 1 --- 2 2 source: tests/oauth_client_discovery.rs 3 - assertion_line: 44 4 3 expression: rendered 5 4 --- 6 5 Target: https://client.example.com/metadata.json 7 - elapsed: 0ms 6 + elapsed: Xms 8 7 9 8 == Discovery == 10 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_discovery__https_not_json_produces_spec_violation.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_discovery__https_not_json_with_content_type_produces_spec_violation_with_ct.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_discovery__https_unreachable_produces_network_error.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_discovery__loopback_127_0_0_1.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: http://127.0.0.1:3000/ 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_discovery__loopback_root_produces_skip_rows.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: http://localhost/ 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_discovery__loopback_with_port_produces_same_skip_rows.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: http://localhost:8080/client.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_jwks__discovery_failure_blocks_jwks.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_jwks__duplicate_kids_produces_spec_violation.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_jwks__inline_es256_happy_jwks_passes.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_jwks__loopback_skips_all_jwks.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: http://localhost/ 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_jwks__missing_alg_produces_spec_violation.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_jwks__public_client_skips_all_jwks.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_jwks__uri_es256_happy_jwks_passes.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_jwks__uri_invalid_json_produces_spec_violation.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_jwks__uri_returns_404_produces_network_error.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_jwks__uri_unreachable_produces_network_error.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_jwks__weak_alg_rs1_produces_spec_violation.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_jwks__wrong_use_produces_spec_violation.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -2
tests/snapshots/oauth_client_metadata__confidential_happy.snap
··· 1 1 --- 2 2 source: tests/oauth_client_metadata.rs 3 - assertion_line: 47 4 3 expression: rendered 5 4 --- 6 5 Target: https://client.example.com/metadata.json 7 - elapsed: 0ms 6 + elapsed: Xms 8 7 9 8 == Discovery == 10 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_metadata__confidential_missing_jwks.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_metadata__discovery_failure_blocks_metadata.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -2
tests/snapshots/oauth_client_metadata__dpop_bound_false.snap
··· 1 1 --- 2 2 source: tests/oauth_client_metadata.rs 3 - assertion_line: 135 4 3 expression: rendered 5 4 --- 6 5 Target: https://client.example.com/metadata.json 7 - elapsed: 0ms 6 + elapsed: Xms 8 7 9 8 == Discovery == 10 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_metadata__loopback_skips_all_metadata_checks.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: http://localhost/ 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_metadata__native_happy.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://app.example.com/oauth-client-metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_metadata__native_redirect_scheme_mismatch.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://app.example.com/oauth-client-metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_metadata__public_happy.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -1
tests/snapshots/oauth_client_metadata__public_with_token_endpoint_auth.snap
··· 3 3 expression: rendered 4 4 --- 5 5 Target: https://client.example.com/metadata.json 6 - elapsed: 0ms 6 + elapsed: Xms 7 7 8 8 == Discovery == 9 9 [OK] Client ID well-formed
+1 -2
tests/snapshots/oauth_client_metadata__scope_grammar_invalid.snap
··· 1 1 --- 2 2 source: tests/oauth_client_metadata.rs 3 - assertion_line: 258 4 3 expression: rendered 5 4 --- 6 5 Target: https://client.example.com/metadata.json 7 - elapsed: 0ms 6 + elapsed: Xms 8 7 9 8 == Discovery == 10 9 [OK] Client ID well-formed