balena-supervisor/test/unit
Christina Ying Wang be986a62a5 Add HostConfig.parse method
Parses input from PATCH /v1/device/host-config into either
type HostConfiguration, or if LegacyHostConfiguration if
input is of an acceptable shape (for backwards compatibility).

Once input has been determined to be of type HostConfiguration,
we can easily extract ProxyConfig from the object for patching,
stringifying, and writing to redsocks.conf.

Change-type: minor
Signed-off-by: Christina Ying Wang <christina@balena.io>
2024-07-03 16:47:51 -07:00
..
compose Create replicating test 2024-06-24 15:54:19 -04:00
config Update @balena/lint to v7 2024-03-01 18:27:30 -03:00
device-api Update typescript to v5 2024-03-05 15:33:56 -03:00
lib Move lib/fs-utils tests to testfs 2024-04-24 13:37:45 -07:00
.mocharc.js Disable logs globally using mocha hooks 2022-09-28 10:37:41 -03:00
host-config.spec.ts Add HostConfig.parse method 2024-07-03 16:47:51 -07:00
memory.spec.ts Add memory usage healthcheck 2024-04-11 18:16:47 -07:00
network.spec.ts Update typescript to v5 2024-03-05 15:33:56 -03:00
types.spec.ts Fix withDefault type helper to work with boolean 2022-09-13 20:08:32 +00:00