Kyle Havlovitz
d5634fe2a8
Add support for labels/filters from go-metrics
2017-08-08 01:45:10 -07:00
James Phillips
4bee2e49f5
Adds secure introduction for the ACL replication token. ( #3357 )
...
Adds secure introduction for the ACL replication token, as well as a separate enable config for ACL replication.
2017-08-03 15:39:31 -07:00
James Phillips
496b0bcf07
Adds support for agent-side ACL token management via API instead of config files. ( #3324 )
...
* Adds token store and removes all runtime use of config for ACL tokens.
* Adds a new API for changing agent tokens on the fly.
2017-07-26 11:03:43 -07:00
James Phillips
1791d99a10
Adds new config to make script checks opt-in, updates documentation. ( #3284 )
2017-07-17 11:20:35 -07:00
Frank Schroeder
7bbfef7000
api: refactor: unify naming of API tests
2017-07-07 09:22:34 +02:00
Frank Schroeder
8edeabce9a
api: refactor: prefix all API tests with API_
2017-07-07 09:22:34 +02:00
Frank Schroeder
65b5c51ec7
test: add helper for ioutil.TempDir/TempFile
...
This creates a simplified helper for temporary directories and files.
All path names are prefixed with the name of the current test.
All files and directories are stored either in /tmp/consul-test
or /tmp if the former could not be created.
Using the system temp dir breaks some tests on macOS where the unix
socket path becomes too long.
2017-05-12 22:12:47 +02:00
Frank Schroeder
3522a41bad
test: include test name in temp file/dir
...
This helps identifying hanging tests by looking
at the process list.
2017-05-12 22:12:47 +02:00
James Phillips
3f3889022e
Tweaks the agent leave test to patch an occasional local failure.
2017-03-22 09:56:53 -07:00
James Phillips
585958746a
Lets the leave unit test proceed even after an EOF.
2017-01-26 22:22:18 -08:00
James Phillips
bd605e330c
Adds basic support for node IDs.
2017-01-17 22:47:59 -08:00
Kyle Havlovitz
bd69c6d871
Add reload/leave http endpoints ( #2516 )
2016-11-30 13:29:42 -05:00
Kyle Havlovitz
8079c49c0a
Add QueryOptions to api package's monitor
2016-11-28 18:36:26 -05:00
Kyle Havlovitz
124f907063
Add monitor http endpoint
2016-11-28 18:36:26 -05:00
James Phillips
4a3d7db24f
Adds ability to deregister a service based on critical check state longer than a timeout.
2016-08-16 01:00:26 -07:00
Sean Chittenden
e63d3a1275
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
James Phillips
23247b3699
Adds support for new PUT API for checks.
2016-03-04 15:18:25 -08:00
James Phillips
afdeb2f1fc
Adds support for EnableTagOverride to the API client.
2016-02-16 11:45:29 -08:00
James Phillips
95c708f65e
Adds Docker checks support to client API.
...
Also changed `DockerContainerId` to `DockerContainerID`, and updated the agent
API docs to reflect their support for Docker checks.
2015-11-18 07:40:02 -08:00
Ryan Uber
72ee584df3
Fix tests after merge
2015-05-11 18:53:09 -07:00
Armon Dadgar
8d86290ebf
Fixing merge conflict
2015-05-11 16:48:10 -07:00
Ryan Uber
565cac0340
api: run tests in parallel
2015-05-08 10:27:24 -07:00
Ryan Mills
275af975e8
Allow specifying a status field in the agent/service/register and agent/check/register endpoints.
...
This status must be one of the valid check statuses: 'passing', 'warning', 'critical', 'unknown'.
If the status field is not present or the empty string, the default of 'critical' is used.
2015-04-12 02:00:31 +00:00
Ryan Uber
37f6301856
testutil: initial pass at moving test server harness into testutil
2015-03-19 17:03:06 -07:00
Armon Dadgar
17d1c392e4
CHANGELOG update, gofmt
2015-01-22 13:42:22 -08:00
Armon Dadgar
e1a5d537d4
Merge pull request #625 from hashicorp/f-maintcmd
...
New "maint" command
2015-01-22 11:56:49 -08:00
Dr. Stefan Schimanski
acd9efbc40
Add test case for service Address field
2015-01-22 11:50:20 +01:00
Dr. Stefan Schimanski
a85575dcaa
Add agent service Address field to the api
...
The Address field was introduced in #570 . This patch extends this to the api.
2015-01-22 10:26:27 +01:00
Ryan Uber
089c4396c4
api: support reason flag for maintenance mode
2015-01-21 13:02:47 -08:00
Ryan Uber
e088240c95
api: finish up maintenance tests
2015-01-21 11:08:57 -08:00
Ryan Uber
e47b64197e
api: add node/service maintenance mode functions
2015-01-21 10:51:43 -08:00
Ryan Uber
197a5a9a9a
api: support multiple checks during service/check registration
2015-01-20 21:48:45 -08:00
Ryan Uber
8455077e5d
api: add harnessing for tests
...
This is necessary as consul-api's tests require a real consul instance
to be running. We can't directly import an agent to fire up an instance,
due to the way this would create an import cycle. These tests instead
will start a consul instance using the binary in $PATH (if it exists).
2015-01-06 15:52:06 -08:00
Ryan Uber
5555e0eb9b
api: initial import from armon/consul-api
2015-01-06 10:40:00 -08:00