mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
test/parseconf: Update config parsing tests for 32410
This commit is contained in:
parent
aaef9a2519
commit
a0820bc00d
@ -1 +0,0 @@
|
||||
This tor was built with relay mode disabled.
|
@ -0,0 +1 @@
|
||||
Nickname TooManyCharactersInThisNickname
|
@ -1,2 +1,4 @@
|
||||
# This nickname is too long; we won't accept it.
|
||||
# (Unless the relay module is disabled, because Nickname is a
|
||||
# relay-only option. We'll ignore all relay-only options in #32395.)
|
||||
Nickname TooManyCharactersInThisNickname
|
||||
|
@ -1 +0,0 @@
|
||||
This tor was built with relay mode disabled.
|
@ -0,0 +1 @@
|
||||
Nickname has a space
|
@ -1,2 +1,4 @@
|
||||
# this nickname has spaces in it and won't work.
|
||||
# (Unless the relay module is disabled, because Nickname is a
|
||||
# relay-only option. We'll ignore all relay-only options in #32395.)
|
||||
Nickname has a space
|
||||
|
@ -1 +0,0 @@
|
||||
This tor was built with relay mode disabled.
|
@ -0,0 +1 @@
|
||||
ContactInfo "\304\353\304\353\304\353@example.com"
|
@ -1 +1,5 @@
|
||||
# We only accept ContactInfo in UTF-8 (or 7-bit ASCII)
|
||||
# (Unless the relay module is disabled, because ContactInfo is a
|
||||
# relay-only option. We'll ignore all relay-only options in #32395.
|
||||
# But at the moment, tor canonicalises and quotes the string.)
|
||||
ContactInfo ÄëÄëÄë@example.com
|
||||
|
@ -1 +0,0 @@
|
||||
This tor was built with relay mode disabled.
|
@ -1 +0,0 @@
|
||||
This tor was built with relay mode disabled.
|
@ -1 +0,0 @@
|
||||
This tor was built with relay mode disabled.
|
@ -1 +0,0 @@
|
||||
This tor was built with relay mode disabled.
|
8
src/test/conf_examples/pt_02/expected_no_dirauth_relay
Normal file
8
src/test/conf_examples/pt_02/expected_no_dirauth_relay
Normal file
@ -0,0 +1,8 @@
|
||||
ExtORPort illegal_hostname_chars$()^*%(%
|
||||
ServerTransportListenAddr bad
|
||||
ServerTransportListenAddr bad2 illegal_hostname_chars$()^*%(%
|
||||
ServerTransportOptions bad
|
||||
ServerTransportOptions bad2 not_kv
|
||||
ServerTransportPlugin bad
|
||||
ServerTransportPlugin bad2 exec
|
||||
ServerTransportPlugin bad3 exec /
|
@ -1,6 +1,8 @@
|
||||
# Relay PT tests
|
||||
# Options from relay/transport_config.c
|
||||
# Bad options are also ignored
|
||||
# (Unless the relay module is disabled, because they are relay-only
|
||||
# options. We'll ignore all relay-only options in #32395.)
|
||||
ExtORPort illegal_hostname_chars$()^*%(%#%)#(%*
|
||||
ServerTransportPlugin bad
|
||||
ServerTransportPlugin bad2 exec
|
||||
|
@ -1 +0,0 @@
|
||||
This tor was built with relay mode disabled.
|
@ -1 +0,0 @@
|
||||
This tor was built with relay mode disabled.
|
@ -1 +0,0 @@
|
||||
This tor was built with relay mode disabled.
|
@ -1 +0,0 @@
|
||||
This tor was built with relay mode disabled.
|
2
src/test/conf_examples/pt_08/expected_no_dirauth_relay
Normal file
2
src/test/conf_examples/pt_08/expected_no_dirauth_relay
Normal file
@ -0,0 +1,2 @@
|
||||
ExtORPort unix:/
|
||||
ServerTransportPlugin bad3 exec /
|
@ -1,5 +1,7 @@
|
||||
# Relay PT tests
|
||||
# Options from relay/transport_config.c
|
||||
# Try an invalid config with a unix socket for ExtORPort
|
||||
# (Unless the relay module is disabled, because they are relay-only
|
||||
# options. We'll ignore all relay-only options in #32395.)
|
||||
ExtORPort unix:/
|
||||
ServerTransportPlugin bad3 exec /
|
||||
|
@ -1 +0,0 @@
|
||||
This tor was built with relay mode disabled.
|
Loading…
Reference in New Issue
Block a user