Add tests around config reload

This commit is contained in:
Tyler Treat
2017-05-30 21:09:35 -05:00
parent 9902c3da84
commit b95dd5dfd0
5 changed files with 366 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
# Invalid config file
trace:

View File

@@ -0,0 +1,42 @@
# Simple config file
listen: localhost:4242
http: 8222
authorization {
user: derek
password: bella
timeout: 1
}
# logging options
debug: false
trace: false
logtime: false
log_file: "/tmp/gnatsd.log"
syslog: true
remote_syslog: "udp://foo.com:33"
# pid file
pid_file: "/tmp/gnatsd.pid"
# prof_port
prof_port: 6543
# max_connections
max_connections: 100
# maximum control line
max_control_line: 2048
# maximum payload
max_payload: 65536
# ping interval and no pong threshold
ping_interval: 60
ping_max: 3
# how long server can block on a socket write to a client
write_deadline: "3s"

View File

@@ -0,0 +1,42 @@
# Simple config file
listen: localhost:4242
http: 8222
authorization {
user: derek
password: bella
timeout: 1
}
# logging options
debug: true
trace: false
logtime: false
log_file: "/tmp/gnatsd.log"
syslog: true
remote_syslog: "udp://foo.com:33"
# pid file
pid_file: "/tmp/gnatsd.pid"
# prof_port
prof_port: 6543
# max_connections
max_connections: 100
# maximum control line
max_control_line: 2048
# maximum payload
max_payload: 65536
# ping interval and no pong threshold
ping_interval: 60
ping_max: 3
# how long server can block on a socket write to a client
write_deadline: "3s"

View File

@@ -0,0 +1,42 @@
# Simple config file
listen: localhost:4242
http: 8222
authorization {
user: derek
password: bella
timeout: 1
}
# logging options
debug: false
trace: true
logtime: false
log_file: "/tmp/gnatsd.log"
syslog: true
remote_syslog: "udp://foo.com:33"
# pid file
pid_file: "/tmp/gnatsd.pid"
# prof_port
prof_port: 6543
# max_connections
max_connections: 100
# maximum control line
max_control_line: 2048
# maximum payload
max_payload: 65536
# ping interval and no pong threshold
ping_interval: 60
ping_max: 3
# how long server can block on a socket write to a client
write_deadline: "3s"