device-os
device-os copied to clipboard
[test] Add tests for ACM prefer feature, adjust logging
Problem
ACM related interfaces/features done have test coverage, we should add tests.
Solution
- Test Network
prefer()behavior- Test 2: When multiple networks are available, the one that is
preferedshould be used for the cloud connection - Test 3: Only one network can be preferred at at ime
- Test 4: When multiple networks are available, and the cloud connection is on one, if the other is preferred, the cloud connection should move to that one as soon as possible
- Test 5: If one network is available, and the unavailable network is preferred, if the preferred network becomes available, the cloud connection should move to that one as soon as possible
- Test 6: If multiple networks are available, and the network being used for the cloud connection goes down, the cloud connection should be disconnected and reconnected immediately on the next best available network
- Test 2: When multiple networks are available, the one that is
Most of these tests only apply to the MSOM platform
Steps to Test
Run wiring/no_fixture
Example App
wiring/no_fixture
References
Links to the Community, Docs, Other Issues, etc..
Completeness
- [x] User is totes amazing for contributing!
- [ ] Contributor has signed CLA (Info here)
- [ ] Problem and Solution clearly stated
- [ ] Run unit/integration/application tests on device
- [ ] Added documentation
- [ ] Added to CHANGELOG.md after merging (add links to docs and issues)