tests: D-Bus SaveConfig
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
2d0fe6bc4e
commit
2299b54383
1 changed files with 11 additions and 0 deletions
|
@ -4971,3 +4971,14 @@ def test_dbus_expectdisconnect(dev, apdev):
|
|||
wpas.ExpectDisconnect()
|
||||
dev[0].request("DISCONNECT")
|
||||
dev[0].wait_disconnected()
|
||||
|
||||
def test_dbus_save_config(dev, apdev):
|
||||
"""D-Bus SaveConfig"""
|
||||
(bus,wpas_obj,path,if_obj) = prepare_dbus(dev[0])
|
||||
iface = dbus.Interface(if_obj, WPAS_DBUS_IFACE)
|
||||
try:
|
||||
iface.SaveConfig()
|
||||
raise Exception("SaveConfig() accepted unexpectedly")
|
||||
except dbus.exceptions.DBusException, e:
|
||||
if not str(e).startswith("fi.w1.wpa_supplicant1.UnknownError: Not allowed to update configuration"):
|
||||
raise Exception("Unexpected error message for SaveConfig(): " + str(e))
|
||||
|
|
Loading…
Reference in a new issue