Commit Graph

839 Commits

Author SHA1 Message Date
Alex Dadgar f843e95cbf 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 24fd4a8c27 Add ProhibitOverlap option to PeriodicConfig 2016-01-07 11:19:46 -08:00
Alex Dadgar ce22c049db 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 9527fc254d Improvements for short identifiers
* Fix tests
* Update documentation
2016-01-06 22:46:57 +01:00
Alex Dadgar c0721e45f6 Fix bug, add tests, and cli output 2016-01-04 14:23:06 -08:00
Alex Dadgar 1e5c776e40 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 fd177f4c6f Bring up-to-date with master 2015-12-24 21:16:32 +01:00
Ivo Verberk 0c01ca49e6 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 7586a84dbe Update deregister test 2015-12-23 18:26:39 -08:00
Alex Dadgar f6769c3d96 Leader election restore, add structs to api jobs 2015-12-23 18:26:39 -08:00
Alex Dadgar ddf392c6be User specifiable kill timeout and operator configurable max 2015-12-22 16:10:30 -08:00
Ivo Verberk 7838b2a57c 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 156d5845d1 Fix api test 2015-12-18 12:17:54 -08:00
Alex Dadgar 31c3e12957 merge 2015-12-18 12:17:13 -08:00
Diptanu Choudhury 76486d71e2 Making the allocs hold service ids 2015-12-14 15:08:35 -08:00
Chris Hines 33f4afe05e 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 44788e8694 Merge pull request #523 from ChrisHines/windows-api-tests
api: fix tests on Windows.
2015-12-08 19:07:40 -08:00
Ryan Uber 1067c4208f Add Meta field for Node struct 2015-12-07 21:41:57 -08:00
Chris Hines 30712dc249 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 617c64ee20 api: add regions wrapper 2015-11-24 13:11:48 -08:00
Diptanu Choudhury bb7f29f023 Changed the http field to path 2015-11-18 14:29:55 -08:00
Diptanu Choudhury 04d2d6921d Exctacted a method for parsing checks 2015-11-17 15:13:25 -08:00
Diptanu Choudhury 0d9e34bea4 Added the service definitions in api structs too 2015-11-17 15:13:25 -08:00
Chris Bednarski 9f40143684 Merge branch 'master' into f-port-labels 2015-11-16 16:02:38 -08:00
Alex Dadgar b649039448 Fix the capacity 2015-11-16 15:14:21 -08:00
Alex Dadgar 6133917e33 Change event type to string 2015-11-16 15:14:21 -08:00
Alex Dadgar 82f51601db Track Task State in the client and capture Wait results 2015-11-16 15:14:21 -08:00
Alex Dadgar 359251744f Add TaskState to alloc 2015-11-16 15:14:21 -08:00
Diptanu Choudhury 33fc6b88d3 Fixed the api tests 2015-11-16 13:10:57 -08:00
Diptanu Choudhury b083a3f307 Fixed the parsing and encoding logic 2015-11-16 13:10:57 -08:00
Antonio Fernández 89d4717c92 api /v1/node/<id>/allocations returns an array of Allocation objects, not AllocationIndexStub 2015-11-09 17:54:18 +01:00
Diptanu Choudhury 52eb6c77af Fixing tests to not create a TG without restart policies 2015-11-02 13:24:59 -08:00
Diptanu Choudhury c80f0e38d1 Added a RestartPolicy to some mocks 2015-10-30 21:33:33 -07:00
Diptanu Choudhury 99c24e5243 Sending restart policies to the Nomad API 2015-10-30 16:32:05 -07:00
Alex Dadgar 3cdbfc010f Remove weight and hard/soft fields from constraint 2015-10-27 14:31:14 -07:00
Gregory Man 1af62592c1 Sort server-members output using name and tags 2015-10-23 21:33:18 +03:00
Jeff Mitchell 959c175ca1 Update the location of cleanhttp 2015-10-22 14:21:07 -04:00
Jeff Mitchell cea5fd9081 Use cleanhttp for truly clean clients and transports. 2015-10-22 10:58:23 -04:00
Diptanu Choudhury 79ccde7c2c Fixed the imports 2015-10-20 16:42:53 -07:00
Diptanu Choudhury b4d714ec56 Added the UpdataStrategy struct to the api/jobs struct so that we don't loose the information passed on from the cli 2015-10-20 16:16:05 -07:00
Jeff Mitchell 50c2955f54 Remove usage of http.DefaultClient 2015-10-16 16:56:43 -04:00
Alex Dadgar f40397e6ef Switch to using BlkioWeight 2015-10-06 15:44:01 -07:00
Antoine POPINEAU 722141bfa6 Added a jobspec directive to specify envvars. Updated Docker driver to use them accordingly. 2015-10-02 17:46:55 -07:00
Ryan Uber fb35ceb4c3 api: add client server methods 2015-09-24 21:17:33 -07:00
Chris Bednarski 0060ac933f Add dynamic ports to api resources; copy dynamic ports into offer 2015-09-23 18:01:49 -07:00
Armon Dadgar b213462cb4 Change CPU from float64 to int 2015-09-23 11:14:32 -07:00
Ryan Uber 84a5de4e02 command: start alloc-status command 2015-09-22 10:45:07 -07:00
Ryan Uber 8f9877edaa api: rename jobs.Delete -> jobs.Deregister 2015-09-22 10:45:06 -07:00
Ryan Uber 5ddb67f3cf api: job deregister returns eval ID 2015-09-22 10:45:06 -07:00
Ryan Uber c1aa896918 api: test job sort 2015-09-17 13:15:45 -07:00
Ryan Uber 61b8249d08 api: sort all list responses 2015-09-17 13:10:20 -07:00
Ryan Uber cbb5be79e8 api: composing jobs takes region 2015-09-16 11:42:08 -07:00
Ryan Uber 90a79bafab api: fix tests after struct validations 2015-09-16 11:26:48 -07:00
Ryan Uber f136c86112 api: add region to jobs 2015-09-16 11:26:47 -07:00
Ryan Uber 3a84c96429 api: fixing join tests 2015-09-14 14:04:30 -07:00
Ryan Uber b9cd47807c api: fix agent test 2015-09-14 13:24:03 -07:00
Ryan Uber 7b5fd8a214 command: use meta struct for common options 2015-09-14 13:24:03 -07:00
Ryan Uber 761aad186a api: return the number of nodes joined 2015-09-14 13:24:03 -07:00
Ryan Uber 8961b910d5 api: fix status type 2015-09-14 13:24:03 -07:00
Ryan Uber 855ec7a712 api: use stub structs 2015-09-13 20:02:22 -07:00
Ryan Uber 531d093a2f api: run all tests in parallel 2015-09-13 12:17:08 -07:00
Ryan Uber 29cd5064de api: remove unneeded test 2015-09-12 11:49:32 -07:00
Ryan Uber cbb7e7aec0 api: fix nodes tests 2015-09-11 21:28:21 -07:00
Ryan Uber 6fcec7088e api: correct status leader test 2015-09-11 20:35:13 -07:00
Ryan Uber 4334dc56b7 api: use strconv 2015-09-11 17:20:33 -07:00
Ryan Uber fb3e3f5b13 api: add status endpoint 2015-09-11 17:02:56 -07:00
Ryan Uber b86bc3e73f api: add nodes endpoints 2015-09-11 16:51:18 -07:00
Ryan Uber fae5a39666 api: support force-eval 2015-09-09 18:39:24 -07:00
Ryan Uber 5e1932136a api: more tests 2015-09-09 18:10:16 -07:00
Ryan Uber 7926aed642 api: more tests for jobs 2015-09-09 17:29:43 -07:00
Ryan Uber 2cbdd4c1c3 api: working on evaluations 2015-09-09 13:48:56 -07:00
Ryan Uber a807612091 api: allow query options everywhere 2015-09-09 13:18:50 -07:00
Ryan Uber aff13fc84c api: restructure client 2015-09-09 13:05:27 -07:00
Ryan Uber 3ec197d440 api: structs are composable 2015-09-09 00:33:56 -07:00
Ryan Uber 7acc90aa32 api: add constraints generators 2015-09-08 19:27:04 -07:00
Ryan Uber 1904724839 api: finishing jobs 2015-09-08 18:42:34 -07:00
Ryan Uber 05cd0b7990 api: look up allocations by job ID 2015-09-08 17:52:47 -07:00
Ryan Uber 4196ab8fb1 api: allow retrieving jobs by ID 2015-09-08 17:20:52 -07:00
Ryan Uber d47772f8a6 api: return query meta/write meta 2015-09-08 16:45:16 -07:00
Ryan Uber 0f31b16fae api: starting on jobs 2015-09-08 16:24:26 -07:00
Ryan Uber 4ff1753466 api: starting on allocs 2015-09-08 15:37:07 -07:00
Ryan Uber 40a5696fb2 api: finish agent endpoint 2015-09-08 14:47:29 -07:00
Ryan Uber 801db291ed api: agent join api works 2015-09-08 14:26:53 -07:00
Ryan Uber 9bd115e0fd api: allow query parameters in query/write/delete 2015-09-08 14:26:26 -07:00
Ryan Uber 5a8bc52c56 api: region is queryable, optimize agent caching 2015-09-08 12:13:39 -07:00
Ryan Uber 500daf5d7f api: datacenter is cached and queryable 2015-09-08 12:01:54 -07:00
Ryan Uber c1f4faaab3 api: allow querying node name from agent 2015-09-08 11:51:20 -07:00
Ryan Uber f5c57cedfa api: add agent self call 2015-09-08 11:41:03 -07:00
Armon Dadgar f91d735634 api: Adding basic skeleton 2015-09-06 13:29:51 -07:00