diff options
author | Christopher Baines <cb15g11@soton.ac.uk> | 2014-04-09 21:51:46 +0100 |
---|---|---|
committer | Christopher Baines <cb15g11@soton.ac.uk> | 2014-04-09 21:51:46 +0100 |
commit | f4d1509d39d5b67b7d83fec75ae016141034f3c0 (patch) | |
tree | d5c3223716516feec434767071f388a74732060a /networks/hs-start-3 | |
parent | d753b9994986c4a19d60bfe6c49609eb13d7ca7c (diff) | |
download | chutney-f4d1509d39d5b67b7d83fec75ae016141034f3c0.tar chutney-f4d1509d39d5b67b7d83fec75ae016141034f3c0.tar.gz |
More tests
Diffstat (limited to 'networks/hs-start-3')
-rw-r--r-- | networks/hs-start-3 | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/networks/hs-start-3 b/networks/hs-start-3 new file mode 100644 index 0000000..bc60e94 --- /dev/null +++ b/networks/hs-start-3 @@ -0,0 +1,35 @@ +from hs_instance_start import * + +network = Network() + +hs_nodes, hs_servers = testing.create_hidden_service(3) + +network.add(hs_nodes); + +network.add(Node.create(3, { + "tag": "a", + "authority": 1, + "relay": 1, + "torrc": "authority.tmpl" +})) + +network.add(Node.create(30, { + "tag": "c", + "torrc": "client.tmpl" +})) + +network.add(Node.create(10, { + "tag": "r", + "relay": 1, + "torrc": "intro.tmpl" +})) + +def start(): + results = hs_instance_start(network) + + for server in hs_servers: + server.stopListening() + + network.stop() + + return results |