balena-supervisor/test/integration/compose
Christina Ying Wang 1034aa70e6 Convert ensureSupervisorNetwork to native Promises
Also remove system interface check from ensureSupervisorNetwork.

Previously `ensure` was a Bluebird promise which wasn't awaited in
its composition step. This has been here for some time and may contribute
to issues with duplicate networks. The conversion to native Promises
allows `ensure` to be awaited, hopefully reducing instances of duplicate
networks.

Removing the system interface check for /sys/class/net/supervisor0
because it's superfluous given that the Engine creates the interface
with NetworkManager. It also makes testing a lot more difficult to set up
as /sys/class/net isn't a directory that can be written to for emulating
system interface creation / removal.

Relates-to: https://github.com/balena-os/balena-supervisor/issues/1110
Change-type: minor
Signed-off-by: Christina Ying Wang <christina@balena.io>
2022-11-08 16:06:10 -08:00
..
application-manager.spec.ts Convert ensureSupervisorNetwork to native Promises 2022-11-08 16:06:10 -08:00
commit.spec.ts Migrate simple legacy tests to test/unit and test/integration 2022-10-18 20:36:53 -03:00
images.spec.ts Migrate tests for image manager 2022-09-28 10:37:41 -03:00
network.spec.ts Split compose/network test in unit/integration 2022-09-28 10:37:40 -03:00
service.spec.ts Access api-key methods through device API 2022-10-18 14:27:19 -07:00
volume-manager.spec.ts Migrate tests for image manager 2022-09-28 10:37:41 -03:00
volume.spec.ts Split compose/volume tests into unit/integration 2022-09-28 10:37:40 -03:00