Commit Graph

100 Commits

Author SHA1 Message Date
Diptanu Choudhury
a906b7747b Changed the api of the ReadAt API 2016-01-27 12:53:24 -08:00
Diptanu Choudhury
9491295027 Introducing an AllocFileInfo in the api package 2016-01-27 12:53:24 -08:00
Diptanu Choudhury
d706878112 Added the cli for fs-cat 2016-01-27 12:53:23 -08:00
Diptanu Choudhury
a2db48ec60 Added an impl for stating a file 2016-01-27 12:53:23 -08:00
Diptanu Choudhury
89452e7a9c Added some comments 2016-01-27 12:53:23 -08:00
Diptanu Choudhury
40a205f466 Added the cli for listing alloc dir 2016-01-27 12:53:23 -08:00
Alex Dadgar
0d29e30e7b Merge pull request #675 from nautsio/f-cli-short-ids
Shorten CLI identifiers
2016-01-19 15:11:41 -08:00
Alex Dadgar
1ab7896133 Move endpoint to be under job 2016-01-19 11:09:36 -08:00
Alex Dadgar
d5c72a5b5c Fix comments 2016-01-15 11:44:11 -08:00
Ivo Verberk
ab9409184a Shorten CLI identifiers
* Truncate all UUID identifiers to eight characters by default
* Refactor the node identifier to an auto-generated UUID
* Created and updated tests and mocks
2016-01-14 21:57:43 +01:00
Alex Dadgar
94f4b23acb Add force spawn endpoint 2016-01-13 10:19:53 -08:00
Alex Dadgar
f13a9d934a Check parent id of prefix jobs and special case the output if no child job has been launched 2016-01-07 14:43:55 -08:00
Alex Dadgar
c9247c7398 Add ProhibitOverlap option to PeriodicConfig 2016-01-07 11:19:46 -08:00
Alex Dadgar
cf3152d924 Merge pull request #575 from nautsio/f-short-ids
Allow lookups based on short identifiers
2016-01-06 14:36:19 -08:00
Ivo Verberk
62951082e2 Improvements for short identifiers
* Fix tests
* Update documentation
2016-01-06 22:46:57 +01:00
Alex Dadgar
892c7ddee3 Fix bug, add tests, and cli output 2016-01-04 14:23:06 -08:00
Alex Dadgar
7cc5714dc9 Merge pull request #624 from hashicorp/f-adjustable-timeout
User specifiable kill timeout and operator configurable max
2016-01-04 11:44:22 -08:00
Ivo Verberk
db82564041 Bring up-to-date with master 2015-12-24 21:16:32 +01:00
Ivo Verberk
905742249e Refactoring continued
* Refactor other cli commands to new design
* Add PrefixList method to api package
* Add more tests
2015-12-24 20:53:37 +01:00
Alex Dadgar
af66ac621a Update deregister test 2015-12-23 18:26:39 -08:00
Alex Dadgar
ac3d833942 Leader election restore, add structs to api jobs 2015-12-23 18:26:39 -08:00
Alex Dadgar
9f44780f89 User specifiable kill timeout and operator configurable max 2015-12-22 16:10:30 -08:00
Ivo Verberk
e89b5af338 Refactoring
* Reverted changes to get methods
* Added prefix query parameter
* Updated node status to use prefix based searching
* Fixed tests
* Removed truncation logic
2015-12-22 23:44:33 +01:00
Alex Dadgar
a0642a71ab Fix api test 2015-12-18 12:17:54 -08:00
Alex Dadgar
3122433b47 merge 2015-12-18 12:17:13 -08:00
Diptanu Choudhury
d4d7572604 Making the allocs hold service ids 2015-12-14 15:08:35 -08:00
Chris Hines
04c7ba69af Remove clock granularity sensitive test assertion.
TestRequestTime already verifies that the request time is properly recorded.
2015-12-14 17:03:08 -05:00
Alex Dadgar
8398e64464 Merge pull request #523 from ChrisHines/windows-api-tests
api: fix tests on Windows.
2015-12-08 19:07:40 -08:00
Ryan Uber
034846aec9 Add Meta field for Node struct 2015-12-07 21:41:57 -08:00
Chris Hines
79f1d76e92 Test request timing with a server slow enough to measure with low granularity system clocks. 2015-12-01 14:53:01 -05:00
Ryan Uber
2e009e5060 api: add regions wrapper 2015-11-24 13:11:48 -08:00
Diptanu Choudhury
197e755506 Changed the http field to path 2015-11-18 14:29:55 -08:00
Diptanu Choudhury
3a250a179b Exctacted a method for parsing checks 2015-11-17 15:13:25 -08:00
Diptanu Choudhury
53e9d21ac0 Added the service definitions in api structs too 2015-11-17 15:13:25 -08:00
Chris Bednarski
1d1e4bdd08 Merge branch 'master' into f-port-labels 2015-11-16 16:02:38 -08:00
Alex Dadgar
b692bcd0b4 Fix the capacity 2015-11-16 15:14:21 -08:00
Alex Dadgar
fa68fb62d3 Change event type to string 2015-11-16 15:14:21 -08:00
Alex Dadgar
f4b461f97a Track Task State in the client and capture Wait results 2015-11-16 15:14:21 -08:00
Alex Dadgar
2afcbbe082 Add TaskState to alloc 2015-11-16 15:14:21 -08:00
Diptanu Choudhury
a52bff862d Fixed the api tests 2015-11-16 13:10:57 -08:00
Diptanu Choudhury
e8236c0081 Fixed the parsing and encoding logic 2015-11-16 13:10:57 -08:00
Antonio Fernández
b768ceb995 api /v1/node/<id>/allocations returns an array of Allocation objects, not AllocationIndexStub 2015-11-09 17:54:18 +01:00
Diptanu Choudhury
ec819f9761 Fixing tests to not create a TG without restart policies 2015-11-02 13:24:59 -08:00
Diptanu Choudhury
67c21e4b31 Added a RestartPolicy to some mocks 2015-10-30 21:33:33 -07:00
Diptanu Choudhury
e2f61e25e9 Sending restart policies to the Nomad API 2015-10-30 16:32:05 -07:00
Alex Dadgar
c46447a572 Remove weight and hard/soft fields from constraint 2015-10-27 14:31:14 -07:00
Gregory Man
09513e0147 Sort server-members output using name and tags 2015-10-23 21:33:18 +03:00
Jeff Mitchell
b13df73ee8 Update the location of cleanhttp 2015-10-22 14:21:07 -04:00
Jeff Mitchell
b0aac09da8 Use cleanhttp for truly clean clients and transports. 2015-10-22 10:58:23 -04:00
Diptanu Choudhury
fc6b874d60 Fixed the imports 2015-10-20 16:42:53 -07:00