Skip to content

Tests — HTTP Endpoint Tests #46

@whisper67265

Description

@whisper67265

Problem

The boost endpoint's HTTP layer (views, URL routing, authentication) has no test coverage. Without tests, regressions in input validation, auth enforcement, or response shapes will go undetected. A comprehensive HTTP test is needed that exercises the DRF views through Django's test client, covering happy paths, validation failures, and authentication edge cases.

Acceptance Criteria

  • GET /info/ returns 200 with JSON containing name, version, and capabilities keys
  • POST /add-or-update/ with valid payload and valid authentication returns 202 with a JSON body
  • Unauthenticated POST /add-or-update/ returns 401 or 403
  • Authentication with an invalid token returns 401 or 403

References

  • Related files: views.py, urls.py, tasks.py

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions