-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ce-oem] Add wifi AP mode test (New) #1606
Conversation
6810613
to
a23c84e
Compare
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/wifi_test.py
Outdated
Show resolved
Hide resolved
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/wifi_test.py
Outdated
Show resolved
Hide resolved
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/wifi_test.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left several inline comments, please take a look.
cb0d340
to
a41429a
Compare
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/wifi_test.py
Outdated
Show resolved
Hide resolved
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/wifi_test.py
Outdated
Show resolved
Hide resolved
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/wifi_test.py
Outdated
Show resolved
Hide resolved
3176bba
to
5d90c5e
Compare
Co-authored-by: stanley31huang <[email protected]>
Since this will make the function outside WiFiManager can call it without init the WiFiManager
… command to connect dut's ap
This default set will be get the first available wireless interface
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/wifi_test.py
Outdated
Show resolved
Hide resolved
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/wifi_test.py
Outdated
Show resolved
Hide resolved
Co-authored-by: stanley31huang <[email protected]>
Implemented as a context manager to better handle the setup and teardown of tests.
…e HOST. We created two functions: one for creating the connection and another for bringing up the connection to make the code more straightforward.
…ript for make the test environment more consistent
Test result of the refactor logic, for open ap
for wpa-psk
|
This change is try to prevent to cover any potential issue on connection bring up delay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The wifi ap mode test are intend to test if DUT is able to create wifi AP and allow a HOST to connect with. And also the HOST will perform ping test to make sure the connection works fine.
Description
This test require a HOST machine to connect to DUT's AP. And support only if wireless interface managed by Network-Manager for both DUT and HOST, since networkd does not support handle wireless interface working in AP mode[1].
Also, even the Network-Manager is able to handle wireless interface working in AP mode but it support only on band a and bg[2].
[ref 1] https://netplan.readthedocs.io/en/stable/netplan-yaml/#properties-for-device-type-wifis
[ref 2] https://networkmanager.dev/docs/api/latest/settings-802-11-wireless.html
Resolved issues
Documentation
Tests
Passed result:
Failed result: