balena-supervisor/test/lib
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
..
application-manager-test-states.ts Move database app processing out to its own module 2020-06-11 11:55:11 +01:00
application-state-mock.ts Added test case for /v1/restart API 2020-11-30 15:42:49 -05:00
chai-config.ts Convert some coffeescript tests to typescript 2019-10-30 10:58:32 +00:00
errors.ts Update typed-error to 3.x 2020-08-19 10:07:54 +01:00
mocked-balena-api.ts api-binder: Convert to a singleton 2020-09-14 09:31:12 +01:00
mocked-database.ts Add more test coverage for compose/images 2020-11-03 13:08:41 -05:00
mocked-dbus.ts Patched /v1/restart exception 2020-11-30 15:42:49 -05:00
mocked-device-api.ts Improve supervisor API behavior when locks are set 2020-12-14 10:43:41 -03:00
mocked-dockerode.ts Patched /v1/restart exception 2020-11-30 15:42:49 -05:00
mocked-event-tracker.ts api-binder: Convert to a singleton 2020-09-14 09:31:12 +01:00
mocked-iptables.ts bug: Firewall not blocking supervisor access from outside the device 2020-08-12 13:43:33 +01:00
prepare.ts Make the config module a singleton 2020-06-02 14:29:05 +01:00