balena-supervisor/test/lib
Felipe Lalanne c04955354a Use write + sync when writing configs to /mnt/boot
This commit updates all backends that write to /mnt/boot to do it
through a new `lib/host-utils` module. Writes are now done using write +
sync as rename is not an atomic operation in vfat.

The change also applies for writes through the `/v1/host-config`
endpoint.

Finally this change includes some improvements on tests.

Change-type: patch
2022-05-03 11:23:00 -04:00
..
application-state-mock.ts Cleanup unused methods and dependencies on db ids 2022-03-22 19:28:43 -03:00
db-helper.ts Fix db-helper module for tests 2021-07-08 14:43:13 -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 Use write + sync when writing configs to /mnt/boot 2022-05-03 11:23:00 -04: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 Use tags to track supervised images in docker 2021-07-26 09:52:25 -04:00
prepare.ts Make the config module a singleton 2020-06-02 14:29:05 +01:00