Skip to content

Test: verify Honeygain collector works with expired JWT #4

@GeiserX

Description

@GeiserX

Context

The Honeygain collector (app/collectors/honeygain.py) authenticates via JWT. When the JWT expires mid-collection, the collector should handle it gracefully.

Task

  1. Write a test in tests/test_collectors.py that mocks an expired JWT response (401) from the Honeygain API
  2. Verify the collector returns a sensible error value (not a crash)
  3. Verify logs include a clear message about auth failure

Reference

  • app/collectors/honeygain.py — current implementation
  • app/collectors/base.py — BaseCollector interface

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions