balena-supervisor/test
Christina Wang a9028e58ec
Prevent updates/reboots with locks when HUP breadcrumbs present
On HUP, some healthceck services need to complete before
it's safe for the Supervisor to reboot the device when
applying state changes. rollback-{health|altboot}-breadcrumb
are the two files that Supervisor looks for and locks the device
on when present in this patch.

Not closing issue 1459 because there is a possible case where,
on altboot rollback, the breadcrumbs are not present. 1459
may be closed when this edge case is investigated.

Change-type: patch
Connects-to: #1459
See: https://www.flowdock.com/app/rulemotion/r-supervisor/threads/cL7YfNOLSfTPfw05h59GEW0kfOt
Signed-off-by: Christina Wang <christina@balena.io>
2021-06-30 13:27:03 +09:00
..
config Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
data Fix undervoltage regex, add undervoltage tests, move sysinfo suite to test/src 2021-05-12 18:33:01 +09:00
lib Improve target state typings 2021-06-08 13:45:44 +01:00
src Prevent updates/reboots with locks when HUP breadcrumbs present 2021-06-30 13:27:03 +09:00
.mocharc.fast.js Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
.mocharc.js Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
00-init.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
01-constants.spec.ts Remove mz, mkdirp, body-parser dependencies 2021-04-28 07:20:15 +09:00
02-db.spec.ts Remove mz, mkdirp, body-parser dependencies 2021-04-28 07:20:15 +09:00
03-config.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
04-service.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
05-device-state.spec.ts Prevent updates/reboots with locks when HUP breadcrumbs present 2021-06-30 13:27:03 +09:00
06-validation.spec.ts Remove mz, mkdirp, body-parser dependencies 2021-04-28 07:20:15 +09:00
07-blink.spec.ts Remove mz, mkdirp, body-parser dependencies 2021-04-28 07:20:15 +09:00
08-event-tracker.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
09-network.spec.ts Remove mz, mkdirp, body-parser dependencies 2021-04-28 07:20:15 +09:00
10-api-binder.spec.ts Create & unify src/device-state/current-state tests 2021-05-12 18:33:01 +09:00
11-logger.spec.ts Remove mz, mkdirp, body-parser dependencies 2021-04-28 07:20:15 +09:00
12-device-config.spec.ts Add toggleable SUPERVISOR_HARDWARE_METRICS config 2021-05-13 13:59:07 +09:00
13-application-manager.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
14-conversions.spec.ts Remove mz, mkdirp, body-parser dependencies 2021-04-28 07:20:15 +09:00
15-ports.spec.ts Remove mz, mkdirp, body-parser dependencies 2021-04-28 07:20:15 +09:00
16-config-utils.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
18-startup.spec.ts Remove mz, mkdirp, body-parser dependencies 2021-04-28 07:20:15 +09:00
19-compose-utils.spec.ts Remove mz, mkdirp, body-parser dependencies 2021-04-28 07:20:15 +09:00
20-compose-volume.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
21-supervisor-api.spec.ts Consolidated Supervisor API tests into clearer files 2020-11-30 15:42:49 -05:00
22-local-mode.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
23-contracts.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
24-deltas.spec.ts Convert all test files to TS and add .spec to all filenames 2020-06-05 18:34:24 -04:00
25-journald.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
27-extlinux-config.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
28-db-format.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
29-append-directive.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
30-fdt-directive.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
31-docker-utils.spec.ts docker-utils: Test network gateway determination logic 2020-07-22 13:17:16 +01:00
32-compose-app-manager.spec.ts Improve target state typings 2021-06-08 13:45:44 +01:00
33-extra-uenv-config.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
34-firewall.spec.ts Infer legacy Volumes that do not have the supervised label 2021-03-15 19:46:53 -04:00
35-os-release.spec.ts tests: Clean up and consistify naming scheme 2020-10-12 14:41:21 +01:00
36-compose-app.spec.ts Prevent unintended image removal when calling purge endpoints to remove volumes 2021-04-05 12:10:09 +00:00
37-odmdata-config.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
39-compose-commit.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
39-compose-images.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
40-target-state.spec.ts Upgrade mocha to v8, use mocha fixtures for chai plugins 2021-05-12 17:10:57 +09:00
41-device-api-v1.spec.ts Remove mz, mkdirp, body-parser dependencies 2021-04-28 07:20:15 +09:00
42-device-api-v2.spec.ts Fix mock dockerode module 2021-04-27 13:00:56 -04:00
43-splash-image.spec.ts Remove mz, mkdirp, body-parser dependencies 2021-04-28 07:20:15 +09:00
44-volume-manager.spec.ts Refactor debug log when unmanaged volume is found 2021-06-02 13:07:24 -04:00