James Phillips
48f9210761
Adds a unit test for lock monitor retries.
2015-11-30 20:16:40 -08:00
James Phillips
fcd0cb7a11
Adds custom retry time for lock monitors.
2015-11-30 20:16:22 -08:00
James Phillips
2f3d109b18
Adds a retry capability to lock monitors in the API client.
2015-11-30 17:09:41 -08:00
James Phillips
24611b0732
Updates API docs for version 0.6.0.
2015-11-28 20:04:29 -08:00
Craig Wickesser
1a1a91eb86
Fix version support
...
Updated the version that the library supports.
2015-11-23 13:03:38 -05:00
James Phillips
23536f2b97
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
James Phillips
bc60491890
Removes a useless empty import and fixes some stale comments.
2015-11-17 08:29:20 -08:00
James Phillips
6e4954283a
Switches to helpers for prepared query API wrappers.
2015-11-16 23:12:44 -08:00
James Phillips
20ae2e2ce3
Adds API client support for prepared queries.
2015-11-15 17:06:00 -08:00
James Phillips
dc1c22f895
Adds support for coordinates to client API.
2015-10-23 15:23:01 -07:00
Mikhail Dyakov
3867392ae5
Handle error in api README example
2015-10-23 21:20:01 +02:00
Jeff Mitchell
9267f956a2
Update cleanhttp repo location
2015-10-22 14:14:22 -04:00
Jeff Mitchell
06bb9d5f36
Use cleanhttp to get rid of DefaultTransport
2015-10-22 10:47:50 -04:00
James Phillips
e4b89bfa9f
Fixes a typo.
2015-10-15 14:59:09 -07:00
James Phillips
32e2439f93
Fixes index management for KVS.
2015-10-15 14:59:09 -07:00
Jeff Mitchell
9cddc187b5
Don't use http.DefaultClient
...
Two of the changes are in tests; the one of consequence is in the API.
As explained in #1308 this can cause conflicts with downstream programs.
Fixes #1308 .
2015-10-15 17:49:35 -04:00
James Phillips
570272e459
Merge pull request #1041 from rboyer/api-fix-session-renew
...
Fix Session.Renew to care about 404s properly
2015-09-25 13:15:54 -07:00
Dale Wijnand
c5168e1263
Fix a bunch of typos.
2015-09-15 13:22:08 +01:00
R.B. Boyer
8d5f1528c5
Correct the Session.Renew{,Periodic} to handle session expiration better
2015-09-14 08:52:32 -05:00
Anthony Scalisi
8d733b7fca
remove various typos
2015-09-11 12:29:54 -07:00
Peter Fern
86edd7169c
Add TCP check type
...
Adds the ability to simply check whether a TCP socket accepts
connections to determine if it is healthy. This is a light-weight -
though less comprehensive than scripting - method of checking network
service health.
The check parameter `tcp` should be set to the `address:port`
combination for the service to be tested. Supports both IPv6 and IPv4,
in the case of a hostname that resolves to both, connections will be
attempted via both protocol versions, with the first successful
connection returning a successful check result.
Example check:
```json
{
"check": {
"id": "ssh",
"name": "SSH (TCP)",
"tcp": "example.com:22",
"interval": "10s"
}
}
```
2015-07-24 14:06:05 +10:00
Robert Gogolok
9bc620feba
api: run ACL tests by default
2015-06-13 23:51:30 +02:00
James Phillips
6e5c66a8be
Fixes a broken unit test introduced by #834 .
2015-06-09 12:01:20 -07:00
Armon Dadgar
b9bd6110e2
Merge pull request #1008 from highlyunavailable/master
...
Check to see why a lock acquisition failed
2015-06-09 07:59:28 -04:00
Ryan Uber
4d8b4abcc5
Merge pull request #834 from apoydence/master
...
Returns an error for a key with a '/'
2015-06-05 15:23:57 -07:00
Tiru Srikantha
0184227828
Check to see why a lock acquisition failed
2015-06-05 13:23:23 -07:00
highlyunavailable
536db1fb9f
Remove unused DefaultSemaphoreRetryTime
...
Fixes #932
DefaultSemaphoreRetryTime is actually unused, unlike DefaultLockRetryTime.
2015-05-15 08:25:02 -07:00
Armon Dadgar
d18d82885f
api: improve test reliability
2015-05-12 12:10:25 -07:00
Ryan Uber
3ce3c663ad
Fix tests after merge
2015-05-11 18:53:09 -07:00
Armon Dadgar
f797130228
Fixing merge conflict
2015-05-11 16:48:10 -07:00
Armon Dadgar
eda7c1fdfc
Merge pull request #912 from rojojo23/renew-periodic
...
modify RenewPeriodic to retry failed Renew until TTL elapses
2015-05-08 11:38:51 -07:00
Ryan Uber
234466b412
api: run tests in parallel
2015-05-08 10:27:24 -07:00
Robert Johnson
d934906905
modify RenewPeriodic to retry failed Renews until TTL elapses
2015-05-06 16:40:45 -07:00
Armon Dadgar
9ca81565a5
api: Fixing test compilation issue
2015-05-04 15:27:22 -07:00
Armon Dadgar
63bd33ff0b
Merge pull request #861 from fraenkel/reclaim_lock
...
Reclaim locks
2015-05-04 15:23:29 -07:00
Michael Fraenkel
093b23d0c3
Reclaim locks
...
- When attempting to lock with the same session that already owns the lock,
Lock() will re-acquire the lock.
2015-04-29 10:10:24 -07:00
Ryan Mills
370853d7ff
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
Andrew Poydence
3f6a912af6
Returns an error for a key with a '/'
2015-03-31 21:08:06 -06:00
Ryan Uber
73a2799b0d
testutil: Use HTTPAddr
2015-03-19 17:03:07 -07:00
Ryan Uber
64c1b1b446
testutil: exposing the API address from the test server
2015-03-19 17:03:06 -07:00
Ryan Uber
0af4bd8b23
testutil: initial pass at moving test server harness into testutil
2015-03-19 17:03:06 -07:00
Seth Vargo
51a6ecd826
Read select environment variables when generating the default configuration
2015-03-18 11:12:10 -04:00
Chris Grieger
bd0c864495
Add 'ServiceAddress' field to 'CatalogService's truct
2015-03-04 10:29:57 +01:00
Ryan Uber
73eae757cf
api: remove unneeded static config
2015-02-24 09:50:35 -08:00
Armon Dadgar
6f48e58014
api: Refactoring into shared write logic
2015-02-18 15:15:02 -08:00
Armon Dadgar
69d8b46fa5
api: Refactoring into shared query logic
2015-02-18 15:15:02 -08:00
Ryan Uber
c248d5badd
api: allow timeout field to be specified for checks
2015-02-05 23:34:30 -08:00
Nicholas Capo
25d2faf43b
api/agent: Support HTTP service checks in client api
2015-02-03 20:13:55 +00:00
Armon Dadgar
f4543ffc78
CHANGELOG update, gofmt
2015-01-22 13:42:22 -08:00
Armon Dadgar
e5e519df4b
Merge pull request #625 from hashicorp/f-maintcmd
...
New "maint" command
2015-01-22 11:56:49 -08:00