balena-supervisor/test
Christina Wang 31effed426 Prevent unintended image removal when calling purge endpoints to remove volumes
Using safeStateClone within doPurge to applyIntermediateTarget after
successful volume purge has led to various type deficiencies being revealed
in common.js. Add several inline types in common.js to satisfy
the type checker (credit: Page <page@balena.io>). Delete common.d.ts
since it's not required and might mistakenly mask true I/O types of
functions in common.js.

Closes: #1611
Change-type: patch
Signed-off-by: Christina Wang <christina@balena.io>
2021-04-05 12:10:09 +00:00
..
data typos: seperate -> separate 2021-03-17 14:27:53 -04:00
lib Infer legacy Volumes that do not have the supervised label 2021-03-15 19:46:53 -04:00
00-init.spec.ts Add more test coverage for compose/images 2020-11-03 13:08:41 -05:00
01-constants.spec.ts Make the db module a singleton 2020-05-29 15:02:38 +01:00
02-db.spec.ts Make the db module a singleton 2020-05-29 15:02:38 +01:00
03-config.spec.ts Use root mount point to find device-type.json 2020-10-28 13:03:40 +00:00
04-service.spec.ts Fix gpu label support 2021-02-09 11:27:03 +01:00
05-device-state.spec.ts api: Implement scoped Supervisor API keys 2020-09-17 11:25:56 +00:00
06-validation.spec.ts Refactor checkTruthy to return more predictable values 2021-02-18 12:36:42 -05:00
07-blink.spec.ts tests: Clean up and consistify naming scheme 2020-10-12 14:41:21 +01:00
08-event-tracker.spec.ts tests: Clean up and consistify naming scheme 2020-10-12 14:41:21 +01:00
09-network.spec.ts tests: Clean up and consistify naming scheme 2020-10-12 14:41:21 +01:00
10-api-binder.spec.ts tests: Clean up and consistify naming scheme 2020-10-12 14:41:21 +01:00
11-logger.spec.ts tests: Clean up and consistify naming scheme 2020-10-12 14:41:21 +01:00
12-device-config.spec.ts Add support for BALENA_HOST_SPLASH_IMAGE config 2021-01-06 15:11:31 -03:00
13-application-manager.spec.ts tests: Clean up and consistify naming scheme 2020-10-12 14:41:21 +01:00
14-conversions.spec.ts tests: Clean up and consistify naming scheme 2020-10-12 14:41:21 +01:00
15-ports.spec.ts tests: Clean up and consistify naming scheme 2020-10-12 14:41:21 +01:00
16-config-utils.spec.ts Add support for BALENA_HOST_SPLASH_IMAGE config 2021-01-06 15:11:31 -03:00
17-compose-network.spec.ts tests: Clean up and consistify naming scheme 2020-10-12 14:41:21 +01:00
18-startup.spec.ts application-manager: Convert to a singleton 2020-09-14 11:23:36 +01:00
19-compose-utils.spec.ts Convert all test files to TS and add .spec to all filenames 2020-06-05 18:34:24 -04:00
20-compose-volume.spec.ts Make logger module a singleton 2020-06-08 17:19:20 +01: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 Make logger module a singleton 2020-06-08 17:19:20 +01:00
23-contracts.spec.ts version: drop SUPERVISOR_VERSION env var 2020-09-29 11:22:30 -04: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 Convert all test files to TS and add .spec to all filenames 2020-06-05 18:34:24 -04:00
27-extlinux-config.spec.ts Refactor configurable backend class names 2020-08-12 14:29:58 -04:00
28-db-format.spec.ts Infer legacy Volumes that do not have the supervised label 2021-03-15 19:46:53 -04:00
29-append-directive.spec.ts Added support for configuring FDT directive in extlinux.conf 2020-06-23 15:56:10 -04:00
30-fdt-directive.spec.ts Added support for configuring FDT directive in extlinux.conf 2020-06-23 15:56:10 -04: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 application-manager: Convert to a singleton 2020-09-14 11:23:36 +01:00
33-extra-uenv-config.spec.ts tests: Clean up and consistify naming scheme 2020-10-12 14:41:21 +01: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 tests: Clean up and consistify naming scheme 2020-10-12 14:41:21 +01:00
38-sys-info.spec.ts Improve calculation for used system memory 2020-10-14 13:15:17 -03:00
39-compose-commit.spec.ts Allow storing commits against their appIds 2020-11-10 10:50:08 +00:00
39-compose-images.spec.ts Add more test coverage for compose/images 2020-11-03 13:08:41 -05:00
40-target-state.spec.ts Cancel pending apply target after /v1/update request 2021-01-20 22:21:14 -05:00
41-device-api-v1.spec.ts Infer legacy Volumes that do not have the supervised label 2021-03-15 19:46:53 -04:00
42-device-api-v2.spec.ts Infer legacy Volumes that do not have the supervised label 2021-03-15 19:46:53 -04:00
43-splash-image.spec.ts Add support for BALENA_HOST_SPLASH_IMAGE config 2021-01-06 15:11:31 -03:00
44-volume-manager.spec.ts Patch list volumes to always return an array 2021-04-01 20:31:09 -04:00
fast-mocha.opts application-manager: Convert to a singleton 2020-09-14 11:23:36 +01:00
mocha.opts tests: Increase timeout for test suites 2018-11-06 15:27:58 +00:00