-
Notifications
You must be signed in to change notification settings - Fork 1
Test: verify Honeygain collector works with expired JWT #4
Copy link
Copy link
Open
Labels
good first issueGood for newcomersGood for newcomerspinnedExempt from stale bot auto-closeExempt from stale bot auto-close
Description
Context
The Honeygain collector (app/collectors/honeygain.py) authenticates via JWT. When the JWT expires mid-collection, the collector should handle it gracefully.
Task
- Write a test in
tests/test_collectors.pythat mocks an expired JWT response (401) from the Honeygain API - Verify the collector returns a sensible error value (not a crash)
- Verify logs include a clear message about auth failure
Reference
app/collectors/honeygain.py— current implementationapp/collectors/base.py— BaseCollector interface
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomerspinnedExempt from stale bot auto-closeExempt from stale bot auto-close