Skip to content

[Sprint] Issues: Update unit and integration tests for ObjectId/Result<T> changes #82

@mpaulosky

Description

@mpaulosky

Problem

After handler and shared type changes (Issues #1 and #2), 12 Issue-domain test files will break. Tests need updating to match new Result return types and ObjectId ID handling.

Depends On

Depends on: Foundation issue, Issues handler refactor issue

Files to Modify

Unit Handler Tests

  • ests/Unit.Tests/Handlers/Issues/GetIssueHandlerTests.cs
  • ests/Unit.Tests/Handlers/Issues/ListIssuesHandlerTests.cs
  • ests/Unit.Tests/Handlers/Issues/CreateIssueHandlerTests.cs
  • ests/Unit.Tests/Handlers/Issues/UpdateIssueHandlerTests.cs
  • ests/Unit.Tests/Handlers/Issues/DeleteIssueHandlerTests.cs
  • ests/Unit.Tests/Handlers/Issues/UpdateIssueStatusHandlerTests.cs

Unit Endpoint Tests

  • ests/Unit.Tests/Endpoints/IssueEndpointsTests.cs

Integration Tests

  • ests/Integration.Tests/Handlers/GetIssueHandlerTests.cs
  • ests/Integration.Tests/Handlers/ListIssuesHandlerIntegrationTests.cs
  • ests/Integration.Tests/Handlers/CreateIssueHandlerTests.cs
  • ests/Integration.Tests/Handlers/UpdateIssueHandlerIntegrationTests.cs
  • ests/Integration.Tests/Handlers/DeleteIssueHandlerIntegrationTests.cs

Supporting

  • ests/Unit.Tests/Builders/IssueBuilder.cs — update ID handling for ObjectId
  • ests/Integration.Tests/Builders/IssueBuilder.cs — same

Acceptance Criteria

  • All Issue handler unit tests updated to assert Result returns
  • All Issue integration tests updated to use ObjectId-compatible ID setup
  • Endpoint tests verify HTTP status codes (not just response bodies)
  • All tests pass (green)
  • Integration tests retain [Collection("Integration")] attribute

Metadata

Metadata

Assignees

No one assigned

    Labels

    go:needs-researchNeeds investigationsquadSquad triage inbox — Lead will assign to a membersquad:gimliAssigned to Gimli (Tester)squad:legolasAssigned to Legolas (Frontend Dev)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions