mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-23 20:03:31 +01:00
test/parseconf: Add conf_examples for PTs
Tests relay/transport_config.c. Part of 32213.
This commit is contained in:
parent
233b96d83a
commit
6d52b5ce91
1
src/test/conf_examples/pt_01/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/pt_01/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
0
src/test/conf_examples/pt_01/expected
Normal file
0
src/test/conf_examples/pt_01/expected
Normal file
7
src/test/conf_examples/pt_01/torrc
Normal file
7
src/test/conf_examples/pt_01/torrc
Normal file
@ -0,0 +1,7 @@
|
||||
# Relay PT tests
|
||||
# Options from relay/transport_config.c
|
||||
# Empty linelist values are ignored with a warning
|
||||
ExtORPort
|
||||
ServerTransportPlugin
|
||||
ServerTransportListenAddr
|
||||
ServerTransportOptions
|
1
src/test/conf_examples/pt_02/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/pt_02/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
0
src/test/conf_examples/pt_02/expected
Normal file
0
src/test/conf_examples/pt_02/expected
Normal file
11
src/test/conf_examples/pt_02/torrc
Normal file
11
src/test/conf_examples/pt_02/torrc
Normal file
@ -0,0 +1,11 @@
|
||||
# Relay PT tests
|
||||
# Options from relay/transport_config.c
|
||||
# Bad options are also ignored
|
||||
ExtORPort illegal_hostname_chars$()^*%(%#%)#(%*
|
||||
ServerTransportPlugin bad
|
||||
ServerTransportPlugin bad2 exec
|
||||
ServerTransportPlugin bad3 exec /
|
||||
ServerTransportListenAddr bad
|
||||
ServerTransportListenAddr bad2 illegal_hostname_chars$()^*%(%#%)#(%*
|
||||
ServerTransportOptions bad
|
||||
ServerTransportOptions bad2 not_kv
|
1
src/test/conf_examples/pt_03/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/pt_03/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
1
src/test/conf_examples/pt_03/expected
Normal file
1
src/test/conf_examples/pt_03/expected
Normal file
@ -0,0 +1 @@
|
||||
ServerTransportPlugin bad3 exec /
|
4
src/test/conf_examples/pt_03/torrc
Normal file
4
src/test/conf_examples/pt_03/torrc
Normal file
@ -0,0 +1,4 @@
|
||||
# Relay PT tests
|
||||
# Options from relay/transport_config.c
|
||||
# Plugin, but no ExtORPort
|
||||
ServerTransportPlugin bad3 exec /
|
1
src/test/conf_examples/pt_04/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/pt_04/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
3
src/test/conf_examples/pt_04/expected
Normal file
3
src/test/conf_examples/pt_04/expected
Normal file
@ -0,0 +1,3 @@
|
||||
ExtORPortCookieAuthFile /
|
||||
ExtORPort 1
|
||||
ServerTransportPlugin bad3 exec /
|
6
src/test/conf_examples/pt_04/torrc
Normal file
6
src/test/conf_examples/pt_04/torrc
Normal file
@ -0,0 +1,6 @@
|
||||
# Relay PT tests
|
||||
# Options from relay/transport_config.c
|
||||
# Try a bad cookie auth file
|
||||
ExtORPort 1
|
||||
ExtORPortCookieAuthFile /
|
||||
ServerTransportPlugin bad3 exec /
|
1
src/test/conf_examples/pt_05/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/pt_05/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
4
src/test/conf_examples/pt_05/expected
Normal file
4
src/test/conf_examples/pt_05/expected
Normal file
@ -0,0 +1,4 @@
|
||||
ExtORPort 1
|
||||
Nickname Unnamed
|
||||
ORPort 2
|
||||
ServerTransportPlugin bad3 exec /
|
6
src/test/conf_examples/pt_05/torrc
Normal file
6
src/test/conf_examples/pt_05/torrc
Normal file
@ -0,0 +1,6 @@
|
||||
# Relay PT tests
|
||||
# Options from relay/transport_config.c
|
||||
# Try a valid minimal config
|
||||
ORPort 2
|
||||
ExtORPort 1
|
||||
ServerTransportPlugin bad3 exec /
|
1
src/test/conf_examples/pt_06/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/pt_06/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
6
src/test/conf_examples/pt_06/expected
Normal file
6
src/test/conf_examples/pt_06/expected
Normal file
@ -0,0 +1,6 @@
|
||||
ExtORPortCookieAuthFile /
|
||||
ExtORPortCookieAuthFileGroupReadable 1
|
||||
ExtORPort 1
|
||||
ServerTransportListenAddr bad3 127.0.0.1:2
|
||||
ServerTransportOptions bad3 a=b
|
||||
ServerTransportPlugin bad3 exec /
|
9
src/test/conf_examples/pt_06/torrc
Normal file
9
src/test/conf_examples/pt_06/torrc
Normal file
@ -0,0 +1,9 @@
|
||||
# Relay PT tests
|
||||
# Options from relay/transport_config.c
|
||||
# Try a config with all the options
|
||||
ExtORPort 1
|
||||
ExtORPortCookieAuthFile /
|
||||
ExtORPortCookieAuthFileGroupReadable 1
|
||||
ServerTransportPlugin bad3 exec /
|
||||
ServerTransportListenAddr bad3 127.0.0.1:2
|
||||
ServerTransportOptions bad3 a=b
|
1
src/test/conf_examples/pt_07/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/pt_07/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
4
src/test/conf_examples/pt_07/expected
Normal file
4
src/test/conf_examples/pt_07/expected
Normal file
@ -0,0 +1,4 @@
|
||||
ExtORPort 2.2.2.2:1
|
||||
Nickname Unnamed
|
||||
ORPort 2
|
||||
ServerTransportPlugin bad3 exec /
|
6
src/test/conf_examples/pt_07/torrc
Normal file
6
src/test/conf_examples/pt_07/torrc
Normal file
@ -0,0 +1,6 @@
|
||||
# Relay PT tests
|
||||
# Options from relay/transport_config.c
|
||||
# Try a valid config with a risky ExtORPort address
|
||||
ORPort 2
|
||||
ExtORPort 2.2.2.2:1
|
||||
ServerTransportPlugin bad3 exec /
|
1
src/test/conf_examples/pt_08/error
Normal file
1
src/test/conf_examples/pt_08/error
Normal file
@ -0,0 +1 @@
|
||||
ExtORPort does not support unix sockets
|
1
src/test/conf_examples/pt_08/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/pt_08/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
5
src/test/conf_examples/pt_08/torrc
Normal file
5
src/test/conf_examples/pt_08/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay PT tests
|
||||
# Options from relay/transport_config.c
|
||||
# Try an invalid config with a unix socket for ExtORPort
|
||||
ExtORPort unix:/
|
||||
ServerTransportPlugin bad3 exec /
|
1
src/test/conf_examples/pt_09/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/pt_09/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
0
src/test/conf_examples/pt_09/expected
Normal file
0
src/test/conf_examples/pt_09/expected
Normal file
7
src/test/conf_examples/pt_09/torrc
Normal file
7
src/test/conf_examples/pt_09/torrc
Normal file
@ -0,0 +1,7 @@
|
||||
# Relay PT tests
|
||||
# Options from relay/transport_config.c
|
||||
# Try a valid minimal config, with a bad ServerTransportListenAddr
|
||||
ORPort 2
|
||||
ExtORPort 1
|
||||
ServerTransportPlugin bad3 exec /
|
||||
ServerTransportListenAddr bad3 [aaaa::bbbb:ccccc]
|
Loading…
Reference in New Issue
Block a user