Ivan Kozlovic
1fa136b21a
Improved Config Reload test coverage
...
- Move the kill of a server in a cluster test to ensure that
list of routes to remove is not empty.
- Change write_deadline reload value to 3s to make it different
from default value
- Add test for option that does not support hot-swapping
2017-07-19 11:59:05 -06:00
Ivan Kozlovic
edc1d74c0c
Use loopback for some config reload tests
2017-07-11 11:38:32 -06:00
Tyler Treat
dea34307f1
Merge branch 'master' of github.com:nats-io/gnatsd into fix_comment
2017-07-10 19:00:49 -05:00
Ivan Kozlovic
cae6b0b23a
Some fixes
...
Use include so that we can have logfile and remote sys log tested
on platforms other than Windows.
Added some missing defer server.Shutdown() statements.
2017-07-10 16:33:19 -06:00
Tyler Treat
317a04f106
Fix error in test comment
...
The test is ensuring config reload fails when trying to change cluster
host.
2017-07-10 12:32:12 -05:00
Tyler Treat
ca1b3485cb
Fix "error opening file" errors in tests for Windows
...
This sort of just punts on the problem by not creating log files in the
tests, but it seemed like the simplest solution.
2017-07-10 12:21:01 -05:00
Tyler Treat
901a5c7122
Address CR feedback
2017-06-28 11:05:02 -05:00
Tyler Treat
88c864b2af
Add reload support for ping interval, max pings, and write deadline
2017-06-22 17:01:56 -05:00
Tyler Treat
5501e288a8
Support syslog config reload
2017-06-22 16:33:33 -05:00
Tyler Treat
b898b5561a
Add reload support for pid_file, max_control_line, and max_payload
2017-06-22 14:48:40 -05:00
Tyler Treat
11c2720e0e
Add support for reloading max_connections
2017-06-22 12:59:54 -05:00
Tyler Treat
8f5aa0433d
Add support for reloading logtime and log_file
2017-06-22 12:59:13 -05:00
Tyler Treat
f98e327b74
Fix test config
2017-06-19 15:02:02 -05:00
Tyler Treat
2ea1afd82d
Add clustering to config reload tests
2017-06-19 14:40:57 -05:00
Tyler Treat
182f5ce53b
Add tests around cluster reload
2017-06-19 14:18:29 -05:00
Tyler Treat
6e3f58f48c
Fix tests and cleanup log output
2017-06-14 10:38:21 -05:00
Tyler Treat
ac04d555f2
Merge branch 'master' of github.com:nats-io/gnatsd into users_reload
2017-06-14 09:28:18 -05:00
Peter Miron
5724da1c27
Merge pull request #512 from nats-io/random_port_extended
...
Random port extended
2017-06-14 08:08:45 -04:00
Tyler Treat
44966230db
Handle permissions changes on config reload
2017-06-13 16:04:38 -05:00
Peter Miron
c655c2939e
added additional opts tests to increase coverage.
2017-06-12 18:28:53 -04:00
Tyler Treat
fa12181094
Add support for reloading users credentials
2017-06-12 13:17:30 -05:00
Tyler Treat
9ba55f0f21
Add support for reloading single-user and token authentication
2017-06-12 11:52:11 -05:00
Peter Miron
d1f38f38a2
changes to support random ports for clusters and profiler.
2017-06-10 10:35:01 -04:00
Tyler Treat
00d0e3d7cb
Fix leaking log output in unit tests
2017-06-08 10:55:43 -05:00
Tyler Treat
4c33177bd3
Bump up TLS timeout in test configs
2017-06-07 18:05:28 -05:00
Tyler Treat
d172ca5801
Add unit tests around TLS config reload
2017-06-07 16:34:39 -05:00
Tyler Treat
b70e2c2fc2
Implement config reload support for TLS
...
Allows reloading TLS config. This includes enabling/disabling TLS,
rotating keys/certs, enabling/disabling client verification, etc.
2017-06-07 12:25:56 -05:00
Tyler Treat
687a20be1c
Implement config reload support for debug
...
Add config reload support for `debug` option.
2017-06-06 11:30:06 -05:00
Tyler Treat
43ee0ce6df
Fix unit tests
2017-05-31 12:52:20 -05:00
Tyler Treat
b95dd5dfd0
Add tests around config reload
2017-05-30 21:09:35 -05:00
Ivan Kozlovic
3b6dc5eb2f
Changed write_deadline configuration type
...
Changing from being the number of seconds to a time.Duration.
For backward compatibility, the configuration with the number
of seconds is still accepted but an error message is printed
asking the user to convert to duration.
Resolves #487
2017-05-06 14:20:01 -06:00
Derek Collison
0fa0003c9e
Fixes for routes test with bcrypt and auth
2017-04-20 16:55:44 -07:00
Derek Collison
45d523e800
Fixups for auth always being checked now
2017-04-20 13:26:59 -07:00
Derek Collison
eae0834669
lower bcrypt costs for race tests, raise timeouts
2017-04-20 13:20:45 -07:00
Ivan Kozlovic
95d0152449
[ADDED] Make Write deadline configurable
...
We use a hardcoded value of 2 seconds for Write deadline when
writing data to client's socket.
This PR makes that value configurable.
Question is should we push the setting down to the client's object
to avoid indirection such as client.srv.opts.WriteDeadline?
2017-01-18 20:33:44 -07:00
Ivan Kozlovic
f1c513d7bf
Removed last references to max_pending_size [ci skip]
2017-01-18 14:38:34 -07:00
Colin Sullivan
b133cda3cd
Add curve preference option to configuration files.
...
* Add a preference to specify and order the curve preferences
* Add details tls help
* Deprecate old 1.4 cipher suite code
2016-12-27 15:41:48 -07:00
Ivan Kozlovic
d3555053d0
Change option/parameter name
2016-12-22 14:59:27 -07:00
Ivan Kozlovic
8e68e0cf80
Add code coverage for cluster's config file parameters
2016-12-20 19:04:59 -07:00
Volodymyr Khoroz
a98b51a5ca
[ #370 ] Ability to configure ping_interval and ping_max (with tests)
2016-11-16 00:31:38 +02:00
Derek Collison
449aa6e8ef
Finalized opts parser for subject authorization
2016-06-16 13:49:26 -07:00
Derek Collison
46a9e6f0bc
First pass at multi-user support
2016-05-13 12:27:57 -07:00
Derek Collison
4bbd2231a6
update server configs and README to new listen style
2016-05-12 17:34:14 -07:00
Derek Collison
2aba059523
Supporting test configs
2016-05-12 16:58:43 -07:00
Derek Collison
433d62ec0a
Parse IPs and raw strings in arrays properly
2016-04-07 08:36:57 -07:00
Ivan Kozlovic
7c0a3b49a6
Fix cluster formation when servers connect quickly
...
Both seed and chained cases are now handled properly when servers
connect quickly and concurrently to one another.
When accepting a route, the server will forward the new route INFO
protocol to its known routes. In turn those routes will connect
to the new server (if not already connected).
A retry for implicit route was introduced to mitigate the issue
with two servers connecting to each other and electing the opposite
connection as the winner, resulting in both connections being dropped.
The server with smaller ID will try once to reconnect.
Some tests were fixed to handle possible extra INFO protocol.
New tests added.
Fix issue: https://github.com/nats-io/gnatsd/issues/206
2016-02-24 19:44:25 -07:00
Ivan Kozlovic
7becd0ceeb
Fix ports for cluster bcrypt auth config files in server package
...
The ports were conflicting with the 'test' package when running
the test suite in parallel (go test -race -v ./...)
2016-02-23 21:32:48 -07:00
Derek Collison
7237972420
support for bcrypt in cluster auth
2016-02-23 12:47:46 -08:00
Ivan Kozlovic
9b25a379b8
Increase TLS timeout in config files
...
We would get failures on Travis, I would think because of small TLS timeout. Increase (or set) the TLS timeout to 2 seconds in most configuration files. Update tests that relied on the original value.
2015-12-08 15:20:20 -07:00
Ivan Kozlovic
1851ffa162
Temporary fix for Travis issues on new GCE
2015-12-07 18:22:53 -07:00