Unit tests: Node agent #12
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 node agent with a mocked Docker socket.
Tasks
GET /healthreturns 200 with node infoGET /containersreturns correct container list formatPOST /containers/{id}/startcalls docker.containers.get().start()POST /containers/{id}/stopcalls docker.containers.get().stop()POST /containers/{id}/restartcalls docker.containers.get().restart()GET /containers/{id}/logsreturns log linesSetup