From: Samuel Ortiz Date: Fri, 18 Feb 2011 14:16:31 +0000 (+0100) Subject: test: Remove APN support from test-connman X-Git-Tag: 0.70~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=158256bb876b501e7128a4748bd52042c5add7c6;p=platform%2Fupstream%2Fconnman.git test: Remove APN support from test-connman --- diff --git a/test/test-connman b/test/test-connman index c0a462d..9a855fb 100755 --- a/test/test-connman +++ b/test/test-connman @@ -13,7 +13,6 @@ if len(sys.argv) < 2: print "" print " state" print " services" - print " apn [apn]" print " passphrase [passphrase]" print " autoconnect [autoconnect]" print " connect " @@ -57,37 +56,6 @@ elif sys.argv[1] in ["services", "list", "show"]: print_services(properties["Services"]) -elif sys.argv[1] in ["apn"]: - if (len(sys.argv) < 3): - print "Need at least service parameter" - sys.exit(1) - - path = "/profile/default/" + sys.argv[2] - - service = dbus.Interface(bus.get_object("net.connman", path), - "net.connman.Service") - - if (len(sys.argv) > 3): - apn = sys.argv[3] - - service.SetProperty("APN", apn); - - print "APN %s set for %s" % (apn, sys.argv[2]) - else: - properties = service.GetProperties() - - if "Name" in properties.keys(): - name = properties["Name"] - else: - name = "{" + properties["Type"] + "}" - - if "APN" in properties.keys(): - apn = properties["APN"] - else: - apn = "not set" - - print "APN for %s is %s" % (name, apn) - elif sys.argv[1] in ["passphrase", "pass"]: if (len(sys.argv) < 3): print "Need at least service parameter"