test: Add script for retrieving clock properties
[platform/upstream/connman.git] / test / show-introspection
index 5e392c7..20e8a50 100755 (executable)
@@ -4,24 +4,18 @@ import dbus
 
 bus = dbus.SystemBus()
 
-object = dbus.Interface(bus.get_object("org.moblin.connman", '/'),
+object = dbus.Interface(bus.get_object("net.connman", '/'),
                                "org.freedesktop.DBus.Introspectable")
 
 print object.Introspect()
 
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
+manager = dbus.Interface(bus.get_object("net.connman", "/"),
+                                       "net.connman.Manager")
 
 properties = manager.GetProperties()
 
 for path in properties["Technologies"]:
-       technology = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Technology")
+       object = dbus.Interface(bus.get_object("net.connman", path),
+                                       "org.freedesktop.DBus.Introspectable")
 
-       properties = technology.GetProperties()
-
-       for path in properties["Devices"]:
-               object = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.freedesktop.DBus.Introspectable")
-
-               print object.Introspect()
+       print object.Introspect()