[tor-commits] [ooni-probe/master] Improved RESTfulness of the bouncer API.

art at torproject.org art at torproject.org
Mon Sep 1 10:32:49 UTC 2014


commit 745039c45ba3f10ed7a63cc36d7f223d4c14bceb
Author: kudrom <kudrom at riseup.net>
Date:   Fri Aug 29 18:43:14 2014 +0200

    Improved RESTfulness of the bouncer API.
---
 ooni/oonibclient.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ooni/oonibclient.py b/ooni/oonibclient.py
index 3d2e1b1..a26b771 100644
--- a/ooni/oonibclient.py
+++ b/ooni/oonibclient.py
@@ -201,7 +201,7 @@ class OONIBClient(object):
     @defer.inlineCallbacks
     def lookupTestCollector(self, net_tests):
         try:
-            test_collector = yield self.queryBackend('POST', '/bouncer',
+            test_collector = yield self.queryBackend('POST', '/bouncer/net-tests',
                                                      query={'net-tests': net_tests})
         except Exception:
             raise e.CouldNotFindTestCollector
@@ -211,7 +211,7 @@ class OONIBClient(object):
     @defer.inlineCallbacks
     def lookupTestHelpers(self, test_helper_names):
         try:
-            test_helper = yield self.queryBackend('POST', '/bouncer',
+            test_helper = yield self.queryBackend('POST', '/bouncer/test-helpers',
                                                   query={'test-helpers': test_helper_names})
         except Exception as exc:
             log.exception(exc)





More information about the tor-commits mailing list