[tor-commits] [ooni-probe/master] Add check for input file in http_host test

art at torproject.org art at torproject.org
Fri Apr 29 09:42:25 UTC 2016


commit 3683957390dca24ff0d29ae40b7ecea06cec29d1
Author: Arturo Filastò <arturo at filasto.net>
Date:   Thu Mar 24 13:25:54 2016 +0100

    Add check for input file in http_host test
---
 ooni/nettests/manipulation/http_host.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ooni/nettests/manipulation/http_host.py b/ooni/nettests/manipulation/http_host.py
index d0387cb..a38e3cc 100644
--- a/ooni/nettests/manipulation/http_host.py
+++ b/ooni/nettests/manipulation/http_host.py
@@ -21,7 +21,7 @@ class UsageOptions(usage.Options):
     optParameters = [['backend', 'b', None,
                       'URL of the test backend to use. Should be \
                               listening on port 80 and be a \
-                              HTTPReturnJSONHeadersHelper'],
+                        HTTPReturnJSONHeadersHelper (ex. http://1.1.1.1)'],
                      ['content', 'c', None, 'The file to read \
                             from containing the content of a block page']]
 
@@ -50,7 +50,7 @@ class HTTPHost(httpt.HTTPTest):
                  'List of hostnames to test for censorship']
 
     requiredTestHelpers = {'backend': 'http-return-json-headers'}
-    requiredOptions = ['backend']
+    requiredOptions = ['backend', 'file']
     requiresTor = False
     requiresRoot = False
 





More information about the tor-commits mailing list