mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 21:57:54 +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 |
||
---|---|---|
.. | ||
config | ||
data | ||
lib | ||
src | ||
.mocharc.fast.js | ||
.mocharc.js | ||
00-init.spec.ts | ||
01-constants.spec.ts | ||
02-db.spec.ts | ||
03-config.spec.ts | ||
05-device-state.spec.ts | ||
06-validation.spec.ts | ||
07-blink.spec.ts | ||
08-event-tracker.spec.ts | ||
09-network.spec.ts | ||
10-api-binder.spec.ts | ||
11-logger.spec.ts | ||
12-device-config.spec.ts | ||
14-conversions.spec.ts | ||
15-ports.spec.ts | ||
16-config-utils.spec.ts | ||
18-startup.spec.ts | ||
19-compose-utils.spec.ts | ||
21-supervisor-api.spec.ts | ||
22-local-mode.spec.ts | ||
23-contracts.spec.ts | ||
24-deltas.spec.ts | ||
25-journald.spec.ts | ||
27-extlinux-config.spec.ts | ||
28-db-format.spec.ts | ||
29-append-directive.spec.ts | ||
30-fdt-directive.spec.ts | ||
31-docker-utils.spec.ts | ||
33-extra-uenv-config.spec.ts | ||
34-firewall.spec.ts | ||
35-os-release.spec.ts | ||
37-odmdata-config.spec.ts | ||
39-compose-commit.spec.ts | ||
40-target-state.spec.ts | ||
41-device-api-v1.spec.ts | ||
42-device-api-v2.spec.ts | ||
43-splash-image.spec.ts |