X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=testapi.py;h=bab1647b8a0fe2d3afdc6713d750af25f3c05a54;hb=refs%2Fheads%2F1.0;hp=4876fe6eedeedae364a139788ab5472ef4989573;hpb=ff1455177461f5adf513543fd2a85289f359ff0e;p=monitor.git diff --git a/testapi.py b/testapi.py index 4876fe6..bab1647 100755 --- a/testapi.py +++ b/testapi.py @@ -12,8 +12,10 @@ try: site_nodes = api.GetNodes(site['node_ids']) site_people = api.GetPersons(site['person_ids']) for node in site_nodes: - network = api.GetNodeNetworks(node['nodenetwork_ids']) + network = api.GetInterfaces(node['interface_ids']) print "ok" except: - sys.stderr.write(traceback.print_exc()) + sys.stderr.write(traceback.format_exc()) + from nodecommon import email_exception + email_exception() print "fail"