API: migrate machines delete and list to inventory

This commit is contained in:
Johannes Kirschbauer
2024-07-02 11:07:11 +02:00
parent df934334a2
commit 9f484c1d39
10 changed files with 79 additions and 69 deletions

View File

@@ -28,12 +28,13 @@ describe.concurrent("API types work properly", () => {
>();
});
it("Machine list receives a list of names/id string", async () => {
it("Machine list receives a records of names and machine info.", async () => {
expectTypeOf(pyApi.list_machines.receive)
.parameter(0)
.parameter(0)
.toMatchTypeOf<
{ status: "success"; data: string[] } | { status: "error"; errors: any }
| { status: "success"; data: Record<string, object> }
| { status: "error"; errors: any }
>();
});