Test Tools

Utilities to test allocation, concurrency, and webhook idempotency.

Reset All Provider Quotas

Sends a unique webhook event to reset usedQuota to 0 for all providers.

Trigger Webhook × 3 (Same Event ID)

Fires the reset-quota webhook 3 times with the same eventId to verify idempotency. Only the first call should have effect.

Generate 10 Leads Concurrently

Creates 10 leads simultaneously across all services to stress-test the concurrency-safe allocation algorithm.