mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 06:07:57 +00:00
e04e64763f
This PR cleans up testing for supervisor compose modules. It also fixes broken tests for application manager and removes a lot of dependencies for those tests on DB and other unnecessary mocks. There are probably a lot of cases that tests are missing but this should make writing new tests a lot easier. This PR also creates a new mock dockerode (mockerode) module that should make it easier to test operations that interact with the engine. All references to the old mock-dockerode have not yet been removed but that should come soon in another PR List of squashed commits: - Add tests for network create/remove - Move compose service tests to test/src/compose and reorganize test descriptions - Add support for image creation to mockerode - Add additional tests for compose volumes - Update mockerode so unimplemented fake methods throw. This is to ensure tests using mockerode fail if an unimplemented method is used - Update tests for volume-manager with mockerode - Update tests for compose/images - Simplify tests using mockerode - Clean up compose/app tests - Create application manager tests Change-type: minor |
||
---|---|---|
.. | ||
docker-states | ||
etc | ||
mnt/boot | ||
ports/not-ascending | ||
resin-data | ||
state-endpoints | ||
sys/class/net | ||
apps-pin.json | ||
apps.json | ||
boot0.img | ||
device-api-responses.json | ||
testconfig-apibinder-offline2.json | ||
testconfig-apibinder-offline.json | ||
testconfig-apibinder.json | ||
testconfig.json |