Charlie Voiselle
904d171108
gofmt and goimports
2017-11-13 12:25:02 -05:00
Charlie Voiselle
622d3ddb92
Fixed test and moved constants into standalone func
...
In #3520 , work was done to true up the defaults for Nomad resource
stanzas with the documentation. This fixes the tests that I
accidentally broke in the process. Some questions were raised about
using dynamic elements as part of expects, which is why I opted to
copy the MinResources pattern. During this refactor I also noticed
that structs.go had a similar issue and an inconsistent minium for CPU.
2017-11-13 12:05:30 -05:00
Charlie Voiselle
7c98e466fc
Rolled back documentation change in favor of correcting the default
2017-11-07 17:17:49 -05:00
Alex Dadgar
e0d165812b
Fix api.NetworkResource fields
2017-04-07 18:36:43 -07:00
Alex Dadgar
55e7ad7fd9
Remove defaulting from parse and fix parser tests
...
This PR removes defaulting from the parse, fixes some regressions that
existed as part of the parser refactor and fixes the tests.
2017-02-22 12:30:05 -08:00
Diptanu Choudhury
5502a669e8
Added tests
2017-02-16 13:52:39 -08:00
Diptanu Choudhury
f551dcb83e
Making the job spec return api.Job
2017-02-16 13:52:39 -08:00
Diptanu Choudhury
879c6c665f
Showing Task Resources in alloc status
2016-03-11 14:28:51 -08:00
Diptanu Choudhury
e8236c0081
Fixed the parsing and encoding logic
2015-11-16 13:10:57 -08: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
5d1e515112
api: restructure client
2015-09-09 13:05:27 -07:00