Tyler Treat
f719d7afe9
Fix races in reload tests
2017-06-19 16:29:45 -05:00
Tyler Treat
06d9aa7739
Fix race condition
2017-06-19 15:14:31 -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
564f498fe8
Add config reload TODO
2017-06-19 14:32:26 -05:00
Tyler Treat
182f5ce53b
Add tests around cluster reload
2017-06-19 14:18:29 -05:00
Tyler Treat
84c8c511e4
Pass auth check if cluster username is not set
2017-06-19 14:18:08 -05:00
Tyler Treat
c97a4f6e45
Ignore NoLog option in config reload
2017-06-19 14:17:58 -05:00
Tyler Treat
50e9d0fa87
Close unauthorized routes when authorization changes
2017-06-16 16:45:59 -05:00
Tyler Treat
56ab619498
First pass at implementing cluster reload
2017-06-16 15:53:07 -05:00
Tyler Treat
f8e5f5fe64
Merge pull request #515 from nats-io/users_reload
...
Implement users/authorization support for config reload
2017-06-15 11:10:58 -05:00
Tyler Treat
1e964e4aab
Address CR feedback
2017-06-14 16:48:11 -05:00
Tyler Treat
e4ccaa25bd
Remove unused switch case
2017-06-14 12:09:01 -05:00
Tyler Treat
77a973fc8d
Send error when we drop a client subscription
2017-06-14 12:08:44 -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
4675603b60
Remove impossible branch logic
2017-06-13 16:23:07 -05: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
Peter Miron
00744ff426
converted MonitorAddr and ClusterAddr to *net.TCPAddr
2017-06-12 17:40:36 -04:00
Tyler Treat
fa12181094
Add support for reloading users credentials
2017-06-12 13:17:30 -05:00
Tyler Treat
d11a3979fc
Log changes to AuthTimeout and TLSTimeout
2017-06-12 12:13:32 -05:00
Tyler Treat
9ba55f0f21
Add support for reloading single-user and token authentication
2017-06-12 11:52:11 -05:00
Peter Miron
606502091c
Updated based on @tylertreat feedback.
2017-06-12 10:48:30 -04:00
Peter Miron
5e640f099d
clean up of log files. removed FatalError function to make sure I'm minimizing changes to actual server.
2017-06-11 16:20:04 -04:00
Peter Miron
da1cb9abb2
missed go fmt'ing.
2017-06-10 10:39:09 -04:00
Peter Miron
d1f38f38a2
changes to support random ports for clusters and profiler.
2017-06-10 10:35:01 -04:00
Derek Collison
855ca705c3
Merge pull request #510 from nats-io/fix_test_logoutput
...
Fix leaking log output in unit tests
2017-06-09 08:02:57 -07:00
Derek Collison
7a8fc9b3e6
Merge pull request #509 from nats-io/remote_monitoring_port
...
Added ability to use random ports to limit unit test port contention.
2017-06-09 06:56:40 -07:00
Derek Collison
482b6a9e46
Merge pull request #507 from nats-io/fix_opts_copy
...
Fix Options Clone
2017-06-09 06:55:36 -07:00
Derek Collison
16278f0c1e
Merge pull request #511 from nats-io/suppress_write_deadline_parsing_warning_in_test
...
Updated test to suppress stdout output
2017-06-08 10:58:17 -07:00
Ivan Kozlovic
923735ac74
Updated test to suppress stdout output
...
The parsing of write_deadline may produce a warning to stdout
since there is no logger set at this stage.
Updated the test to suppress stdout to not polute the tests output.
2017-06-08 19:40:06 +02:00
Tyler Treat
00d0e3d7cb
Fix leaking log output in unit tests
2017-06-08 10:55:43 -05:00
Peter Miron
70778e9ec5
updated to exclude fmt'ing on /vendor/
2017-06-08 11:41:20 -04:00
Peter Miron
f2a9cc8cb0
fixed go fmt'ing
2017-06-08 11:37:23 -04:00
Peter Miron
2fff19d39d
updated .travis.yml to fail if not go fmt'd
2017-06-08 11:34:33 -04:00
Tyler Treat
6bdc906288
Add User clone test for nil Permissions
2017-06-08 10:17:33 -05:00
Peter Miron
43a3f1ef1d
cleaned up naming to MonitorAddr instead of HttpPort (as it could be either Http or Https). added test for nil to improve coverage.
2017-06-08 10:46:55 -04:00
Peter Miron
41aa44cd8d
Added ability to use random ports to limit unit test port contention.
2017-06-08 10:19:56 -04:00
Derek Collison
5a1ab910f7
Merge pull request #506 from nats-io/tls_reload
...
Implement config reload support for TLS
2017-06-08 06:01:47 -07:00
Tyler Treat
4c33177bd3
Bump up TLS timeout in test configs
2017-06-07 18:05:28 -05:00
Tyler Treat
648b7367c0
Fix data race
2017-06-07 17:40:17 -05:00
Tyler Treat
30db4be965
Ensure old connection still works in TLS reload test
2017-06-07 17:03:33 -05:00
Tyler Treat
5d36a7797e
Fix Options Clone
...
Ensure Options.Clone() only initializes Users and Routes when the
Options it's cloning has them initialized.
2017-06-07 16:54:40 -05:00
Tyler Treat
d172ca5801
Add unit tests around TLS config reload
2017-06-07 16:34:39 -05:00
Tyler Treat
b7211f6dc8
Improve readability of TLSVerify assignment
2017-06-07 14:58:30 -05:00
Derek Collison
a309994d1a
Merge pull request #505 from nats-io/cross_compile_ci
...
Cross compile CI
2017-06-07 11:38:39 -07: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
710b992037
Fix 1.6 build
2017-06-07 09:51:46 -05:00