balena-supervisor/test/integration
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
..
compose Convert ensureSupervisorNetwork to native Promises 2022-11-08 16:06:10 -08:00
device-api Migrate API tests to unit/integration 2022-10-25 19:06:39 +00:00
device-state Migrate db-format tests to integration 2022-10-19 12:07:03 -03:00
lib Fix typo: intialise -> initialize 2022-11-07 12:09:17 -08:00
.mocharc.js Migrate config module tests to integration 2022-09-28 10:37:41 -03:00
config.spec.ts Change macAddressPath to /sys/class/net 2022-11-08 15:51:14 -08:00
db.spec.ts Migrate legacy db test to integration folder 2022-09-28 10:37:41 -03:00
device-state.spec.ts Fix typo: intialise -> initialize 2022-11-07 12:09:17 -08:00
network.spec.ts Migrate API tests to unit/integration 2022-10-25 19:06:39 +00:00
supervisor.spec.ts Run the built supervisor as part of docker-compose tests 2022-11-03 15:45:39 -03:00