test/parseconf: Add conf_examples for relays

Tests relay/relay_config.c.

Part of 32213.
This commit is contained in:
teor
2019-11-01 14:29:04 +10:00
parent 6d52b5ce91
commit 7504711510
87 changed files with 224 additions and 0 deletions
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+5
View File
@@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Empty linelist values are ignored with a warning
ORPort
DirPort
@@ -0,0 +1 @@
Unrecognized value bad
+7
View 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
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+2
View File
@@ -0,0 +1,2 @@
DirPort 1
ORPort 0
+5
View File
@@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# DirPort, but no ORPort
ORPort 0
DirPort 1
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+2
View File
@@ -0,0 +1,2 @@
Nickname Unnamed
ORPort 1
+4
View File
@@ -0,0 +1,4 @@
# Relay tests
# Options from relay/relay_config.c
# Try a valid minimal config
ORPort 1
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+3
View File
@@ -0,0 +1,3 @@
DirPort 2
Nickname Unnamed
ORPort 1
+5
View File
@@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Try a valid minimal directory mirror config
ORPort 1
DirPort 2
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+3
View File
@@ -0,0 +1,3 @@
BridgeRelay 1
Nickname Unnamed
ORPort 1
+5
View File
@@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Try a valid minimal bridge config
ORPort 1
BridgeRelay 1
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+3
View File
@@ -0,0 +1,3 @@
DirCache 0
Nickname Unnamed
ORPort 1
+5
View 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
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+3
View File
@@ -0,0 +1,3 @@
BridgeRelay 1
Nickname Unnamed
ORPort 1
+6
View 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
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+3
View File
@@ -0,0 +1,3 @@
DirPort 2
Nickname Unnamed
ORPort 1
+6
View 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
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+3
View File
@@ -0,0 +1,3 @@
BridgeRelay 1
Nickname Unnamed
ORPort 1
+7
View 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
View File
@@ -0,0 +1 @@
We are advertising an ORPort, but not actually listening on one
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+4
View File
@@ -0,0 +1,4 @@
# Relay tests
# Options from relay/relay_config.c
# Advertising but not listening: ORPort
ORPort 1 NoListen
+1
View File
@@ -0,0 +1 @@
We are advertising a DirPort, but not actually listening on one
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+4
View File
@@ -0,0 +1,4 @@
# Relay tests
# Options from relay/relay_config.c
# Advertising but not listening: DirPort
DirPort 1 NoListen
+1
View File
@@ -0,0 +1 @@
We are listening on an ORPort, but not advertising any ORPorts
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+4
View File
@@ -0,0 +1,4 @@
# Relay tests
# Options from relay/relay_config.c
# Listening but not advertising: ORPort
ORPort 1 NoAdvertise
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+1
View File
@@ -0,0 +1 @@
DirPort 1 NoAdvertise
+4
View File
@@ -0,0 +1,4 @@
# Relay tests
# Options from relay/relay_config.c
# Listening but not advertising: DirPort
DirPort 1 NoAdvertise
+1
View File
@@ -0,0 +1 @@
Can't advertise more than one DirPort
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+5
View File
@@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Advertising more than one DirPort
DirPort 1
DirPort 2
+1
View File
@@ -0,0 +1 @@
Configured public relay to listen only on an IPv6 address. Tor needs to listen on an IPv4 address
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+4
View File
@@ -0,0 +1,4 @@
# Relay tests
# Options from relay/relay_config.c
# IPv6 ORPort only
ORPort [::1]:2
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+4
View File
@@ -0,0 +1,4 @@
AccountingMax 1
KeepBindCapabilities 0
Nickname Unnamed
ORPort 1
+6
View File
@@ -0,0 +1,6 @@
# Relay tests
# Options from relay/relay_config.c
# Rebind warning
ORPort 1
AccountingMax 1
KeepBindCapabilities 0
+1
View File
@@ -0,0 +1 @@
Invalid DirPort configuration
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+4
View File
@@ -0,0 +1,4 @@
# Relay tests
# Options from relay/relay_config.c
# Bad DirPort
DirPort illegal_hostname_chars$()^*%(%#%)#(%*
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+3
View File
@@ -0,0 +1,3 @@
Nickname Unnamed
ORPort 1
PublishServerDescriptor
+5
View File
@@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Minimal PublishServerDescriptor
ORPort 1
PublishServerDescriptor
+1
View File
@@ -0,0 +1 @@
Unrecognized value in PublishServerDescriptor
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+5
View File
@@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Invalid PublishServerDescriptor
ORPort 1
PublishServerDescriptor bad
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+3
View File
@@ -0,0 +1,3 @@
Nickname Unnamed
ORPort 1
PublishServerDescriptor v1,v2,hidserv
+5
View File
@@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Ignored PublishServerDescriptor values
ORPort 1
PublishServerDescriptor v1,v2,hidserv
+1
View File
@@ -0,0 +1 @@
Invalid BridgeDistribution value
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+6
View File
@@ -0,0 +1,6 @@
# Relay tests
# Options from relay/relay_config.c
# Bad BridgeDistribution characters
ORPort 1
BridgeRelay 1
BridgeDistribution *$%()@!
+1
View File
@@ -0,0 +1 @@
Relays must use 'auto' for the ConnectionPadding setting
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+5
View File
@@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Relays can't set ConnectionPadding
ORPort 1
ConnectionPadding 1
+1
View File
@@ -0,0 +1 @@
Relays must use 'auto' for the ConnectionPadding setting
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+5
View File
@@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Relays can't set ConnectionPadding
ORPort 1
ConnectionPadding 0
+1
View File
@@ -0,0 +1 @@
Relays cannot set ReducedConnectionPadding
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+5
View File
@@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Relays can't set ReducedConnectionPadding 1
ORPort 1
ReducedConnectionPadding 1
+1
View File
@@ -0,0 +1 @@
Relays cannot set CircuitPadding to 0
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+5
View 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
View File
@@ -0,0 +1 @@
Relays cannot set ReducedCircuitPadding
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+5
View File
@@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Relays can't set ReducedCircuitPadding 1
ORPort 1
ReducedCircuitPadding 1
+1
View File
@@ -0,0 +1 @@
SigningKeyLifetime is too short
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+5
View File
@@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# Short key lifetimes
ORPort 1
SigningKeyLifetime 1
@@ -0,0 +1 @@
This tor was built with relay mode disabled.
+2
View File
@@ -0,0 +1,2 @@
Nickname Unnamed
ORPort 1
+5
View File
@@ -0,0 +1,5 @@
# Relay tests
# Options from relay/relay_config.c
# MyFamily normalisation: empty MyFamily
ORPort 1
MyFamily