Skip to content

[TESTING] Write API integration tests for vaccination endpoints #339

@dev-fatima-24

Description

@dev-fatima-24

Priority: critical

Description

The vaccination issue and fetch endpoints need integration tests with mocked Soroban RPC calls to verify the full request/response cycle.

Acceptance Criteria

  • Test: POST /v1/vaccination/issue with issuer JWT and valid body returns 201
  • Test: POST /v1/vaccination/issue with patient JWT returns 403
  • Test: POST /v1/vaccination/issue with duplicate record returns 409
  • Test: GET /v1/vaccination/:wallet with valid JWT returns records array
  • Test: GET /v1/vaccination/:wallet with invalid wallet format returns 400

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions