Comprehensive Worker API Test Suite
Step-by-step testing of all worker API endpoints. Each test runs individually and shows detailed results. Tests include async job polling and progress tracking.
Default: "Me at the zoo" (short test video). Change to test with different videos.
Test Coverage
- Test 0: Create Video Profile - Fetches video details from YouTube API and inserts into ops_yt.metadata
- Test 1: Environment Variables - Checks WORKER_URL and WORKER_API_KEY configuration
- Test 2: Health Check - Tests GET /health endpoint (no auth required)
- Test 3: Authentication - Tests GET /auth-check with X-Worker-Token header
- Test 4: Download MP3 - Tests POST /download-yt-mp3 (async job, no auth required)
- Test 5: Download Full Audio - Tests POST /download/full (async job, auth required)
- Test 6: Download Chunk - Tests POST /download/chunk (async job, auth required)
- Test 6.5: Ensure Video in Streams Table - Adds video to database (required for process-stream)
- Test 7: Process Stream - Tests POST /process-stream (async job with progress, auth required)
All async job tests include automatic polling until completion or failure. Process Stream test shows real-time progress updates.