Ryan Uber
4c3ec248a5
agent: fixing up tests
2015-01-16 09:58:37 -08:00
Ryan Uber
4675cdf01c
agent: beginning refactor
2015-01-16 00:45:03 -08:00
Jeff Mitchell
0cc009c480
Remove unnecessary ClientListenerAddr function. Rework config test functions to be cleaner. Start of runtime tests.
...
This code is copyright 2014 Akamai Technologies, Inc. <opensource@akamai.com>
2015-01-14 19:31:21 +00:00
Ryan Uber
a24f6e3d4d
agent: test service and check unloading
2015-01-07 22:32:14 -08:00
Ryan Uber
0b9f2b0954
agent: persist service/check data using hashed service/check IDs ( fixes #573 )
2015-01-07 19:11:21 -08:00
Chavez
de0d2d7b78
agent: agent test fixes
2014-12-05 10:36:44 -08:00
Ryan Uber
dd4fadfc9e
agent: persist CheckType with health checks
2014-11-29 12:54:37 -08:00
Ryan Uber
b7587cac42
agent: allow config reload to modify checks/services persistence
...
This change consolidates loading services and checks from both config
and persisted state into methods on the agent. As part of this, we
introduce optional persistence when calling RemoveCheck/RemoveService.
Fixes a bug where config reloads would kill persisted services/checks.
Also fixes an edge case:
1. A service or check is registered via the HTTP API
2. A new service or check definition with the same ID is added to config
3. Config is reloaded
The desired behavior (which this implements) is:
1. All services and checks deregistered in memory
2. All services and checks in config are registered first
3. All persisted checks are restored using the same logic as the agent
start sequence, which prioritizes config over persisted, and removes
any persistence files if new config counterparts are present.
2014-11-26 12:46:42 -08:00
Ryan Uber
9f9087badb
agent: prefer config over persisted services/checks ( #497 )
2014-11-24 19:40:53 -08:00
Ryan Uber
79ba25b94d
agent: default restored checks to critical status
2014-11-24 01:15:18 -08:00
Ryan Uber
46a5272a8a
agent: first pass at local service and check persistence
2014-11-24 01:10:27 -08:00
Ryan Uber
c283754381
Rebase against upstream
2014-11-19 16:45:49 -08:00
Ryan Uber
8a652c6ffa
agent: fix loading keyring on agent start
2014-11-19 16:37:40 -08:00
Ryan Uber
ab5fbe4094
agent: ignore -encrypt if provided when keyring exists
2014-11-19 16:37:40 -08:00
Ryan Uber
0b8fe6cc83
agent: fix test cases
2014-11-19 16:36:18 -08:00
Ryan Uber
bc2b2120fa
agent: -encrypt appends to keyring if one exists
2014-11-19 16:36:01 -08:00
Ryan Uber
5ab4a590d7
command: test generated keyring file content and conflicting args for agent
2014-11-19 16:32:06 -08:00
Ryan Uber
621aafa9b4
agent: test loading keyring files for client and server
2014-11-19 16:31:40 -08:00
Armon Dadgar
485f0a0c93
agent: Fixing port collision in tests
2014-11-19 11:51:25 -08:00
Ryan Uber
df5859580f
agent: pass notes field through for checks inside of service definitions. Fixes #449
2014-11-06 18:25:21 -08:00
Ryan Uber
525d74aebc
agent: add test for consul service sync state
2014-10-17 14:43:52 -07:00
Armon Dadgar
4f1fa3a4ce
Merge pull request #401 from hashicorp/f-healthcheck
...
Default services to "critical" state instead of "unknown"
2014-10-15 16:50:38 -07:00
Ryan Uber
2f93e13da8
consul: kill remaining use of HealthUnknown
2014-10-15 10:14:46 -07:00
Ryan Uber
b1e8d351ab
agent: re-use ConsulServiceID from consul package
2014-10-14 15:44:11 -07:00
Ryan Uber
4576b4eb29
agent: auto-register the consul service on server nodes
2014-10-14 15:35:00 -07:00
Armon Dadgar
4d66b11c91
agent: Fixing ACL tests with token param
2014-08-19 14:28:49 -07:00
Armon Dadgar
7c5a39717e
agent: Fixing the ACL tests
2014-08-18 15:46:23 -07:00
William Tisäter
9e3ad6721c
Re-configure `LeaderLeaseTimeout` to pass validation
2014-05-30 20:57:39 +02:00
Armon Dadgar
018482dc4c
Store check output in dedicated field. Fixes #59 .
2014-04-21 16:20:22 -07:00
Armon Dadgar
6bbe8fd493
agent: Adding minimum check interval. Fixes #64 .
2014-04-21 14:42:42 -07:00
Armon Dadgar
8dd1e51bae
agent: Simplifying configs
2014-04-11 15:46:55 -07:00
Armon Dadgar
8db2e3bd58
agent: Support multiple tags per service registration
2014-04-03 12:12:23 -07:00
Armon Dadgar
1eb0a76ee8
agent: Adding methods to register services and checks
2014-01-30 13:39:02 -08:00
Armon Dadgar
1d3fb0772e
Testing anti-entropy of services
2014-01-20 14:22:59 -10:00
Armon Dadgar
21e614ca07
Adding tests for the agent HTTP endpoints
2014-01-06 13:21:48 -08:00
Armon Dadgar
423ffaecc5
Adding basic DNS framework
2014-01-02 13:12:05 -08:00
Armon Dadgar
f4692b468f
Pulling in the RPC framework from serf
2013-12-30 14:42:41 -08:00
Armon Dadgar
8cc761de17
Enable bootstrap mode for the tests
2013-12-24 16:53:30 -08:00
Armon Dadgar
39d9e3e78f
More HTTP endpoints
2013-12-23 16:20:51 -08:00
Armon Dadgar
caaff11634
Adding more agent tests
2013-12-23 13:52:10 -08:00