Commit Graph

316 Commits

Author SHA1 Message Date
Alex Dadgar
d536fe9027 Remove all calls to the default logger 2015-12-11 15:02:13 -08:00
Chris Hines
2bcab7cc0c Avoid leaking a time.Ticker. 2015-12-11 15:30:53 -05:00
Alex Dadgar
8be637b93f Merge pull request #556 from hashicorp/b-cache-docker-client
Do.Once docker client initialization
2015-12-10 16:19:06 -08:00
Chris Bednarski
5bf8a1fff6 Move raw_exec enabled into the DevMode config block 2015-12-10 15:24:21 -08:00
Chris Bednarski
1821db757b Use ReadBoolDefault 2015-12-10 15:03:25 -08:00
Chris Bednarski
462a721edb Enable raw exec in dev mode 2015-12-10 14:48:06 -08:00
Alex Dadgar
25e47465c1 Do Once docker client initialization 2015-12-10 13:49:29 -08:00
Diptanu Choudhury
d53591052e Sending the user process sigint during shutdown on linux 2015-12-08 08:14:13 -08:00
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
Diptanu Choudhury
0c499f78b3 Moving the args to helper 2015-11-26 14:13:19 -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
Chris Hines
fd4ec821f9 Factor portable test task out of client/driver/executor. 2015-11-24 20:59:42 -05: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
Alex Dadgar
ef1937cd53 Standardize log messages in fingerprinters to DEBUG 2015-11-24 11:06:51 -08:00
Chris Bednarski
9e418fcaf5 Merge pull request #481 from hashicorp/b-vet
Fix some issues caught by go vet
2015-11-20 16:31:47 -08:00
Chris Bednarski
5f719161de Merge pull request #480 from hashicorp/f-docker-tls-config
Added docker.tls config file options and docs
2015-11-20 16:31:41 -08:00
Chris Bednarski
fc95a3c9dc Fix some issues caught by go vet 2015-11-20 16:01:27 -08:00
Chris Bednarski
2970006488 Change println to printf 2015-11-20 16:00:58 -08:00
Chris Bednarski
30e7ef3eb9 Don't show endpoint when we're not using it 2015-11-20 15:53:38 -08:00
Chris Bednarski
2563480ddf Added docker.tls config file options and docs 2015-11-20 15:47:03 -08:00
Alex Dadgar
ef013c5c45 Merge pull request #442 from ChrisHines/windows-spawn
Fix tests for nomad/client/driver/spawn package to work on Windows.
2015-11-20 14:49:54 -08:00
Chris Bednarski
c298425917 Added client checks back to the tests that can't use dockerSetup() 2015-11-20 13:50:47 -08:00
Chris Bednarski
63439ee3f7 Squash []map[string]type for port_map and labels into map[string]type 2015-11-19 21:29:37 -08:00
Chris Bednarski
f75404ecf7 Fixed some issues with expose, port mapping, and environment variables
- Port mapping now works for reserved ports as well as dynamic ports
- Environment variables were being set twice in two different ways; now they are only set once
- Comprehensive tests for exposed ports, forwarded ports, and environment variables
- Cleaned up / DRYed up a lot of test code
2015-11-19 19:08:21 -08:00
Chris Bednarski
8c1d762a75 Export DockerHandle and change tests to use DockerHandle.ContainerID() 2015-11-19 14:20:41 -08:00
Chris Bednarski
84f9bb1367 Add ContainerID() method to get the containerID from a handle 2015-11-19 13:57:18 -08:00
Antonio Fernández
fde90ca2c2 fix docker port allocation? 2015-11-19 19:15:25 +01:00
Chris Hines
3fe4d85c81 Handle additional edge cases when parsing environment variables. 2015-11-18 21:21:07 -05:00
Alex Dadgar
7357979089 Revert "Revert "Make drivers take arguments as a list and not as a string"" 2015-11-18 15:16:42 -08:00
Alex Dadgar
d666f5bde1 Revert "Make drivers take arguments as a list and not as a string" 2015-11-18 13:46:43 -08:00
Alex Dadgar
5aaa0553cf Remove returning the error 2015-11-18 12:40:34 -08:00
Alex Dadgar
62a0c5d14c Rebase 2015-11-18 12:30:35 -08:00
Alex Dadgar
c6a895aff7 Fix executor tests 2015-11-18 12:29:04 -08:00
Alex Dadgar
ee1887e609 Rebase 2015-11-18 12:29:04 -08:00
Alex Dadgar
d20be7b58c Update ParseAndReplace to take a list of args and remove shell style parsing 2015-11-18 12:29:04 -08:00
Chris Hines
9666f450e7 Move test code to *_test.go file. 2015-11-18 14:46:56 -05:00
Chris Bednarski
c375000f08 Added missing %s to error format string 2015-11-18 11:29:49 -08:00
Chris Bednarski
85d07e72bf Revert "Added missing %s to error format string"
This reverts commit f4acdfd035.
2015-11-18 11:28:38 -08:00
Chris Bednarski
f4acdfd035 Added missing %s to error format string 2015-11-18 11:28:07 -08:00
Chris Bednarski
20b42864be Merge branch 'master' into f-docker-dns-config 2015-11-18 10:31:06 -08:00
Carlos Diaz-Padron
270631a006 Nest Docker driver auth under object 2015-11-18 01:37:42 -08:00
Carlos Diaz-Padron
fba3c573f1 De-nest docker registry auth and reformat related doc 2015-11-17 23:32:57 -08:00