9daf5972d65d60cc34ff25e09d4207aadfdbc723 |
|
03-Nov-2015 |
Roshan Pius <rpius@google.com> |
autotest(wifi): Use WPACliProxy for all wpa_cli invocations. There are a bunch of different places where we invoke wpa_cli commands in the server tests: 1. On the server side in wifi_client.py (|WifiClient.reassociate|). 2. On the client side in shill_xml_rpc_server.py (|ShillXmlRpcDelegate.request_roam|) and wifi_proxy.py (|WifiProxy.clear_supplicant_blacklist|). Changes: 1. Move all of these invocations to one central place i.e WifiClient on the server side and remove the associated XML RPC methods. 2. Invoke all wpa_cli commands using the WpaCliProxy instance initialized in WifiClient. WpaCliProxy was formerly being used as a Shill XML RPC server substitute on android devices. Now we're going to use this class for running wpa_cli commands for Android, Brillo and Cros testing. BUG=b:25432676 TEST=`test_that --board=$board $host network_WiFi_Reassociate` on both Dragonboard and Cros device. (Tests |WifiClient.reassociate| method) TEST=`test_that --board=$board $host network_WiFi_Prefer5Ghz` on Cros device. (Tests |WifiClient.clear_supplicant_blacklist| method) TEST=`test_that --board=$board $host network_WiFi_PMKSACaching` on Cros device. (Tests |WifiClient.request_roam| method) Change-Id: I339260401b882b4142c28e24df15038aca9c17f0 Reviewed-on: https://chromium-review.googlesource.com/310229 Commit-Ready: Roshan Pius <rpius@chromium.org> Tested-by: Roshan Pius <rpius@chromium.org> Reviewed-by: Christopher Wiley <wiley@chromium.org> Reviewed-by: Roshan Pius <rpius@chromium.org>
/external/autotest/client/cros/networking/wifi_proxy.py
|
af68323e46efa331d47134a97f107d708f8c6db8 |
|
12-Aug-2015 |
Peter Qiu <zqiu@chromium.org> |
autotest: shill_proxy: sanitize service configuration dictionary Currently, chromeos dbus adaptors doesn't implement introspection interface, which causes some complication on the python side. Mainly its inability to convert arguments to the correct type before passing them to the DBus daemon. For variant type arguments, CL:292056 will automatically convert non-variant type to variant type on the daemon side. For variant dictionary, the python will just blindly convert dictionary to a single type map based on the type of the value in the first entry. For example, if the first entry have value type of boolean, the entire dictionary is converted to a string to boolean map. This CL will explicitly convert configuration dictionary to DBus variant dictionary, so that configuration dictionary will be passed correctly to the DBus daemon. BUG=chromium:517680 TEST=Run wifi_matfunc test with shill using chromeos dbus TEST=Run affected client tests Change-Id: I895350ada6dee5ff3093072f0e16b5a474dd295b Reviewed-on: https://chromium-review.googlesource.com/292980 Reviewed-by: Paul Stewart <pstew@chromium.org> Tested-by: Zeping Qiu <zqiu@chromium.org> Commit-Queue: Zeping Qiu <zqiu@chromium.org>
/external/autotest/client/cros/networking/wifi_proxy.py
|
f69bef1a9efa13c8e25b0b572f8b6047b897fd16 |
|
28-Apr-2015 |
Peter Qiu <zqiu@chromium.org> |
autotest: ignore Profile.GetEntry DBus call failures In the current ToT, Profile.GetEntry will return an error for ethernet entries that are not registered with the manager. This is a temporary fix for remove_all_wifi_entries to ignore those entries. BUG=chromium:481668 TEST=Run network_WiFi_WakeOnDisconnect test Change-Id: I33422288a6113869adf9a4078653ef9c890fb980 Reviewed-on: https://chromium-review.googlesource.com/267602 Trybot-Ready: Zeping Qiu <zqiu@chromium.org> Tested-by: Zeping Qiu <zqiu@chromium.org> Reviewed-by: Samuel Tan <samueltan@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Commit-Queue: Zeping Qiu <zqiu@chromium.org>
/external/autotest/client/cros/networking/wifi_proxy.py
|
7bc0d24aa108b63b4d5c8f25654f43fa7ad5f9e6 |
|
28-Mar-2015 |
Samuel Tan <samueltan@chromium.org> |
autotest: pass missing association parameters in network_WiFi_SuspendStress Pass the |is_hidden| and |security_config| parameters to the AssociationParameters constructor in network_WiFi_SuspendStress so that the DUT will properly connect to the AP when it is configured as a hidden network or with WEP or WPA2 security enabled. Also: - Fix a type in wifi_proxy.py - Add an argument name specifier in a function call in network_WiFi_SuspendStress.py BUG=chromium:468522 TEST=Run network_WiFi_SuspendStress.WEP40, network_WiFi_SuspendStress.WPA2, network_WiFi_SuspendStress.Hidden using test_that and verify that they pass. Change-Id: Id02839c7aa13c6be636a2ee5c733d7f64216de16 Reviewed-on: https://chromium-review.googlesource.com/262961 Trybot-Ready: Samuel Tan <samueltan@chromium.org> Tested-by: Samuel Tan <samueltan@chromium.org> Reviewed-by: Christopher Wiley <wiley@chromium.org> Commit-Queue: Samuel Tan <samueltan@chromium.org>
/external/autotest/client/cros/networking/wifi_proxy.py
|
9fe0e251977bcb5ae5922bd12574adc0f12abb29 |
|
13-Dec-2014 |
mukesh agrawal <quiche@chromium.org> |
autotest (wifi): configure security using security class Soon, Chrome will configure WiFi services using kSecurityClassProperty, instead of kSecurityProperty. To make sure that works, our tests should do the same. Note that this CL updates one part of network_WiFiInvalidParameters to configure using kSecurityProperty. This provides test coverage in case some shill clients still want to configure using kSecurityProperty. Note also that some users of WifiProxy configure networks specifically to be WPA-only or RSN-only. However, this CL should not break them. That's because WPA-only and RSN-only are used to configure hostapd. But WifiProxy+SecurityConfig always use 'psk' when performing the shill side of configuration. While there: clean up some debugging code in network_WiFi_ProfileGUID. CQ-DEPEND=CL:235451 BUG=chromium:441423 TEST=network_DefaultProfileServices TEST=network_WiFiInvalidParameters TEST=network_WiFi_ProfileGUID TEST=network_WiFiVerifyRouter Change-Id: I9da608c83241ddc725e1f764af462a09387307dd Reviewed-on: https://chromium-review.googlesource.com/235543 Tested-by: mukesh agrawal <quiche@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Commit-Queue: mukesh agrawal <quiche@chromium.org>
/external/autotest/client/cros/networking/wifi_proxy.py
|
719570228c2cdf0f6e69a2d5c5818914ed2ecc0c |
|
08-Jan-2014 |
Christopher Wiley <wiley@chromium.org> |
autotest: Remove WiFi entries from the default profile in tests Prevent WiFi entries from previous tests from interfering with future tests by removing them from default profiles. Other sources of WiFi entries are already addressed by popping and removing other profiles. TEST=Manually added a WiFi entry to the default profile in a DUT, then ran network_WiFi_SimpleConnect.wifi_checkWPA_TKIP, which removed that entry from the default profile. BUG=chromium:332421 Change-Id: Ia3832fada48fefbaf682e643b99754eb577fb34f Reviewed-on: https://chromium-review.googlesource.com/181891 Tested-by: Christopher Wiley <wiley@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Commit-Queue: Christopher Wiley <wiley@chromium.org>
/external/autotest/client/cros/networking/wifi_proxy.py
|
1f89fd2f9f2010e732a87ed3c8f7f25777862c59 |
|
20-Dec-2013 |
Christopher Wiley <wiley@chromium.org> |
autotest: Migrate shill_proxy and dependencies to autotest These files were installed as part of the shill test scripts when the autotest client package was not installed in test images. Now that the client package is installed at build time, we should move these scripts into autotest. The moved files were cut at 2b79b706f3d16f6f26dc29afd94b8a3dbf1d27e2 from the shill repository. BUG=chromium:328169 TEST=WiFi tests (wifi_matfunc/network_nightly) still pass with these changes. grepping for instances of '^import .*_proxy' and '^import shill_context' returns no hits in autotest. CQ-DEPEND=CL:181271 Change-Id: Ieb864f265fd9a6adee0863ec0e56969f3c389e43 Reviewed-on: https://chromium-review.googlesource.com/181360 Reviewed-by: Christopher Wiley <wiley@chromium.org> Tested-by: Christopher Wiley <wiley@chromium.org> Commit-Queue: Christopher Wiley <wiley@chromium.org>
/external/autotest/client/cros/networking/wifi_proxy.py
|