balena-supervisor/test/lib
Felipe Lalanne 89175432af Find and remove duplicate networks
We have seen a few times devices with duplicated network names for some
reason. While we don't know the cause the networks get duplicates, this
can be disruptive for updates as trying to create a container referencing a duplicate
network results in a 400 error from the engine.

This commit finds and removes duplicate networks via the state engine,
this means that even if somehow a container could be referencing a
network that has been duplicated later somehow, this will remove the
container first.

While thies doesn't solve the problem of duplicate networks being
created in the first place, it will fix the state of the system to
correct the inconsistency.

Change-type: minor
Closes: #590
2023-02-10 20:24:36 -05:00
..
dbus Setup environment for dbus tests 2022-10-17 11:24:15 -03:00
chai.ts Create test/unit and test/integration folders 2022-08-24 14:28:36 -04:00
db-helper.ts Update @balena/lint to 6.2.0 2022-09-19 16:41:28 +01:00
docker-helper.ts Add tests for doPurge action and v1/v2 app purge routes 2023-01-09 16:25:27 -08:00
errors.ts Update typed-error to 3.x 2020-08-19 10:07:54 +01:00
legacy-mocha-hooks.ts Migrate API tests to unit/integration 2022-10-25 19:06:39 +00:00
mocha-hooks.ts Migrate API tests to unit/integration 2022-10-25 19:06:39 +00:00
mocked-balena-api.ts Consolidate API middlewares, move api-keys to device-api 2022-10-18 14:16:53 -07:00
mocked-device-api.ts Use v2 router directly instead of through application manager 2022-10-18 14:16:53 -07:00
mocked-dockerode.ts Improve NotFoundError handling 2022-11-08 15:41:52 -08:00
mocked-iptables.ts Migrate firewall tests to integration 2022-10-19 14:09:45 -03:00
mockerode.ts Create default network as config-only when services have host networking 2022-11-16 10:19:36 -08:00
prepare.ts Update to typescript 4.8.2 2022-09-19 16:36:17 +01:00
state-helper.ts Find and remove duplicate networks 2023-02-10 20:24:36 -05:00
wait-for-it.sh Fix wait-for-it script to work with external signals 2023-01-31 10:43:19 -03:00