Chelsea Holland Komlo
021336eaee
fix up test fixture to properly parse
2017-12-06 16:23:55 -05:00
Chelsea Holland Komlo
b08611cfac
move kill_signal to task level, extend to docker
2017-12-06 14:36:39 -05:00
Preetha
0e6484a397
Merge pull request #3536 from angrycub/b-resource-memory-test-fix
...
Fixed test and moved constants into standalone func
2017-11-13 17:00:14 -06:00
Charlie Voiselle
1419e7a1c3
gofmt and goimports
2017-11-13 12:25:02 -05:00
Preetha Appan
be5fd87b9a
Fixes bug with display message logic due to deprecating GenericSource. Also added more test cases to cover a bunch more edge cases
2017-11-13 11:14:57 -06:00
Charlie Voiselle
26acd7f025
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
Alex Dadgar
b68f18bcc5
Merge pull request #3520 from hashicorp/b-memory-default-incorrect
...
`memory` default is 10, not 300
2017-11-10 12:43:37 -08:00
Charlie Voiselle
18750980ff
Simplified based on review comments
2017-11-09 20:09:37 -05:00
Charlie Voiselle
c15e91951b
Adopted pattern from LogConfig to handle panic when no resource stanza at all
...
In testing realized that Resources night not be present at all. Testing this case caused panic. Added in a means to collect clean defaults in that case.
2017-11-09 10:57:57 -05:00
Charlie Voiselle
eda45a0cee
Canonicalize task and remove merge with MinResources
...
The current code would merge the job with the output of MinResources causing the nil to be replaced with MemoryMB=helper.IntToPtr(10). When later `Canonicalize`d, the 10 would cause the default of 300 not to be applied. Running `Canonicalize` on the task itself guarantees that CPU, MemoryMB, and IOPS is set, so we can remove the Merge withMinResources.
2017-11-09 10:10:11 -05:00
Chelsea Komlo
bb96d79cae
Merge pull request #3480 from loomnetwork/fix-jobs-tests
...
jobs tests were sending invalid jobs
2017-11-08 11:49:19 -05:00
Charlie Voiselle
ff5d1a90a4
Rolled back documentation change in favor of correcting the default
2017-11-07 17:17:49 -05:00
Preetha Appan
61a49e08af
Fix formatting
2017-11-03 12:48:55 -05:00
Preetha Appan
56574ed87d
Adds deprecation notice to API struct definition.
2017-11-03 10:12:37 -05:00
Preetha Appan
5f09c968b3
Move logic for determinic event display message to task_runner, added two new fields DisplayMessage and Details.
2017-11-03 09:13:01 -05:00
Preetha Appan
39d70be009
Add ModifyTime to Allocation and update it both on plan applies and client initiated updates
2017-11-01 15:13:48 -05:00
Matthew Campbell
7432676e87
jobs tests were sending invalid jobs
2017-11-01 18:29:15 +07:00
Michael Schurter
916682f8a0
Merge pull request #3387 from hashicorp/f-aclless-health
...
Agent Health Endpoint
2017-10-16 11:05:09 -07:00
Alex Dadgar
c3f06b2134
Merge pull request #3384 from hashicorp/f-self-policies
...
Ability to introspect self token
2017-10-13 17:11:22 -07:00
Michael Schurter
f141bf3fe5
Add Agent.Health to api package
2017-10-13 16:43:00 -07:00
Alex Dadgar
c1cc51dbee
sync
2017-10-13 14:36:02 -07:00
Alex Dadgar
dd3920d681
Self token lookup
2017-10-13 13:12:20 -07:00
Michael Schurter
84d8a51be1
SecretID -> AuthToken
2017-10-12 15:16:33 -07:00
Alex Dadgar
68d1a61e8e
fix test
2017-10-11 18:11:03 -07:00
Alex Dadgar
ea4e9ed027
Change vault_grace default to match vaults
2017-10-11 17:20:12 -07:00
Alex Dadgar
6d3d0a9391
Nomad UI Command
2017-10-09 23:01:55 -07:00
Michael Schurter
a66c53d45a
Remove structs
import from api
...
Goes a step further and removes structs import from api's tests as well
by moving GenerateUUID to its own package.
2017-09-29 10:36:08 -07:00
Alex Dadgar
76e4230833
Merge pull request #3284 from hashicorp/f-lint
...
Enable more linters
2017-09-26 15:46:42 -07:00
Alex Dadgar
4173834231
Enable more linters
2017-09-26 15:26:33 -07:00
Michael Schurter
d0140f07ca
grace_period -> grace
2017-09-26 10:21:35 -07:00
Alex Dadgar
2a09c51840
handle errors when streaming logs
2017-09-19 10:37:49 -05:00
Alex Dadgar
e5ec915ac3
sync
2017-09-19 10:08:23 -05:00
Michael Schurter
f92ffe5af5
Merge pull request #3105 from hashicorp/f-876-restart-unhealthy
...
Restart unhealthy tasks
2017-09-17 19:38:32 -07:00
Chelsea Holland Komlo
fdf6120987
add acl token as meta flag
...
add API test for job ACL
2017-09-15 23:33:43 +00:00
Michael Schurter
06ca379da0
Add comments
2017-09-15 14:34:36 -07:00
Michael Schurter
d299d42089
Canonicalize and Merge CheckRestart in api
2017-09-14 16:48:39 -07:00
Michael Schurter
99f4aa999a
Default grace period to 1s
2017-09-14 16:46:54 -07:00
Michael Schurter
a180c00fc3
on_warning=false -> ignore_warnings=false
...
Treat warnings as unhealthy by default
2017-09-14 16:46:54 -07:00
Michael Schurter
b35d208428
Nest restart fields in CheckRestart
2017-09-14 16:46:54 -07:00
Michael Schurter
bf34505509
Add restart fields
2017-09-14 16:46:54 -07:00
Alex Dadgar
a2363e7583
sync acls
2017-09-13 11:38:29 -07:00
Alex Dadgar
84d06f6abe
Sync namespace changes
2017-09-07 17:04:21 -07:00
Armon Dadgar
3f35b1ef0c
api: Fixing double region merge conflict
2017-09-04 13:20:51 -07:00
Armon Dadgar
d49bc49274
api: full CRUD for ACL token API
2017-09-04 13:09:34 -07:00
Armon Dadgar
4512094058
api: support token listing
2017-09-04 13:09:34 -07:00
Armon Dadgar
1e9f19ef40
api: support querying policies
2017-09-04 13:09:34 -07:00
Armon Dadgar
41249d9b6a
api: support policy delete
2017-09-04 13:09:34 -07:00
Armon Dadgar
147471ffbf
api: Adding support for ACL tokens
2017-09-04 13:09:34 -07:00
Armon Dadgar
f1c4143a62
agent: thread ACLs for Job Register
2017-09-04 13:05:53 -07:00
Alex Dadgar
698387e103
Don't merge empty update from job into task groups
...
This PR fixes an issue in which we would merge an update stanza from the
job into the task groups even if it was empty. This broke round
tripping a job (reading from the api and resubmitting as JSON)
Fixes https://github.com/hashicorp/nomad/issues/3132
2017-08-30 11:35:19 -07:00