-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(robot-server,api): robot server port networking fast api (#5184
) * create system/wifi module and move some functions from server/endpoints/networking there. * more refactoring * code clean up and restructuring. * move eap option validation from network endpoints to wifi. rewrote test_key_lifecycle to test the key api. not the http api. * reworked test_networking_endpoints to only test the http interaction with the key functions. Not the underlying file system. That belongs in the test_wifi module. * test_network_status added to nmcli. this didn't belong in the server endpoint tests as it is really testing our ability to communicate with nmcli. * remove deprecated comment * start robot_server networking endpoints * progress * keys is a reserved word. use an alias. * list keys tests pass * networking tests pass minus the disconnect * disconnect tests * tests for wificonfiguration model validation * add todo note regarding wifi disconnect * fix lint errors * cannot import log_control.MAX_RECORDS due to syslog import failure. * clean up the instances of multiple response types. * rename V1ErrorResponse to V1BasicResponse. It isn't always used for errors. Name was misleading. * fix bad test * fix lint error * fix bugs that were revealed when running on PI. Configure didn't work because we weren't testing how the nmcli.configure call was made. get wifi/keys failed due to validation errors on pydantic model due to attribute named keys. also, someone (me) didn't port the aiohttp unit tests properly. closes #5143
- Loading branch information
amitlissack
authored
Mar 13, 2020
1 parent
30a4e97
commit 35ae8ac
Showing
16 changed files
with
1,160 additions
and
441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.