Commit Graph

672 Commits

Author SHA1 Message Date
Chris Bednarski
8267ffe8a6 Merge branch 'user-lookup-nocgo' of https://github.com/carlosdp/nomad into b-user-lookup 2015-12-01 13:44:56 -08:00
Carlos Diaz-Padron
eeaa84d52e Refactor out userLookup to helper package
Also replaces user.Lookup in exec driver
2015-12-01 11:59:55 -08:00
Alex Dadgar
9d583202a8 Merge pull request #514 from kaskavalci/master
Fixed git vet error on formatting
2015-12-01 08:58:19 -08:00
Halil Kaskavalci
728a6e3fd7 Fixed git vet error on formatting 2015-11-30 10:27:26 +00:00
Bryant Luk
8912f81650 Verify Consul SSL by default
- Matches documentation default value and clarifies config
2015-11-28 19:58:09 -06:00
Diptanu Choudhury
6786367822 Merge pull request #509 from hashicorp/f-service-name
Implemented interpolation of Job, Task group and Task Names in Service Name
2015-11-26 23:28:13 -08:00
Diptanu Choudhury
0c499f78b3 Moving the args to helper 2015-11-26 14:13:19 -08:00
Diptanu Choudhury
3d36591944 Merge pull request #504 from hashicorp/b-checks
This simplifies the logic of tracking services and checks
2015-11-26 13:59:38 -08:00
Diptanu Choudhury
0f39fa5703 Fixed some docs 2015-11-26 13:47:02 -08:00
Diptanu Choudhury
c1e9db0f93 Added more docs 2015-11-26 11:25:09 -08:00
Diptanu Choudhury
0534c4a640 Added a mock consul api client 2015-11-26 01:03:16 -08:00
Diptanu Choudhury
6067b30d51 Fixed a few tests 2015-11-26 00:26:10 -08:00
Diptanu Choudhury
cdb28bf46f Added a test for modifying check 2015-11-25 18:37:51 -08:00
Diptanu Choudhury
75d95a4c83 Fixed merge conflicts 2015-11-25 18:32:37 -08:00
Diptanu Choudhury
67fd39fce0 Added some comments 2015-11-25 18:31:11 -08:00
Diptanu Choudhury
f2f5f7ee36 Fixed tests 2015-11-25 18:23:47 -08:00
Diptanu Choudhury
e6ff842e8f making the service checks in service pointers 2015-11-25 17:44:57 -08:00
Alex Dadgar
4398632a27 Merge pull request #502 from ChrisHines/portable-driver-tests
Portable client/driver tests.
2015-11-25 17:36:40 -08:00
Diptanu Choudhury
a106b03416 Made the logic to track checks simpler 2015-11-25 17:28:44 -08:00
Diptanu Choudhury
84a61a9fcd Using the service id in check hash 2015-11-25 15:17:27 -08:00
Diptanu Choudhury
eaea4f6800 Fixed the alloc runner test 2015-11-25 14:54:52 -08:00
Diptanu Choudhury
eedc99ccda Fixed the build 2015-11-25 14:45:28 -08:00
Diptanu Choudhury
ee14aa2781 Added options for adding more consul configuration 2015-11-25 13:39:16 -08:00
Diptanu Choudhury
beebb7cc14 Merge pull request #498 from hashicorp/b-consul-check
Handle updates of Service and Check definitions
2015-11-25 13:17:26 -08:00
Chris Hines
ffda9d71d4 Speed up tests by allowing parallel execution. 2015-11-25 15:56:55 -05:00
Chris Hines
d707adc3ed Use package testtask and httptest.Server to make client/driver tests OS independent. 2015-11-25 15:56:20 -05:00
Chris Hines
551104cafe Use package testtask in client/driver/spawn tests. 2015-11-25 15:34:55 -05:00
Chris Hines
ef7388549d Eliminate special case in production code for embedding test binary into chroot. 2015-11-25 15:31:29 -05:00
Diptanu Choudhury
e9019d1256 Improved tests 2015-11-25 12:06:14 -08:00
Diptanu Choudhury
92c635d278 Added a test to make sure we are adding a check to a service 2015-11-25 11:20:36 -08:00
Diptanu Choudhury
566897b60f Saving the host and port in tracked service 2015-11-24 18:58:53 -08:00
Diptanu Choudhury
e2370999de Fixing comment and syntax 2015-11-24 18:43:23 -08:00
Diptanu Choudhury
02f2c55f9f Implemented syncing of checks 2015-11-24 18:39:38 -08:00
Chris Hines
fd4ec821f9 Factor portable test task out of client/driver/executor. 2015-11-24 20:59:42 -05:00
Diptanu Choudhury
fdb26ae6a0 Dried the tests 2015-11-24 17:33:04 -08:00
Diptanu Choudhury
78555b509a Tracking the tasks too 2015-11-24 17:26:30 -08:00
Alex Dadgar
8afce68bf0 Inject the current binary into the chroot in test mode 2015-11-24 16:30:53 -08:00
Chris Hines
376e192867 Fix Executor_Open_Invalid test for Windows. 2015-11-24 16:30:53 -08:00
Chris Hines
ded2aeab2e Include Executor_Open_Invalid in test suite. 2015-11-24 16:30:53 -08:00
Chris Hines
43f3c43ec0 Improve names and documentation in test code. 2015-11-24 16:30:53 -08:00
Chris Hines
3f6c115440 Use TestMain to provide portable echo, sleep, and write commands. 2015-11-24 16:30:53 -08:00
Diptanu Choudhury
3051958323 Added a test to re-sync services 2015-11-24 14:37:14 -08:00
Diptanu Choudhury
b0c8cf6e36 Renamed consul client to service 2015-11-24 12:34:26 -08:00
Alex Dadgar
a4843addce Merge branch 'master' of https://github.com/hashicorp/nomad 2015-11-24 11:06:56 -08:00
Alex Dadgar
ef1937cd53 Standardize log messages in fingerprinters to DEBUG 2015-11-24 11:06:51 -08:00
Diptanu Choudhury
448ac3efd6 Registering Checks independently 2015-11-24 10:02:33 -08:00
Diptanu Choudhury
9868163737 Removing a hot debug line 2015-11-24 10:02:33 -08:00
max
7ff03041d7 Client config option "fingerprint.whitelist" 2015-11-24 16:18:49 +01:00
Diptanu Choudhury
b6cb7d0d7b Updated changelog 2015-11-23 11:01:41 -08:00
Diptanu Choudhury
b3f6f1aec3 removing redundant fail() 2015-11-23 10:59:07 -08:00