summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-02-14 10:05:47 (GMT)
committerSamuel Ortiz <sameo@linux.intel.com>2012-02-14 13:55:56 (GMT)
commit11863bb1a422e563c1e95bbe91db83b56ca58f6b (patch)
treee90f9c3a2985ec25dca11a476f4603861c0705b9 /test
parentbfa97eda0985de87982e4b49f0383750f1115c86 (diff)
downloadconnman-11863bb1a422e563c1e95bbe91db83b56ca58f6b.zip
connman-11863bb1a422e563c1e95bbe91db83b56ca58f6b.tar.gz
connman-11863bb1a422e563c1e95bbe91db83b56ca58f6b.tar.bz2
test: Update simple-agent to handle RequestBrowser method
Diffstat (limited to 'test')
-rwxr-xr-xtest/simple-agent16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/simple-agent b/test/simple-agent
index cda9693..38b6e41 100755
--- a/test/simple-agent
+++ b/test/simple-agent
@@ -97,6 +97,22 @@ class Agent(dbus.service.Object):
@dbus.service.method("net.connman.Agent",
in_signature='os',
out_signature='')
+ def RequestBrowser(self, path, url):
+ print "RequestBrowser (%s,%s)" % (path, url)
+
+ print "Please login through the given url in a browser"
+ print "Then press enter to accept or some text to cancel"
+
+ args = raw_input('> ')
+
+ if len(args) > 0:
+ raise Canceled("canceled")
+
+ return
+
+ @dbus.service.method("net.connman.Agent",
+ in_signature='os',
+ out_signature='')
def ReportError(self, path, error):
print "ReportError %s, %s" % (path, error)
retry = raw_input("Retry service (yes/no): ")