does your image actually use network-manager ? else that test is moot … (i’m not sure if plainbox has a wlan test for the default network setup via netplan though … )
i do have network-manager snap installed which uses nmcli commands
$snap list
network-manager 1.2.2-13 232 canonical devmode
removed this del command and tried
–trap “nmcli con delete id $WPA_BG_SSID” EXIT
ID: com.canonical.certification::wireless/wireless_connection_wpa_bg
Category: com.canonical.plainbox::wireless
... 8< -------------------------------------------------------------------------
**Can't write to /etc/NetworkManager/system-connections/IFC.** Is this command being run as root?
plainbox uses nmcli commands to test the wifi interafces
plainbox-provider-checkbox , create_connection “Failed to register”
is it not possible to run the below 2 commands in one command?
$ nmcli con add con-name $WPA_BG_SSID ifname wlan0 type wifi ssid $WPA_BG_SSID
$ nmcli c modify $WPA_BG_SSID wifi-sec.key-mgmt wpa-psk wifi-sec.psk $WPA_BG_PSK
if i manually run the above 2 commands and then run the job wireless/wireless_connection_wpa_bg, test passes.
fyi, #write_connection_file(name, wifi_connection) , i would assume this is not required for ubuntu snap core.
when ethernet and wlan0 connected, wlan0 “ping test fails” is this expected behaviour or do we need to change ethernet to control from network-manager
The job you’re using comes from plainbox-provider-checkbox, which mainly dealt with desktops.
plainbox-provider-snappy has wireless/wireless_connection_wpa_bg_nm_{{ interface }} jobs for snappy systems.
I recommend you try those.
Also, if there are two similar jobs that come from those two providers, then on snappy you should always use the one from plainbox-provider-snappy.
Also browsing test plans can be useful as they include the right ones.
The hyphen (-) in the first column indicates that the checkbox-snappy:network-manager plug is not connected to a slot. Run the following to connect it: