Kyle Havlovitz
5acd69b4fc
Add node metadata filtering to remaining health/catalog endpoints
2017-01-13 20:08:43 -05:00
Kyle Havlovitz
c9e430c396
Validate metadata config earlier and handle multiple filters
2017-01-11 15:12:03 -05:00
Kyle Havlovitz
84504a20fc
Add meta key validations and more tests
2017-01-09 11:21:49 -08:00
Kyle Havlovitz
e44bcb9716
Add tests for node metadata functionality
2017-01-05 17:21:56 -08:00
James Phillips
9c785c7022
Fixes implementation of node ACLs for /v1/catalog/node/<node>.
...
This would return a "permission denied" error, but this changes it to
return the same response as a node that doesn't exist (as was originally
intended and written in the code comments).
2016-12-12 16:53:31 -08:00
James Phillips
2ace618bf9
Adds complete ACL coverage for /v1/catalog/service/<service>.
2016-12-12 08:34:15 -08:00
James Phillips
8038f21684
Adds complete ACL coverage for /v1/catalog/nodes.
2016-12-10 16:49:19 -08:00
James Phillips
9d6567ff08
Adds complete ACL coverage for /v1/catalog/node/<node>.
2016-12-10 16:49:19 -08:00
James Phillips
9b7564490c
Adds complete ACL coverage for /v1/catalog/deregister.
...
This included some state store helpers to make this more efficient.
2016-12-09 21:04:44 -08:00
James Phillips
800c67c58a
Adds complete ACL coverage for /v1/catalog/register.
2016-12-09 21:04:37 -08:00
James Phillips
66b437ca33
Removes the exception for the "consul" service in the catalog.
2016-12-07 17:58:23 -08:00
Armon Dadgar
86a63eeda8
consul: change tests to not expect ErrNoLeader
2016-07-10 13:24:18 -04:00
James Phillips
8a9ad3811b
Gets rid of flaky sort check.
...
If we get a coordinate then this test will fail, so we only check the
first item in the list, which is deterministic.
2016-03-21 17:30:05 -07:00
Sean Chittenden
7af6a94edb
Factor out duplicate functions into a lib package
...
Consolidate code duplication and tests into a single lib package. Most of these functions were from various **/util.go functions that couldn't be imported due to cyclic imports. The consul/lib package is intended to be a terminal node in an import DAG and a place to stash various consul-only helper functions. Pulled in hashicorp/go-uuid instead of consolidating UUID access.
2016-01-29 16:57:45 -08:00
James Phillips
ecd3a1d1d2
Completes rebase of network coordinates to new memdb.
2015-10-23 15:23:01 -07:00
James Phillips
384d99677d
Cleans up after latest rebase.
2015-10-23 15:23:01 -07:00
James Phillips
9caa5b3653
Adds distance sorting to health endpoint. Cleans up unit tests.
2015-10-23 15:23:01 -07:00
James Phillips
36c78f5042
Adds sort of DCs in catalog queries based on RTT. Cleans up.
...
* Makes the catalog endpoint respect disabling coordinates for all
RTT-sorting query types.
2015-10-23 15:23:01 -07:00
James Phillips
89c7203f31
Adds coordinate sorting support to catalog queries for nodes and service nodes.
2015-10-23 15:23:01 -07:00
James Phillips
51600fab08
Gets rid of the transitional "New" suffix on state store and RPC.
2015-10-15 14:59:09 -07:00
James Phillips
5b6502c1ea
Integrates new state store into leader and catalog/health endpoints.
2015-10-15 14:59:09 -07:00
James Phillips
d57431e300
Gets new structs changes to compile, adds some corner case handling and extra unit tests.
2015-10-15 14:59:09 -07:00
Ryan Uber
81a862d8b7
consul: initial pass at refactoring RPC using net-rpc-msgpackrpc
2015-10-13 22:15:23 -07:00
Dale Wijnand
5a28ebcaa3
Fix a bunch of typos.
2015-09-15 13:22:08 +01:00
Shawn Cook
ab91590bcb
Update tests - NodeService init needs bool
2015-08-20 09:09:26 -07:00
Ryan Uber
f2b71940f5
consul: filter services by ACL when using ChecksInState.
2015-07-27 16:57:56 -07:00
Ryan Uber
77721e3a1a
consul: better tests for acl filtering
2015-06-11 13:23:49 -07:00
Ryan Uber
d217c25668
consul: rename function to avoid collision and clean up
2015-06-11 13:04:47 -07:00
Ryan Uber
0159511714
consul: testing health endpoint service acl filtering
2015-06-11 09:39:35 -07:00
Ryan Uber
5128924b00
consul: testing catalog endpoint acl filtering
2015-06-10 22:14:58 -07:00
Daniel Malon
051ac8eb0b
advertise specific address for a service
...
Enable setting a specific address in a service definition for advertise. If no specific address is given it will fallback to the node address and reassemble the old behaviour.
2015-01-02 21:10:05 +00:00
Armon Dadgar
4861e4d9e1
consul: Check that ACL also allows registration
2014-11-30 21:10:42 -07:00
Armon Dadgar
cafba93869
consul: Enforce service registration ACLs
2014-11-30 21:05:15 -07:00
Armon Dadgar
39e8b1ffaa
consul: Fix non-deterministic session IDs
2014-10-09 11:54:47 -07:00
William Tisäter
57d62eb492
Change order of fixtures
2014-07-23 23:42:22 +02:00
William Tisäter
3f361972ac
Remove TODO comments
2014-05-26 23:44:46 +02:00
Armon Dadgar
14be60aaca
gofmt
2014-05-20 16:25:29 -07:00
Armon Dadgar
d1f392fed3
Merge pull request #145 from abursavich/master
...
consul: use empty slice instead of nil slice when no tags exist for /v1/catalog/services
2014-05-19 15:37:43 -07:00
Andrew M Bursavich
f48dcf0984
use empty slice instead of nil slice when no tags exist for service
2014-05-13 00:18:36 -07:00
William Tisäter
dcfd03be00
Add TODOs for failing tests
2014-05-09 11:38:29 +02:00
William Tisäter
048b780d61
Fix race condition in `TestCatalogListNodes`
2014-05-09 03:00:56 +02:00
William Tisäter
860cdb9c96
Change blocking call sleep time
2014-05-09 02:36:25 +02:00
William Tisäter
14dec397f8
Remove all sleeps from `catalog_endpoint_test.go`
2014-05-09 01:18:35 +02:00
William Tisäter
05243b35cd
Move argument structs back in original position
2014-05-07 23:51:15 +02:00
William Tisäter
93c7103bb5
Move `WaitForLeader` calls to top of test
2014-05-07 23:47:16 +02:00
William Tisäter
c8168bd8fe
Drop client arguments from `WaitForLeader`
2014-05-07 23:41:14 +02:00
William Tisäter
aa00bfff7d
Fix `TestCatalogListNodes_StaleRaad` with `WaitForLeader`
2014-05-07 13:53:29 +02:00
William Tisäter
028bc7e1b4
Proof of concept using `WaitForResult` in tests
2014-05-07 02:48:25 +02:00
Armon Dadgar
3d9e6795eb
consul: Adding strongly consistent read tests
2014-04-21 12:08:00 -07:00
Armon Dadgar
67263e2ca3
consul: Testing a stale read
2014-04-21 11:57:39 -07:00