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.
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.