Kyle Havlovitz
a8c808aee5
Add docs for the coordinate update endpoint
2017-10-26 20:17:46 -07:00
Kyle Havlovitz
a1d14019dd
Add tests around coordinate update endpoint
2017-10-26 20:12:54 -07:00
Kyle Havlovitz
2392545adc
Merge branch 'coordinate-node-endpoint' of github.com:hashicorp/consul into esm-changes
2017-10-26 19:20:24 -07:00
Kyle Havlovitz
5589eadcf5
Added Coordinate.Node rpc endpoint and client api method
2017-10-26 19:16:40 -07:00
Frank Schroeder
ca9aac746f
agent: add /v1/coordianate/node/:node endpoint
...
This patch adds a /v1/coordinate/node/:node endpoint to get the network
coordinates for a single node in the network.
Since Consul Enterprise supports network segments it is still possible
to receive mutiple entries for a single node - one per segment.
2017-10-26 14:24:42 +02:00
Kyle Havlovitz
ce4e8c46fa
Add deregister critical service field and refactor duration parsing
2017-10-25 19:17:41 -07:00
James Phillips
b31cfaaf2a
Merge pull request #3618 from hashicorp/b-lazy-freeport
...
Initialize freeport lazily to avoid runtime issues
2017-10-25 15:34:43 -07:00
Alex Dadgar
0fccef237d
Initialize freeport lazily to avoid runtime issues
...
This PR makes freeport initialize lazily rather than using an init
method.
2017-10-25 15:14:39 -07:00
James Phillips
21f38bff6f
Adds retry to API metrics test (flaky test).
2017-10-25 10:46:02 -07:00
Kyle Havlovitz
291455f475
Added coordinate update http endpoint
2017-10-25 19:37:30 +02:00
Kyle Havlovitz
d56936e27a
Added remaining HTTP health check fields to structs
2017-10-25 19:37:30 +02:00
Kyle Havlovitz
a7c42a6c2a
Expose SkipNodeUpdate field and some health check info in the http api
2017-10-25 19:37:30 +02:00
Frank Schröder
b6de1f7446
Merge pull request #3612 from hashicorp/decouple-checks-from-agent
...
Decouple the code that executes checks from the agent
2017-10-25 19:36:47 +02:00
Frank Schroeder
d14adc6b4d
fix go vet issue
2017-10-25 19:30:35 +02:00
Frank Schroeder
96fdbd00a6
replace custom unique id with a UUID
2017-10-25 19:30:35 +02:00
Frank Schroeder
8f145559d8
Decouple the code that executes checks from the agent
2017-10-25 11:18:07 +02:00
James Phillips
989c17b1e3
Merge pull request #3610 from hashicorp/fix-skipped-tests
...
Fix skipped tests
2017-10-24 14:01:36 -07:00
Frank Schroeder
9872475167
agent: fix TestRetryJoin
2017-10-24 20:35:37 +02:00
Frank Schroeder
7d3467176b
agent: fix TestRetryJoinFail
2017-10-24 20:35:37 +02:00
Frank Schroeder
96a584dee2
agent: fix TestRetryJoinWanFail
2017-10-24 20:35:36 +02:00
Frank Schroeder
570ddaae98
watch: make sure invoke channels timeout evenutally
2017-10-24 20:35:36 +02:00
Frank Schroeder
f55e234f2e
watch: run tests in parallel
2017-10-24 20:35:36 +02:00
Frank Schroeder
a54b0994ed
watch: convert TestEventWatch to use channels
2017-10-24 20:35:36 +02:00
Frank Schroeder
e9766c8bd4
watch: convert TestKeyPrefixWatch to use channels
2017-10-24 20:35:36 +02:00
Frank Schroeder
144b337aa5
watch: convert TestKeyWatch_With_PrefixDelete to use channels
2017-10-24 20:35:36 +02:00
Frank Schroeder
bad870dc68
watch: convert TestKeyWatch to use channels
2017-10-24 20:35:36 +02:00
Frank Schroeder
7a84f1c82d
watch: convert TestChecksWatch_Service to use channels
2017-10-24 20:35:35 +02:00
Frank Schroeder
d57ef823f9
watch: convert TestChecksWatch_State to use channels
2017-10-24 20:35:35 +02:00
Frank Schroeder
eb2963345e
watch: convert TestServicesWatch to use channels
2017-10-24 20:35:35 +02:00
Frank Schroeder
ef4e8b5811
watch: convert TestServiceWatch to use channels
2017-10-24 20:35:35 +02:00
Frank Schroeder
375fbcb643
watch: convert TestNodesWatch to use channels
2017-10-24 20:35:35 +02:00
Frank Schroeder
a7c78e637d
watch: use test agent instead of external Consul instance
2017-10-24 11:59:44 +02:00
James Phillips
a3f6e16573
Update CHANGELOG.md
2017-10-23 22:54:37 -07:00
James Phillips
7fdd016bd6
Update CHANGELOG.md
2017-10-23 22:53:29 -07:00
Alex Dadgar
be18f97531
Merge pull request #3609 from hashicorp/f-freeport-testing
...
Make freeport testing friendly
2017-10-23 16:34:27 -07:00
Alex Dadgar
3ac2268c32
format vendor
2017-10-23 16:31:44 -07:00
Alex Dadgar
17dcbb1912
Make freeport testing friendly
...
This PR allows the caller to decide if they would like to have the
calling test fail, have the caller panic on error, or handle the errors
themselves.
2017-10-23 16:28:02 -07:00
James Phillips
9580f75ee9
Update CHANGELOG.md
2017-10-23 08:58:49 -07:00
Frank Schroeder
b8501a999b
Update CHANGELOG.md
2017-10-23 16:44:32 +02:00
Frank Schroeder
0a50f82ead
Update README.md
...
Mention vendorfmt in the `Vendoring` section.
2017-10-23 12:42:00 +02:00
James Phillips
a11c277f75
Changes "ip" to "IP".
2017-10-23 12:34:43 +02:00
Frank Schroeder
c88733d144
Merge pull request #3391 from hashicorp/refactor-local-state-2
...
This patch decouples the local state and the anti-entropy code from the
agent and from each other to have cleaner separation of concerns and to
ensure that data structures are properly locked.
2017-10-23 10:59:55 +02:00
Frank Schroeder
1cb8b0ffe3
local state: fix go vet issue
2017-10-23 10:56:05 +02:00
Frank Schroeder
7335c34c32
local state: remove stale comment
2017-10-23 10:56:05 +02:00
Frank Schroeder
3d547e30c7
local state: make test more robust
2017-10-23 10:56:05 +02:00
Frank Schroeder
52e73301f6
local state: clone check to avoid side effect
2017-10-23 10:56:05 +02:00
Frank Schroeder
6bc9d66192
local state: use synchronized access to internal maps
2017-10-23 10:56:05 +02:00
Frank Schroeder
cc0499da3d
ae: do not trigger on Resume while holding the lock
2017-10-23 10:56:05 +02:00
Frank Schroeder
92f136de12
ae: add remaining test cases
2017-10-23 10:56:05 +02:00
Frank Schroeder
622ace2829
ae: refactor StateSyncer to state machine for better testing
2017-10-23 10:56:05 +02:00