mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 13:53:31 +01:00
test/parseconf: Add conf_examples for relays
Tests relay/relay_config.c. Part of 32213.
This commit is contained in:
parent
6d52b5ce91
commit
7504711510
1
src/test/conf_examples/relay_01/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_01/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
0
src/test/conf_examples/relay_01/expected
Normal file
0
src/test/conf_examples/relay_01/expected
Normal file
5
src/test/conf_examples/relay_01/torrc
Normal file
5
src/test/conf_examples/relay_01/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Empty linelist values are ignored with a warning
|
||||
ORPort
|
||||
DirPort
|
1
src/test/conf_examples/relay_02/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_02/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
Unrecognized value bad
|
0
src/test/conf_examples/relay_02/expected
Normal file
0
src/test/conf_examples/relay_02/expected
Normal file
7
src/test/conf_examples/relay_02/torrc
Normal file
7
src/test/conf_examples/relay_02/torrc
Normal file
@ -0,0 +1,7 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Bad options are also ignored
|
||||
ORPort illegal_hostname_chars$()^*%(%#%)#(%*
|
||||
DirPort illegal_hostname_chars$()^*%(%#%)#(%*
|
||||
DirCache bad
|
||||
BridgeRelay bad
|
1
src/test/conf_examples/relay_03/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_03/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
2
src/test/conf_examples/relay_03/expected
Normal file
2
src/test/conf_examples/relay_03/expected
Normal file
@ -0,0 +1,2 @@
|
||||
DirPort 1
|
||||
ORPort 0
|
5
src/test/conf_examples/relay_03/torrc
Normal file
5
src/test/conf_examples/relay_03/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# DirPort, but no ORPort
|
||||
ORPort 0
|
||||
DirPort 1
|
1
src/test/conf_examples/relay_04/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_04/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
2
src/test/conf_examples/relay_04/expected
Normal file
2
src/test/conf_examples/relay_04/expected
Normal file
@ -0,0 +1,2 @@
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
4
src/test/conf_examples/relay_04/torrc
Normal file
4
src/test/conf_examples/relay_04/torrc
Normal file
@ -0,0 +1,4 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Try a valid minimal config
|
||||
ORPort 1
|
1
src/test/conf_examples/relay_05/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_05/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
3
src/test/conf_examples/relay_05/expected
Normal file
3
src/test/conf_examples/relay_05/expected
Normal file
@ -0,0 +1,3 @@
|
||||
DirPort 2
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
5
src/test/conf_examples/relay_05/torrc
Normal file
5
src/test/conf_examples/relay_05/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Try a valid minimal directory mirror config
|
||||
ORPort 1
|
||||
DirPort 2
|
1
src/test/conf_examples/relay_06/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_06/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
3
src/test/conf_examples/relay_06/expected
Normal file
3
src/test/conf_examples/relay_06/expected
Normal file
@ -0,0 +1,3 @@
|
||||
BridgeRelay 1
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
5
src/test/conf_examples/relay_06/torrc
Normal file
5
src/test/conf_examples/relay_06/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Try a valid minimal bridge config
|
||||
ORPort 1
|
||||
BridgeRelay 1
|
1
src/test/conf_examples/relay_07/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_07/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
3
src/test/conf_examples/relay_07/expected
Normal file
3
src/test/conf_examples/relay_07/expected
Normal file
@ -0,0 +1,3 @@
|
||||
DirCache 0
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
5
src/test/conf_examples/relay_07/torrc
Normal file
5
src/test/conf_examples/relay_07/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Try a valid minimal non-directory cache config
|
||||
ORPort 1
|
||||
DirCache 0
|
1
src/test/conf_examples/relay_08/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_08/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
3
src/test/conf_examples/relay_08/expected
Normal file
3
src/test/conf_examples/relay_08/expected
Normal file
@ -0,0 +1,3 @@
|
||||
BridgeRelay 1
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
6
src/test/conf_examples/relay_08/torrc
Normal file
6
src/test/conf_examples/relay_08/torrc
Normal file
@ -0,0 +1,6 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Try a valid config with all the bridge options
|
||||
ORPort 1
|
||||
BridgeRelay 1
|
||||
DirCache 1
|
1
src/test/conf_examples/relay_09/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_09/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
3
src/test/conf_examples/relay_09/expected
Normal file
3
src/test/conf_examples/relay_09/expected
Normal file
@ -0,0 +1,3 @@
|
||||
DirPort 2
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
6
src/test/conf_examples/relay_09/torrc
Normal file
6
src/test/conf_examples/relay_09/torrc
Normal file
@ -0,0 +1,6 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Try a valid config with all the non-bridge options
|
||||
ORPort 1
|
||||
DirPort 2
|
||||
DirCache 1
|
1
src/test/conf_examples/relay_10/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_10/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
3
src/test/conf_examples/relay_10/expected
Normal file
3
src/test/conf_examples/relay_10/expected
Normal file
@ -0,0 +1,3 @@
|
||||
BridgeRelay 1
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
7
src/test/conf_examples/relay_10/torrc
Normal file
7
src/test/conf_examples/relay_10/torrc
Normal file
@ -0,0 +1,7 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Try a valid config, that has a warning: Bridge, warn and disable DirPort
|
||||
ORPort 1
|
||||
DirPort 2
|
||||
DirCache 1
|
||||
BridgeRelay 1
|
1
src/test/conf_examples/relay_11/error
Normal file
1
src/test/conf_examples/relay_11/error
Normal file
@ -0,0 +1 @@
|
||||
We are advertising an ORPort, but not actually listening on one
|
1
src/test/conf_examples/relay_11/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_11/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
4
src/test/conf_examples/relay_11/torrc
Normal file
4
src/test/conf_examples/relay_11/torrc
Normal file
@ -0,0 +1,4 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Advertising but not listening: ORPort
|
||||
ORPort 1 NoListen
|
1
src/test/conf_examples/relay_12/error
Normal file
1
src/test/conf_examples/relay_12/error
Normal file
@ -0,0 +1 @@
|
||||
We are advertising a DirPort, but not actually listening on one
|
1
src/test/conf_examples/relay_12/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_12/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
4
src/test/conf_examples/relay_12/torrc
Normal file
4
src/test/conf_examples/relay_12/torrc
Normal file
@ -0,0 +1,4 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Advertising but not listening: DirPort
|
||||
DirPort 1 NoListen
|
1
src/test/conf_examples/relay_13/error
Normal file
1
src/test/conf_examples/relay_13/error
Normal file
@ -0,0 +1 @@
|
||||
We are listening on an ORPort, but not advertising any ORPorts
|
1
src/test/conf_examples/relay_13/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_13/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
4
src/test/conf_examples/relay_13/torrc
Normal file
4
src/test/conf_examples/relay_13/torrc
Normal file
@ -0,0 +1,4 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Listening but not advertising: ORPort
|
||||
ORPort 1 NoAdvertise
|
1
src/test/conf_examples/relay_14/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_14/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
1
src/test/conf_examples/relay_14/expected
Normal file
1
src/test/conf_examples/relay_14/expected
Normal file
@ -0,0 +1 @@
|
||||
DirPort 1 NoAdvertise
|
4
src/test/conf_examples/relay_14/torrc
Normal file
4
src/test/conf_examples/relay_14/torrc
Normal file
@ -0,0 +1,4 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Listening but not advertising: DirPort
|
||||
DirPort 1 NoAdvertise
|
1
src/test/conf_examples/relay_15/error
Normal file
1
src/test/conf_examples/relay_15/error
Normal file
@ -0,0 +1 @@
|
||||
Can't advertise more than one DirPort
|
1
src/test/conf_examples/relay_15/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_15/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
5
src/test/conf_examples/relay_15/torrc
Normal file
5
src/test/conf_examples/relay_15/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Advertising more than one DirPort
|
||||
DirPort 1
|
||||
DirPort 2
|
1
src/test/conf_examples/relay_16/error
Normal file
1
src/test/conf_examples/relay_16/error
Normal file
@ -0,0 +1 @@
|
||||
Configured public relay to listen only on an IPv6 address. Tor needs to listen on an IPv4 address
|
1
src/test/conf_examples/relay_16/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_16/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
4
src/test/conf_examples/relay_16/torrc
Normal file
4
src/test/conf_examples/relay_16/torrc
Normal file
@ -0,0 +1,4 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# IPv6 ORPort only
|
||||
ORPort [::1]:2
|
1
src/test/conf_examples/relay_17/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_17/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
4
src/test/conf_examples/relay_17/expected
Normal file
4
src/test/conf_examples/relay_17/expected
Normal file
@ -0,0 +1,4 @@
|
||||
AccountingMax 1
|
||||
KeepBindCapabilities 0
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
6
src/test/conf_examples/relay_17/torrc
Normal file
6
src/test/conf_examples/relay_17/torrc
Normal file
@ -0,0 +1,6 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Rebind warning
|
||||
ORPort 1
|
||||
AccountingMax 1
|
||||
KeepBindCapabilities 0
|
1
src/test/conf_examples/relay_18/error
Normal file
1
src/test/conf_examples/relay_18/error
Normal file
@ -0,0 +1 @@
|
||||
Invalid DirPort configuration
|
1
src/test/conf_examples/relay_18/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_18/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
4
src/test/conf_examples/relay_18/torrc
Normal file
4
src/test/conf_examples/relay_18/torrc
Normal file
@ -0,0 +1,4 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Bad DirPort
|
||||
DirPort illegal_hostname_chars$()^*%(%#%)#(%*
|
1
src/test/conf_examples/relay_19/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_19/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
3
src/test/conf_examples/relay_19/expected
Normal file
3
src/test/conf_examples/relay_19/expected
Normal file
@ -0,0 +1,3 @@
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
||||
PublishServerDescriptor
|
5
src/test/conf_examples/relay_19/torrc
Normal file
5
src/test/conf_examples/relay_19/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Minimal PublishServerDescriptor
|
||||
ORPort 1
|
||||
PublishServerDescriptor
|
1
src/test/conf_examples/relay_20/error
Normal file
1
src/test/conf_examples/relay_20/error
Normal file
@ -0,0 +1 @@
|
||||
Unrecognized value in PublishServerDescriptor
|
1
src/test/conf_examples/relay_20/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_20/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
5
src/test/conf_examples/relay_20/torrc
Normal file
5
src/test/conf_examples/relay_20/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Invalid PublishServerDescriptor
|
||||
ORPort 1
|
||||
PublishServerDescriptor bad
|
1
src/test/conf_examples/relay_21/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_21/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
3
src/test/conf_examples/relay_21/expected
Normal file
3
src/test/conf_examples/relay_21/expected
Normal file
@ -0,0 +1,3 @@
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
||||
PublishServerDescriptor v1,v2,hidserv
|
5
src/test/conf_examples/relay_21/torrc
Normal file
5
src/test/conf_examples/relay_21/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Ignored PublishServerDescriptor values
|
||||
ORPort 1
|
||||
PublishServerDescriptor v1,v2,hidserv
|
1
src/test/conf_examples/relay_22/error
Normal file
1
src/test/conf_examples/relay_22/error
Normal file
@ -0,0 +1 @@
|
||||
Invalid BridgeDistribution value
|
1
src/test/conf_examples/relay_22/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_22/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
6
src/test/conf_examples/relay_22/torrc
Normal file
6
src/test/conf_examples/relay_22/torrc
Normal file
@ -0,0 +1,6 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Bad BridgeDistribution characters
|
||||
ORPort 1
|
||||
BridgeRelay 1
|
||||
BridgeDistribution *$%()@!
|
1
src/test/conf_examples/relay_23/error
Normal file
1
src/test/conf_examples/relay_23/error
Normal file
@ -0,0 +1 @@
|
||||
Relays must use 'auto' for the ConnectionPadding setting
|
1
src/test/conf_examples/relay_23/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_23/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
5
src/test/conf_examples/relay_23/torrc
Normal file
5
src/test/conf_examples/relay_23/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Relays can't set ConnectionPadding
|
||||
ORPort 1
|
||||
ConnectionPadding 1
|
1
src/test/conf_examples/relay_24/error
Normal file
1
src/test/conf_examples/relay_24/error
Normal file
@ -0,0 +1 @@
|
||||
Relays must use 'auto' for the ConnectionPadding setting
|
1
src/test/conf_examples/relay_24/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_24/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
5
src/test/conf_examples/relay_24/torrc
Normal file
5
src/test/conf_examples/relay_24/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Relays can't set ConnectionPadding
|
||||
ORPort 1
|
||||
ConnectionPadding 0
|
1
src/test/conf_examples/relay_25/error
Normal file
1
src/test/conf_examples/relay_25/error
Normal file
@ -0,0 +1 @@
|
||||
Relays cannot set ReducedConnectionPadding
|
1
src/test/conf_examples/relay_25/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_25/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
5
src/test/conf_examples/relay_25/torrc
Normal file
5
src/test/conf_examples/relay_25/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Relays can't set ReducedConnectionPadding 1
|
||||
ORPort 1
|
||||
ReducedConnectionPadding 1
|
1
src/test/conf_examples/relay_26/error
Normal file
1
src/test/conf_examples/relay_26/error
Normal file
@ -0,0 +1 @@
|
||||
Relays cannot set CircuitPadding to 0
|
1
src/test/conf_examples/relay_26/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_26/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
5
src/test/conf_examples/relay_26/torrc
Normal file
5
src/test/conf_examples/relay_26/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Relays can't set CircuitPadding to 0
|
||||
ORPort 1
|
||||
CircuitPadding 0
|
1
src/test/conf_examples/relay_27/error
Normal file
1
src/test/conf_examples/relay_27/error
Normal file
@ -0,0 +1 @@
|
||||
Relays cannot set ReducedCircuitPadding
|
1
src/test/conf_examples/relay_27/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_27/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
5
src/test/conf_examples/relay_27/torrc
Normal file
5
src/test/conf_examples/relay_27/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Relays can't set ReducedCircuitPadding 1
|
||||
ORPort 1
|
||||
ReducedCircuitPadding 1
|
1
src/test/conf_examples/relay_28/error
Normal file
1
src/test/conf_examples/relay_28/error
Normal file
@ -0,0 +1 @@
|
||||
SigningKeyLifetime is too short
|
1
src/test/conf_examples/relay_28/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_28/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
5
src/test/conf_examples/relay_28/torrc
Normal file
5
src/test/conf_examples/relay_28/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# Short key lifetimes
|
||||
ORPort 1
|
||||
SigningKeyLifetime 1
|
1
src/test/conf_examples/relay_29/error_no_dirauth_relay
Normal file
1
src/test/conf_examples/relay_29/error_no_dirauth_relay
Normal file
@ -0,0 +1 @@
|
||||
This tor was built with relay mode disabled.
|
2
src/test/conf_examples/relay_29/expected
Normal file
2
src/test/conf_examples/relay_29/expected
Normal file
@ -0,0 +1,2 @@
|
||||
Nickname Unnamed
|
||||
ORPort 1
|
5
src/test/conf_examples/relay_29/torrc
Normal file
5
src/test/conf_examples/relay_29/torrc
Normal file
@ -0,0 +1,5 @@
|
||||
# Relay tests
|
||||
# Options from relay/relay_config.c
|
||||
# MyFamily normalisation: empty MyFamily
|
||||
ORPort 1
|
||||
MyFamily
|
Loading…
Reference in New Issue
Block a user