Unit tests: API server #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Write pytest unit tests for the API server proxy logic and group CRUD operations.
Tasks
GET /api/nodeswith mocked node agent responsesGET /api/servicesmerges responses from all 3 nodes correctlyGET /api/serviceshandles unreachable node gracefullyGET /api/groupsreturns groups from groups.jsonPOST /api/groupscreates new group and persists to filePUT /api/groups/{id}updates existing groupDELETE /api/groups/{id}removes group from fileSetup