diff options
author | Jonathan Cave <jonathan.cave@canonical.com> | 2019-06-18 10:13:06 +0100 |
---|---|---|
committer | Jonathan Cave <jonathan.cave@canonical.com> | 2019-06-18 10:13:06 +0100 |
commit | a9eea6033cfba160f128fc6ea84f87be6f8b29dd (patch) | |
tree | 9ca39de75342ef7ec693649c64c90ede60ac05e7 /units/wireless | |
parent | 907c8f2710afbf3f4a54ff8d55a425306f90798e (diff) |
wireless: import netplan tests from p-p-snappy
Diffstat (limited to 'units/wireless')
-rw-r--r-- | units/wireless/wireless-connection-netplan.pxu | 139 |
1 files changed, 139 insertions, 0 deletions
diff --git a/units/wireless/wireless-connection-netplan.pxu b/units/wireless/wireless-connection-netplan.pxu new file mode 100644 index 0000000..b571edf --- /dev/null +++ b/units/wireless/wireless-connection-netplan.pxu @@ -0,0 +1,139 @@ +unit: template +template-resource: device +template-filter: device.category == 'WIRELESS' +template-engine: jinja2 +template-unit: job +id: wireless/wireless_connection_open_ac_np_{{ interface }} +_summary: + Connect to unencrypted 802.11ac Wi-Fi network on {{ interface }} - netplan +_purpose: + Check system can connect to insecure 802.11ac AP using netplan +plugin: shell +command: + # net_driver_info $NET_DRIVER_INFO + wifi_client_test_netplan.py -i {{ interface }} -s $OPEN_AC_SSID -d +user: root +environ: LD_LIBRARY_PATH OPEN_AC_SSID NET_DRIVER_INFO +category_id: com.canonical.plainbox::wireless +estimated_duration: 15 +flags: preserve-locale also-after-suspend also-after-suspend-manual +requires: + wireless_sta_protocol.{{ interface }}_ac == 'supported' + net_if_management.device == '{{ interface }}' and net_if_management.managed_by == 'networkd' + + + +unit: template +template-resource: device +template-filter: device.category == 'WIRELESS' +template-engine: jinja2 +template-unit: job +id: wireless/wireless_connection_open_bg_np_{{ interface }} +_summary: + Connect to unencrypted 802.11b/g Wi-Fi network on {{ interface }} - netplan +_purpose: + Check system can connect to insecure 802.11b/g AP using netplan +plugin: shell +command: + # net_driver_info $NET_DRIVER_INFO + wifi_client_test_netplan.py -i {{ interface }} -s $OPEN_BG_SSID -d +user: root +environ: LD_LIBRARY_PATH OPEN_BG_SSID NET_DRIVER_INFO +category_id: com.canonical.plainbox::wireless +estimated_duration: 15 +flags: preserve-locale also-after-suspend also-after-suspend-manual +requires: + net_if_management.device == '{{ interface }}' and net_if_management.managed_by == 'networkd' + + +unit: template +template-resource: device +template-filter: device.category == 'WIRELESS' +template-engine: jinja2 +template-unit: job +id: wireless/wireless_connection_open_n_np_{{ interface }} +_summary: + Connect to unencrypted 802.11n Wi-Fi network on {{ interface }} - netplan +_purpose: + Check system can connect to insecure 802.11n AP using netplan +plugin: shell +command: + # net_driver_info $NET_DRIVER_INFO + wifi_client_test_netplan.py -i {{ interface }} -s $OPEN_N_SSID -d +user: root +environ: LD_LIBRARY_PATH OPEN_N_SSID NET_DRIVER_INFO +category_id: com.canonical.plainbox::wireless +estimated_duration: 15 +flags: preserve-locale also-after-suspend also-after-suspend-manual +requires: + net_if_management.device == '{{ interface }}' and net_if_management.managed_by == 'networkd' + + +unit: template +template-resource: device +template-filter: device.category == 'WIRELESS' +template-engine: jinja2 +template-unit: job +id: wireless/wireless_connection_wpa_ac_np_{{ interface }} +_summary: + Connect to WPA-encrypted 802.11ac Wi-Fi network on {{ interface }} - netplan +_purpose: + Check system can connect to 802.11ac AP with wpa security using netplan +plugin: shell +command: + # net_driver_info $NET_DRIVER_INFO + wifi_client_test_netplan.py -i {{ interface }} -s $WPA_AC_SSID -k $WPA_AC_PSK -d +user: root +environ: LD_LIBRARY_PATH WPA_AC_SSID WPA_AC_PSK NET_DRIVER_INFO +category_id: com.canonical.plainbox::wireless +estimated_duration: 15 +flags: preserve-locale also-after-suspend also-after-suspend-manual +requires: + wireless_sta_protocol.{{ interface }}_ac == 'supported' + net_if_management.device == '{{ interface }}' and net_if_management.managed_by == 'networkd' + + +unit: template +template-resource: device +template-filter: device.category == 'WIRELESS' +template-engine: jinja2 +template-unit: job +id: wireless/wireless_connection_wpa_bg_np_{{ interface }} +_summary: + Connect to WPA-encrypted 802.11b/g Wi-Fi network on {{ interface }} - netplan +_purpose: + Check system can connect to 802.11b/g AP with wpa security using netplan +plugin: shell +command: + # net_driver_info $NET_DRIVER_INFO + wifi_client_test_netplan.py -i {{ interface }} -s $WPA_BG_SSID -k $WPA_BG_PSK -d +user: root +environ: LD_LIBRARY_PATH WPA_BG_SSID WPA_BG_PSK NET_DRIVER_INFO +category_id: com.canonical.plainbox::wireless +estimated_duration: 15 +flags: preserve-locale also-after-suspend also-after-suspend-manual +requires: + net_if_management.device == '{{ interface }}' and net_if_management.managed_by == 'networkd' + + +unit: template +template-resource: device +template-filter: device.category == 'WIRELESS' +template-engine: jinja2 +template-unit: job +id: wireless/wireless_connection_wpa_n_np_{{ interface }} +_summary: + Connect to WPA-encrypted 802.11n Wi-Fi network on {{ interface }} - netplan +_purpose: + Check system can connect to 802.11n AP with wpa security using netplan +plugin: shell +command: + # net_driver_info $NET_DRIVER_INFO + wifi_client_test_netplan.py -i {{ interface }} -s $WPA_N_SSID -k $WPA_N_PSK -d +user: root +environ: LD_LIBRARY_PATH WPA_N_SSID WPA_N_PSK NET_DRIVER_INFO +category_id: com.canonical.plainbox::wireless +estimated_duration: 15 +flags: preserve-locale also-after-suspend also-after-suspend-manual +requires: + net_if_management.device == '{{ interface }}' and net_if_management.managed_by == 'networkd' |