[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [spec/master] Fix the deck formatting so that they are valid.



commit 532484546119687a849dd7667093b8ef6b7bde29
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Wed Aug 13 17:08:40 2014 +0200

    Fix the deck formatting so that they are valid.
---
 test-decks/td-spec.md |   35 ++++++++++++++++++-----------------
 1 file changed, 18 insertions(+), 17 deletions(-)

diff --git a/test-decks/td-spec.md b/test-decks/td-spec.md
index 83075b5..70e523a 100644
--- a/test-decks/td-spec.md
+++ b/test-decks/td-spec.md
@@ -64,14 +64,16 @@ header section is the following:
 
 ```
 header:
-collector: 'http://localhost'
-annotations: 
-key1: value1
-key2: value2
-flags: 
-- no-collector
+  collector: 'http://localhost'
+  annotations: 
+  key1: value1
+  key2: value2
+  flags: 
+  - no-collector
 ```
 
+The header may also be omitted.
+
 The body is a list composed of one element per nettest execution. Every nettest
 execution is a dictionary composed of the following three keys:
 
@@ -85,13 +87,13 @@ list if that options doesn't have any arguments. A valid body can be:
 ```
 body:
 - nettest: manipulation/http_request
-local_options:
-url: 'http://torproject.org'
-global_options:
-collector: 'http://localhost'
-flags:
-- no-geoip
-- nettest: manipulation/captiveportal
+  local_options:
+    url: 'http://torproject.org'
+    global_options:
+    collector: 'http://localhost'
+    flags:
+    - no-geoip
+    - nettest: manipulation/captiveportal
 ```
 
 # 3. Implementation details
@@ -177,13 +179,12 @@ The container proposed is tar+gzip because it's well supported in python.
 The complete.deck provided with each installation of ooni-probe would be:
 
 ```
-header:
 body:
 - nettest: blocking/http_request
-input_file: 'httpo://ihiderha53f36lsd.onion/input/37e60e13536f6afe47a830bfb6b371b5cf65da66d7ad65137344679b24fdccd1'
+  input_file: 'httpo://ihiderha53f36lsd.onion/input/37e60e13536f6afe47a830bfb6b371b5cf65da66d7ad65137344679b24fdccd1'
 
 - nettest: blocking/dns_consistency
-input_file: 'httpo://ihiderha53f36lsd.onion/input/37e60e13536f6afe47a830bfb6b371b5cf65da66d7ad65137344679b24fdccd1'
+  input_file: 'httpo://ihiderha53f36lsd.onion/input/37e60e13536f6afe47a830bfb6b371b5cf65da66d7ad65137344679b24fdccd1'
 
 - nettest: manipulation/http_invalid_request_line
 
@@ -192,5 +193,5 @@ input_file: 'httpo://ihiderha53f36lsd.onion/input/37e60e13536f6afe47a830bfb6b371
 - nettest: manipulation/traceroute
 
 - nettest: blocking/http_host
-input_file: 'httpo://ihiderha53f36lsd.onion/input/37e60e13536f6afe47a830bfb6b371b5cf65da66d7ad65137344679b24fdccd1'
+  input_file: 'httpo://ihiderha53f36lsd.onion/input/37e60e13536f6afe47a830bfb6b371b5cf65da66d7ad65137344679b24fdccd1'
 ```



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits