balena-supervisor/test/data
Christina Ying Wang 53f5641ef1 Refactor host-config to be its own module
The host-config module exposes the following interfaces: get,
patch, and parse.

`get` gets host configuration such as redsocks proxy configuration
and hostname and returns it in an object of type HostConfiguration.

`patch` takes an object of type HostConfiguration or LegacyHostConfiguration
and updates the hostname and redsocks proxy configuration, optionally
forcing the patch through update locks.

`parse` takes a user input of unknown type and parses it into type
HostConfiguration or LegacyHostConfiguration for patching, erroring if
parse was unsuccessful.

LegacyHostConfiguration is a looser typing of the user input which does
not validate values of the five known proxy fields of type, ip, port,
username, and password. We should stop supporting it in the next
major Supervisor API release.

Change-type: minor
Signed-off-by: Christina Ying Wang <christina@balena.io>
2024-07-03 16:47:51 -07:00
..
docker-states Read hostname from config.json with container /etc/hostname as backup 2022-06-15 11:31:36 -07:00
etc Complete /v1/device/host-config unit tests, modify PATCH route 2021-02-18 12:25:44 +09:00
mnt/boot Refactor host-config to be its own module 2024-07-03 16:47:51 -07:00
ports/not-ascending tests: Add test case for ascending ports issue 2019-01-02 11:31:25 +00:00
resin-data Add some more unit tests to the multicontainer supervisor 2018-04-30 19:39:01 -07:00
root Revert os-release path to /mnt/root 2023-10-09 14:02:02 -07:00
sys/class/net state: Report device MAC address to the API 2020-06-22 10:41:06 +01:00
apps-pin.json Add support for GET v3 target state 2022-03-22 19:08:02 -03:00
apps.json Add support for GET v3 target state 2022-03-22 19:08:02 -03:00
boot0.img added support for configuring ODMDATA 2020-08-29 09:05:27 -04:00
device-api-responses.json Update host-config, route, and action tests for host config endpoints 2023-01-11 15:48:13 -08:00
testconfig-apibinder-offline2.json Don't generate config fields in offline mode 2018-05-21 14:45:32 +01:00
testconfig-apibinder-offline.json Remove unnecessary config.json keys 2020-05-08 12:56:42 +01:00
testconfig-apibinder.json Use write + sync when writing configs to /mnt/boot 2022-05-03 11:23:00 -04:00
testconfig.json Remove unnecessary config.json keys 2020-05-08 12:56:42 +01:00