balena-supervisor/test
Cameron Diver e148ce0529
Report all logs from a container's runtime
We add a database table, which holds information about the last
timestamp of a log successfully reported to a backend (local or remote).
We then use this value to calculate from which point in time to start
reporting logs from the container. If this is the first time we've seen
a container, we get all logs, and for every log reported we save the
timestamp. If it is not the first time we've seen a container, we
request all logs since the last reported time, ensuring no interruption
of service.

Change-type: minor
Closes: #937
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-04-05 10:06:27 +01:00
..
data tests: Add test case for ascending ports issue 2019-01-02 11:31:25 +00:00
lib Rename most of the documentation and variable names from resin to balena 2018-11-01 17:00:13 -07:00
00-init.coffee Add some more unit tests to the multicontainer supervisor 2018-04-30 19:39:01 -07:00
01-constants.spec.coffee Add some more unit tests to the multicontainer supervisor 2018-04-30 19:39:01 -07:00
02-db.spec.coffee refactor: Change export style of db to named 2018-12-21 17:18:33 +00:00
03-config.spec.coffee refactor: Change config modules export type to new-style 2019-01-02 18:12:22 +00:00
04-service.spec.coffee fix: Correctly compare and generate network membership aliases 2019-03-28 10:27:21 +00:00
05-device-state.spec.coffee Add a random jitter to target state polls, and a config var to ignore update notifications and not poll immediately after startup 2019-04-03 09:15:49 -07:00
06-iptables.spec.coffee Run iptables rules synchronous to avoid locking errors 2019-02-19 17:43:04 +00:00
07-validation.spec.coffee Add some more unit tests to the multicontainer supervisor 2018-04-30 19:39:01 -07:00
08-blink.spec.coffee Add some more unit tests to the multicontainer supervisor 2018-04-30 19:39:01 -07:00
09-event-tracker.spec.coffee Replace offline -> unmanaged in logs and tests 2018-12-17 10:53:24 +00:00
10-network.spec.coffee Add some more unit tests to the multicontainer supervisor 2018-04-30 19:39:01 -07:00
11-api-binder.spec.coffee refactor: Convert ApiBinder module to typescript 2019-01-08 11:59:56 +00:00
12-logger.spec.coffee Report all logs from a container's runtime 2019-04-05 10:06:27 +01:00
13-device-config.spec.coffee Fix test for deviceConfig.getDefaults with the addition of SUPERVISOR_INSTANT_UPDATE_TRIGGER 2019-04-03 09:15:50 -07:00
14-application-manager.spec.coffee state-engine: Return a noop when waiting for a dependency 2019-03-13 10:34:15 +00:00
15-conversions.spec.coffee Allow newlines to be part of environment variables 2019-02-12 11:19:55 +00:00
16-ports.spec.coffee fix: Normalize ports from compose file on instantiation 2019-02-08 15:14:07 +00:00
17-config-utils.spec.coffee deviceConfig: allow BALENA_ config variables 2018-10-18 17:20:53 +02:00
18-compose-network.coffee Fix coffee-script lint failures 2018-11-02 14:50:12 +00:00
18-startup.coffee fix: Import logger properly and add startup test 2018-09-04 15:53:49 -07:00
19-compose-utils.coffee Fix coffee-script lint failures 2018-11-02 14:50:12 +00:00
mocha.opts tests: Increase timeout for test suites 2018-11-06 15:27:58 +00:00