balena-supervisor/test/lib
Felipe Lalanne e04e64763f Improve testing for supervisor composition modules
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
2021-07-05 17:50:52 -04:00
..
application-manager-test-states.ts Improve target state typings 2021-06-08 13:45:44 +01:00
application-state-mock.ts Improve testing for supervisor composition modules 2021-07-05 17:50:52 -04:00
db-helper.ts Improve testing for supervisor composition modules 2021-07-05 17:50:52 -04:00
errors.ts Update typed-error to 3.x 2020-08-19 10:07:54 +01:00
helpers.ts Add toggleable SUPERVISOR_HARDWARE_METRICS config 2021-05-13 13:59:07 +09:00
mocked-balena-api.ts api-binder: Convert to a singleton 2020-09-14 09:31:12 +01:00
mocked-database.ts Add more test coverage for compose/images 2020-11-03 13:08:41 -05:00
mocked-dbus.ts Complete /v1/device/host-config unit tests, modify PATCH route 2021-02-18 12:25:44 +09:00
mocked-device-api.ts Remove mz, mkdirp, body-parser dependencies 2021-04-28 07:20:15 +09:00
mocked-dockerode.ts Fix mock dockerode module 2021-04-27 13:00:56 -04:00
mocked-iptables.ts Remove mz, mkdirp, body-parser dependencies 2021-04-28 07:20:15 +09:00
mockerode.ts Improve testing for supervisor composition modules 2021-07-05 17:50:52 -04:00
prepare.ts Make the config module a singleton 2020-06-02 14:29:05 +01:00