mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-19 03:06:27 +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 |
||
---|---|---|
.. | ||
application-manager-test-states.ts | ||
application-state-mock.ts | ||
db-helper.ts | ||
errors.ts | ||
helpers.ts | ||
mocked-balena-api.ts | ||
mocked-database.ts | ||
mocked-dbus.ts | ||
mocked-device-api.ts | ||
mocked-dockerode.ts | ||
mocked-iptables.ts | ||
mockerode.ts | ||
prepare.ts |