Skip to content

[FR]: Core - API - Interface testing #1271

@GregJohnStewart

Description

@GregJohnStewart

Software

Core API

Describe what you'd like to see

While many tests already exist in the core api codebase, we have more to do at the interface level. We of course have some, but in order to ensure proper verification, we have much more to do.

What needs to happen is a review and expansion of existent interface tests in the interfaces.rest package. For each endpoint/rest method, we need tests to verify:

  • happy path(s)
  • unhappy paths
    • data validation errors
    • logical errors
    • all error return format
    • proper REST status code (400, etc)

This can also go in hand with a review of the OpenApi spec as seen in Swagger; review and update to ensure comprehensive and descriptive.

These tests should additionally be used as Integration Tests, and follow the convention currently set to run in both the unit and integration context.

This particular ticket is a super-ticket to help track the entire effort, and subtasks will be created to tackle specific pieces of the API.

Is your feature request related to a problem?

No response

Describe alternatives you've considered

None

Additional context

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Epic.

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions