Skip to content

Create Monorail Client Interface to Improve Testability #24

@spiegela

Description

@spiegela

Right now, the current design of the RackHD Monorail Client (nested structs) is not mockable in dependent applications.

In order to test the client with mocks, it would be helpful to implement each of the APIs as methods (Nodes(), Catalogs(), etc.) and create a Monorail client interface. Then we could create an interface for each of the cilent endpoints -- a Nodes interface, Catalogs interface, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions