@@ -5418,3 +5418,14 @@ def test_dbus_assoc_reject(dev, apdev):
with TestDbusConnect(bus) as t:
if not t.success():
raise Exception("Expected signals not seen")
+
+def test_dbus_mesh_interface_add(dev, apdev):
+ """D-Bus MeshInterfaceAdd"""
+ (bus,wpas_obj,path,if_obj) = prepare_dbus(dev[0])
+ iface = dbus.Interface(if_obj, WPAS_DBUS_IFACE)
+ try:
+ iface.MeshInterfaceAdd("mesh0")
+ raise Exception("MeshInterfaceAdd() accepted unexpectedly")
+ except dbus.exceptions.DBusException, e:
+ if not str(e).startswith("fi.w1.wpa_supplicant1.UnknownError: Not allowed to add mesh interface"):
+ raise Exception("Unexpected error message for MeshInterfaceAdd(): " + str(e))
Signed-off-by: Saurav Babu <saurav.babu@samsung.com> --- tests/hwsim/test_dbus.py | 11 +++++++++++ 1 file changed, 11 insertions(+)