Commit Graph

35 Commits

Author SHA1 Message Date
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
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
Chris Bednarski
fc95a3c9dc Fix some issues caught by go vet 2015-11-20 16:01:27 -08: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
c6a895aff7 Fix executor tests 2015-11-18 12:29:04 -08:00
Alex Dadgar
ee1887e609 Rebase 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
1d1e4bdd08 Merge branch 'master' into f-port-labels 2015-11-16 16:02:38 -08:00
Alex Dadgar
f4b461f97a Track Task State in the client and capture Wait results 2015-11-16 15:14:21 -08:00
Diptanu Choudhury
c01f2a38f5 Made the code more DRY 2015-11-16 13:10:57 -08:00
Diptanu Choudhury
7f6e940946 Implemented port labeling and driver configs 2015-11-16 13:10:57 -08:00
Alex Dadgar
ce8856daf4 Guard mounting dev/ and proc/ and TaskRunner_RestoreState test 2015-11-10 16:35:33 -08:00
Alex Dadgar
87dd4dd0c7 Client Restore test 2015-11-10 16:03:18 -08:00
Alex Dadgar
34ccda8cd1 Add Valid command to spawner and make executors check when opening 2015-11-06 11:23:27 -08:00
Alex Dadgar
bf44d3c2ed Merge pull request #392 from hashicorp/f-raw-exec-use-exec
RawExec driver uses exec_basic
2015-11-06 10:48:55 -08:00
Alex Dadgar
e49f3383b6 merge 2015-11-06 10:42:49 -08:00
Alex Dadgar
5ec6aeaa39 Merge 2015-11-06 10:41:42 -08:00
Alex Dadgar
34c942236a Calling incorrect executor build method 2015-11-05 11:54:51 -08:00
Alex Dadgar
830172256d Fix typo 2015-11-05 11:31:50 -08:00
Alex Dadgar
1d21991e28 exec_basic uses Spawner; create shared test harness for executors 2015-11-05 09:58:57 -08:00
Alex Dadgar
8ed031c45e Get rid of exec.cmd struct and setuid file 2015-11-04 17:20:52 -08:00
Alex Dadgar
0f1050b1bf Move the executor and spawn package into driver 2015-11-04 16:53:27 -08:00