Commit Graph

73 Commits

Author SHA1 Message Date
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
Diptanu Choudhury
7b843626b0 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
38db63f7f4 Remove usage of http.DefaultClient 2015-10-16 16:56:43 -04:00
Alex Dadgar
50862f8e31 Switch to using BlkioWeight 2015-10-06 15:44:01 -07:00
Antoine POPINEAU
9c17c0a1d8 Added a jobspec directive to specify envvars. Updated Docker driver to use them accordingly. 2015-10-02 17:46:55 -07:00
Ryan Uber
e6a3b4ec4f api: add client server methods 2015-09-24 21:17:33 -07:00
Chris Bednarski
1b449fd89b Add dynamic ports to api resources; copy dynamic ports into offer 2015-09-23 18:01:49 -07:00
Armon Dadgar
b81105bd09 Change CPU from float64 to int 2015-09-23 11:14:32 -07:00
Ryan Uber
8b8a0ecb73 command: start alloc-status command 2015-09-22 10:45:07 -07:00
Ryan Uber
6c3c45641f api: rename jobs.Delete -> jobs.Deregister 2015-09-22 10:45:06 -07:00
Ryan Uber
cd10614798 api: job deregister returns eval ID 2015-09-22 10:45:06 -07:00
Ryan Uber
0f0bbbd0ff api: test job sort 2015-09-17 13:15:45 -07:00
Ryan Uber
06aa0119e4 api: sort all list responses 2015-09-17 13:10:20 -07:00
Ryan Uber
24cd105200 api: composing jobs takes region 2015-09-16 11:42:08 -07:00
Ryan Uber
39789e478d api: fix tests after struct validations 2015-09-16 11:26:48 -07:00
Ryan Uber
cfb6f3781c api: add region to jobs 2015-09-16 11:26:47 -07:00
Ryan Uber
3d8b115943 api: fixing join tests 2015-09-14 14:04:30 -07:00
Ryan Uber
843a99d5d5 api: fix agent test 2015-09-14 13:24:03 -07:00
Ryan Uber
7e26f938a2 command: use meta struct for common options 2015-09-14 13:24:03 -07:00
Ryan Uber
8301dd0405 api: return the number of nodes joined 2015-09-14 13:24:03 -07:00
Ryan Uber
ad40e1a0a6 api: fix status type 2015-09-14 13:24:03 -07:00
Ryan Uber
d2597982ad api: use stub structs 2015-09-13 20:02:22 -07:00
Ryan Uber
c5ab72acc2 api: run all tests in parallel 2015-09-13 12:17:08 -07:00
Ryan Uber
f7f32f3c35 api: remove unneeded test 2015-09-12 11:49:32 -07:00
Ryan Uber
3c6c6a6cd9 api: fix nodes tests 2015-09-11 21:28:21 -07:00
Ryan Uber
0d897daba7 api: correct status leader test 2015-09-11 20:35:13 -07:00
Ryan Uber
ea24468e0e api: use strconv 2015-09-11 17:20:33 -07:00
Ryan Uber
2ba01d2dd9 api: add status endpoint 2015-09-11 17:02:56 -07:00