alpha
Login
or
Join now
lgtm.shop
/
commerce
Star
5
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Pilot atproto-native commerce backend
Star
5
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
commerce
/
e2e
/
at
main
2 folders
1 file
Nate Moore
M12 T48: Phase 1 end-to-end smoke test + pilot run docs
5w ago
027ea62d
src
M12 T48: Phase 1 end-to-end smoke test + pilot run docs e2e crate (e2e/src/lib.rs): - stripe_test_signature helper (t=..,v1=HMAC-SHA256) + 3 unit tests (known- answer vector, determinism, secret variation) e2e/tests/e2e.rs: - #[ignore] full-stack HTTP test (runs with docker compose up + --ignored); drives checkout → signed webhook → poll worker → attest → backer wall crates/server/tests/e2e.rs (RUNS against embedded PG): - test_phase1_full_loop_inline: full 7-step Phase 1 loop in-process via #[sqlx::test]; FakeStripe (HMAC-verifying) + FakePhysical + real ES256 receipt signing + real route handlers Steps that run live (no #[ignore]): 1 seed tenant+product+variant 2 POST /api/checkout -> checkout_url + order_id + pending_payment 3 POST /webhooks/stripe (HMAC-signed) -> order=Paid + job enqueued 4 process_paid_order inline (real adapters) -> Fulfilled + sig verified 5 POST /api/claims/attest -> attestation_ref at-uri 6 insert verified purchase_claim (simulates Jetstream indexer) 7 GET /api/backers -> exactly one verified backer Supporting changes: - public.rs: checkout response now includes order_id (required by e2e) - webhooks.rs: PaymentCaptured handler now updates order status to Paid before enqueuing (fixes the pending_payment -> Paid transition gap) - README.md: "Running the pilot (Phase 1)" + "Deferred to Phase 1.5+" Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 month ago
tests
M12 T48: Phase 1 end-to-end smoke test + pilot run docs e2e crate (e2e/src/lib.rs): - stripe_test_signature helper (t=..,v1=HMAC-SHA256) + 3 unit tests (known- answer vector, determinism, secret variation) e2e/tests/e2e.rs: - #[ignore] full-stack HTTP test (runs with docker compose up + --ignored); drives checkout → signed webhook → poll worker → attest → backer wall crates/server/tests/e2e.rs (RUNS against embedded PG): - test_phase1_full_loop_inline: full 7-step Phase 1 loop in-process via #[sqlx::test]; FakeStripe (HMAC-verifying) + FakePhysical + real ES256 receipt signing + real route handlers Steps that run live (no #[ignore]): 1 seed tenant+product+variant 2 POST /api/checkout -> checkout_url + order_id + pending_payment 3 POST /webhooks/stripe (HMAC-signed) -> order=Paid + job enqueued 4 process_paid_order inline (real adapters) -> Fulfilled + sig verified 5 POST /api/claims/attest -> attestation_ref at-uri 6 insert verified purchase_claim (simulates Jetstream indexer) 7 GET /api/backers -> exactly one verified backer Supporting changes: - public.rs: checkout response now includes order_id (required by e2e) - webhooks.rs: PaymentCaptured handler now updates order status to Paid before enqueuing (fixes the pending_payment -> Paid transition gap) - README.md: "Running the pilot (Phase 1)" + "Deferred to Phase 1.5+" Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 month ago
Cargo.toml
M12 T48: Phase 1 end-to-end smoke test + pilot run docs e2e crate (e2e/src/lib.rs): - stripe_test_signature helper (t=..,v1=HMAC-SHA256) + 3 unit tests (known- answer vector, determinism, secret variation) e2e/tests/e2e.rs: - #[ignore] full-stack HTTP test (runs with docker compose up + --ignored); drives checkout → signed webhook → poll worker → attest → backer wall crates/server/tests/e2e.rs (RUNS against embedded PG): - test_phase1_full_loop_inline: full 7-step Phase 1 loop in-process via #[sqlx::test]; FakeStripe (HMAC-verifying) + FakePhysical + real ES256 receipt signing + real route handlers Steps that run live (no #[ignore]): 1 seed tenant+product+variant 2 POST /api/checkout -> checkout_url + order_id + pending_payment 3 POST /webhooks/stripe (HMAC-signed) -> order=Paid + job enqueued 4 process_paid_order inline (real adapters) -> Fulfilled + sig verified 5 POST /api/claims/attest -> attestation_ref at-uri 6 insert verified purchase_claim (simulates Jetstream indexer) 7 GET /api/backers -> exactly one verified backer Supporting changes: - public.rs: checkout response now includes order_id (required by e2e) - webhooks.rs: PaymentCaptured handler now updates order status to Paid before enqueuing (fixes the pending_payment -> Paid transition gap) - README.md: "Running the pilot (Phase 1)" + "Deferred to Phase 1.5+" Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 month ago