balena-supervisor/test
Felipe Lalanne 4cdf26f82f Improve supervisor API behavior when locks are set
This PR adds the following

* Supervisor v1 API application actions now return HTTP status code 423 when locks
  are preventing the action to be performed. Previously this resulted in a
  503 error
* Supervisor API v2 service actions now returns HTTP status code 423 when locks are
  preventing the action to be performed. Previously, this resulted in an
  exception logged by the supervisor and the API query timing out
* Supervisor API `/v2/applications/:appId/start-service` now does not
  check for a lock. Lock handling in v2 actions is now performed by each
  step executor
* `/v1/apps/:appId/start` now queries the target state and uses that
  information to execute the start step (as v2 does). Previously start
  resulted in `cannot get appId from undefined`
* Extra tests for API methods

Change-type: patch
Connects-to: #1523
Signed-off-by: Felipe Lalanne <felipe@balena.io>
2020-12-14 10:43:41 -03:00
..
data Patched /v1/restart exception 2020-11-30 15:42:49 -05:00
lib Improve supervisor API behavior when locks are set 2020-12-14 10:43:41 -03: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 Mount docker socket under /host/run for services 2020-10-29 15:54:31 -03:00
05-device-state.spec.ts api: Implement scoped Supervisor API keys 2020-09-17 11:25:56 +00:00
06-validation.spec.ts tests: Clean up and consistify naming scheme 2020-10-12 14:41:21 +01: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 tests: Clean up and consistify naming scheme 2020-10-12 14:41:21 +01: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 tests: Clean up and consistify naming scheme 2020-10-12 14:41:21 +01: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 application-manager: Convert to a singleton 2020-09-14 11:23:36 +01: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 tests: Clean up and consistify naming scheme 2020-10-12 14:41:21 +01: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 Fixed evaluating if updates are needed to reach target state 2020-10-26 14:54:04 -04: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 Ensure the first target state request is applied 2020-11-13 10:19:27 -03:00
41-device-api-v1.spec.ts Improve supervisor API behavior when locks are set 2020-12-14 10:43:41 -03:00
42-device-api-v2.spec.ts Improve supervisor API behavior when locks are set 2020-12-14 10:43:41 -03: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