X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Fclient%2FtestAggregate.py;h=d78352bef1958c4e536905913e96a5e9205e65df;hb=4a9e6751f9f396f463932133b9d62fc925a99ef6;hp=b276984f6c6f6b09b82cab08161ac895f82edb03;hpb=5307e4e09dd0a7982f0c6dfdd13065425c802005;p=sfa.git diff --git a/tests/client/testAggregate.py b/tests/client/testAggregate.py index b276984f..d78352be 100644 --- a/tests/client/testAggregate.py +++ b/tests/client/testAggregate.py @@ -5,7 +5,7 @@ from sfa.trust.credential import * cred = Credential(filename = 'tmack.pl.sa.cred') slicehrn = 'planetlab.us.pl.tmack' -print cred.get_privileges().save_to_string() +print(cred.get_privileges().save_to_string()) r = GeniClient('https://128.112.139.120:12345', 'tmack.pkey', 'tmack.cert') a = GeniClient('https://128.112.139.120:12346', 'tmack.pkey', 'tmack.cert') @@ -13,18 +13,18 @@ a = GeniClient('https://128.112.139.120:12346', 'tmack.pkey', 'tmack.cert') #pprint(r.list(cred, 'planetlab.us.princeton')) pprint(a.get_policy(cred)) -print "components at this aggregate" +print("components at this aggregate") components = a.list_components() pprint(components) -print "resources being used by %(slicehrn)s" % locals() +print("resources being used by %(slicehrn)s" % locals()) tmack_components = a.list_resources(cred, slicehrn) pprint(tmack_components) #print "removing %(slicehrn)s from all nodes" % locals() #a.DeleteSliver(cred, slicehrn) -print "adding %(slicehrn)s back to its original nodes" % locals() +print("adding %(slicehrn)s back to its original nodes" % locals()) a.list_resources(cred, slicehrn) a.CreateSliver(cred, slicehrn, components) a.list_resources(cred, slicehrn)