Alex Dadgar
b082bdd52f
test fixes
2016-08-18 10:30:47 -07:00
Diptanu Choudhury
bc3aab72fc
get a free port from the kernel
2016-08-16 16:05:37 -07:00
Sean Chittenden
5c118d8fdf
Fix tests
2016-06-16 22:26:45 -07:00
Sean Chittenden
e5f65e5c7c
Fix tests, don't take the address of DefaultConsulCommand()
2016-06-16 21:21:39 -07:00
Sean Chittenden
7dc7fcf052
Create config.DefaultConsulConfig()
2016-06-16 20:41:05 -07:00
Sean Chittenden
5331ea7bc6
goling(1) compliance pass (e.g. Rpc* -> RPC)
2016-06-10 23:38:28 -04:00
Sean Chittenden
a55395678f
Fix tests for client.TestAgent_ServerConfig
...
Add similar logic in Agent `serverConfig()` to set up the
`serverSerfAddr` the same as `serverHttpAddr` and `serverRpcAddr`.
2016-06-10 15:50:11 -04:00
Sean Chittenden
ce8c03d708
Advertise the server's RPC endpoint, not its HTTP endpoint.
...
Rename c.serverRpcAddr to serverRpcAddr. This will be broken out
into in additional set of services in a subsequent commit.
2016-06-10 15:50:11 -04:00
Sean Chittenden
7cdf0edcfe
Rename the package from client/rpc_proxy to client/rpcproxy
...
Also rename `NewRpcProxy()` to just `New()` to avoid package stutter.
2016-06-10 15:50:11 -04:00
Sean Chittenden
092e07f334
Create a nomad/structs/config to break an import cycle.
...
Flattening and normalizing the various Consul config structures and
services has led to an import cycle. Break this by creating a new package
that is intended to be terminal in the import DAG.
2016-06-10 15:48:36 -04:00
Sean Chittenden
af72200cf4
Distill config.Config.ConsulConfig down to config.Config.Consul
...
The enclosed struct provides the necessary context
2016-06-10 15:48:36 -04:00
Diptanu Choudhury
9d8f6d0837
Added a test for generation of the server addr
2016-05-24 21:29:13 -07:00
Alex Dadgar
819eaca09e
Use codegen for json marshalling: 20% faster, 12% less bytes allocated, 85% less allocations
2016-05-18 09:45:46 -07:00
Diptanu Choudhury
2216944676
Fixed an agent test
2016-05-11 17:26:53 -07:00
Alex Dadgar
88c590dede
agent: Configurable heartbeat
2016-03-04 15:44:12 -08:00
Diptanu Choudhury
315882f60a
Testing default http port is being set
2016-02-16 17:54:17 -08:00
Diptanu Choudhury
f5b37b5221
Added a test for testing that http addr is set properly
2016-02-16 13:42:48 -08:00
Gregory Man
21879e22e0
Added node_gc_threshold configuration option
...
Close #333
2015-10-29 15:58:21 +02:00
Ryan Uber
80d940d920
agent: all dynamic ports for tests
2015-09-25 12:19:13 -07:00
Ryan Uber
fbbe4a4973
agent: remove explicit Bootstrap option in favor of BootstrapExpect
2015-09-22 14:41:49 -07:00
Ryan Uber
aa40658344
agent: split out server config parser, add tests
2015-09-11 12:06:42 -07:00
Armon Dadgar
c2b7ce92e7
nomad: using Raft StartAsLeader to make tests faster
2015-09-07 10:46:41 -07:00
Armon Dadgar
1d3826f224
agent: make unit tests much faster
2015-09-05 18:41:00 -07:00
Armon Dadgar
00855c154c
agent: adding basic test
2015-09-05 17:07:36 -07:00
Armon Dadgar
4783e8d89e
http: basic framework
2015-09-05 17:06:05 -07:00