Paul Banks
ba6e909ed7
Misc test fixes
2018-06-25 12:25:39 -07:00
Mitchell Hashimoto
b28e2b8622
connect/proxy: don't require proxy ID
2018-06-14 09:42:20 -07:00
Paul Banks
02ab461dae
TLS watching integrated into Service with some basic tests.
...
There are also a lot of small bug fixes found when testing lots of things end-to-end for the first time and some cleanup now it's integrated with real CA code.
2018-06-14 09:42:07 -07:00
Paul Banks
072b2a79ca
Support legacy watch.HandlerFunc type for backward compat reduces impact of change
2018-06-14 09:42:05 -07:00
Paul Banks
6f566f750e
Basic `watch` support for connect proxy config and certificate endpoints.
...
- Includes some bug fixes for previous `api` work and `agent` that weren't tested
- Needed somewhat pervasive changes to support hash based blocking - some TODOs left in our watch toolchain that will explicitly fail on hash-based watches.
- Integration into `connect` is partially done here but still WIP
2018-06-14 09:42:05 -07:00
Frank Schroeder
4bb5cf425b
watch: make sure invoke channels timeout evenutally
2017-10-24 20:35:36 +02:00
Frank Schroeder
c059270394
watch: run tests in parallel
2017-10-24 20:35:36 +02:00
Frank Schroeder
cee28aee30
watch: convert TestEventWatch to use channels
2017-10-24 20:35:36 +02:00
Frank Schroeder
be1d91966a
watch: convert TestKeyPrefixWatch to use channels
2017-10-24 20:35:36 +02:00
Frank Schroeder
f24b06fe97
watch: convert TestKeyWatch_With_PrefixDelete to use channels
2017-10-24 20:35:36 +02:00
Frank Schroeder
8c1dcffdff
watch: convert TestKeyWatch to use channels
2017-10-24 20:35:36 +02:00
Frank Schroeder
899d11f1c9
watch: convert TestChecksWatch_Service to use channels
2017-10-24 20:35:35 +02:00
Frank Schroeder
4677ca436a
watch: convert TestChecksWatch_State to use channels
2017-10-24 20:35:35 +02:00
Frank Schroeder
cc51b39eed
watch: convert TestServicesWatch to use channels
2017-10-24 20:35:35 +02:00
Frank Schroeder
7a470d377d
watch: convert TestServiceWatch to use channels
2017-10-24 20:35:35 +02:00
Frank Schroeder
813660507a
watch: convert TestNodesWatch to use channels
2017-10-24 20:35:35 +02:00
Frank Schroeder
8e5662ddd0
watch: use test agent instead of external Consul instance
2017-10-24 11:59:44 +02:00
Preetha Appan
f4cccf44e3
Use new DeletePrefixMethod for implementing KVSDeleteTree operation. This makes deletes on sub trees larger than one million nodes about 100 times faster. Added unit tests.
2017-07-25 17:21:18 -05:00
Frank Schroeder
9f8f258d4d
Remove duplicate constants
...
This patch removes duplicate internal copies of constants in the structs
package which are also defined in the api package. The api.KVOp type
with all its values for the TXN endpoint and the api.HealthXXX constants
are now used throughout the codebase.
This resulted in some circular dependencies in the testutil package
which have been resolved by copying code and constants and moving the
WaitForLeader function into a separate testrpc package.
2017-04-20 09:54:49 -07:00
Sean Chittenden
65f9017c63
Update Check API to use constants
...
Use constants where appropriate to advocate their use. Also add a deprecation notice re: `updateTTL`.
2016-04-23 16:01:59 -07:00
Ryan Uber
5172b21ee8
api: initial import from armon/consul-api
2015-01-06 10:40:00 -08:00
Armon Dadgar
175de542bc
watch: Adding support for events
2014-08-28 15:41:06 -07:00
Armon Dadgar
47cb44683d
watch: Remove DSL in place of JSON
2014-08-21 11:38:44 -07:00
Armon Dadgar
b8a5089710
watch: support checks watch
2014-08-20 16:32:12 -07:00
Armon Dadgar
35cea1b30f
watch: supporting service watch
2014-08-20 15:50:32 -07:00
Armon Dadgar
3884771895
watch: node watcher
2014-08-20 15:33:13 -07:00
Armon Dadgar
e5cb913e54
watch: service watcher
2014-08-20 15:29:31 -07:00
Armon Dadgar
37a24878f0
watch: Support for key prefix
2014-08-20 15:22:22 -07:00