Commit Graph

47 Commits

Author SHA1 Message Date
Alex Dadgar
dccbc0320b Fix tests 2016-01-11 09:58:31 -08:00
Alex Dadgar
9f44780f89 User specifiable kill timeout and operator configurable max 2015-12-22 16:10:30 -08:00
Chris Hines
ffda9d71d4 Speed up tests by allowing parallel execution. 2015-11-25 15:56:55 -05:00
Chris Bednarski
fc95a3c9dc Fix some issues caught by go vet 2015-11-20 16:01:27 -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
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
62a0c5d14c Rebase 2015-11-18 12:30:35 -08:00
Alex Dadgar
ee1887e609 Rebase 2015-11-18 12:29:04 -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
2024cb8f94 Change DNS and DNSSearch to use lists; added a test 2015-11-17 22:02:23 -08:00
Chris Bednarski
673ce8ad70 Merge branch 'master' into f-docker-dns-config 2015-11-17 21:43:04 -08:00
Chris Bednarski
bd06a84cc9 Change dns_servers and dns_search_domains from comma-delimited strings to lists 2015-11-17 21:41:00 -08:00
Chris Bednarski
02e59fe622 Fix guards for docker port mapping and change dummy dynamic ports to real ports (0 is not a valid port) 2015-11-17 19:21:36 -08:00
Antonio Fernández
1e1be3c082 allow to set labels on docker containers 2015-11-17 14:12:49 +01: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
0d69778873 Fixed compilation issues with driver tests 2015-11-16 13:10:57 -08:00
Chris Bednarski
9fd9e33766 Added some comments to the test to explain why we're doing stuff this way 2015-11-10 17:48:06 -08:00
Chris Bednarski
fdd21d3001 Change dockerIs* to accept *testing.T for logging 2015-11-10 17:43:08 -08:00
Chris Bednarski
acb8f1debd Changed behavior for Docker ENV
- Docker ENV variables now work the same way in production, dev, and test
- Docker ENV variables are *ignored* if docker.endpoint is present in the Nomad config file
- Remote tests now work correctly
2015-11-10 15:54:31 -08:00
Alex Dadgar
5bf2ad0261 Docker alloc dir tests and test fixes 2015-10-15 16:59:08 -07:00
Alex Dadgar
5a0551aed9 Change Docker/Rkt to set driver to 1 not true for consistency 2015-10-12 13:15:37 -07:00
Chris Bednarski
d7023f8f71 Merge branch 'master' into b-docker-port 2015-10-06 17:54:32 -07:00
Chris Bednarski
f3b5d553ad Support boot2docker or VM for dev/test 2015-10-06 17:53:05 -07:00
Chris Bednarski
2801e7d1e1 Fingerprint test should now behave correctly when the executor is not installed; fix some go vet issues 2015-10-06 16:33:02 -07:00
Chris Bednarski
629a56ee70 This is needed for 1.4.2 compat; not sure what removed it 2015-10-06 00:32:34 -07:00
Chris Bednarski
28fef04b64 Add skip detection for all docker tests 2015-10-06 00:27:05 -07:00
Alex Dadgar
5294330cf7 go-fmt 2015-10-02 10:54:04 -07:00
Abhishek Chanda
ee2cd3bed0 Enable setting networking mode for docker
This patch enables setting networking mode for the docker
driver. This does not handle the `container` mode.
Closes #175
2015-10-01 18:52:41 -07:00
Chris Bednarski
6c5ddb3076 Docker kill now exits with an error, as expected 2015-09-25 22:43:19 -07:00
Chris Bednarski
784d0e9e15 Go native for docker API calls 2015-09-25 20:01:03 -07:00
Chris Bednarski
723b55c049 Merge branch 'master' into b-docker-fixes
Conflicts:
	client/driver/docker_test.go
	client/driver/java_test.go
	client/driver/qemu_test.go
2015-09-25 18:35:23 -07:00
Chris Bednarski
0f6e60c7aa Added a failing test case for multiple docker tags 2015-09-25 17:38:07 -07:00
Chris Bednarski
6b59a8235e Added docker test to spin up 3 containers at the same time 2015-09-25 17:35:33 -07:00
Chris Bednarski
f2dd5cac18 Added guards to tests so we can more gracefully degrade the test suite when thing are not installed 2015-09-25 16:49:26 -07:00
Chris Bednarski
559462b49f Added basic resources to exec/java tests so each test has cpu, ram, and network 2015-09-25 16:49:18 -07:00
Alex Dadgar
8a5e65e27a Merge qemu test 2015-09-25 16:49:14 -07:00
Chris Bednarski
6445e14755 Merge branch 'f-driver-config' into f-docker-resource-constraints 2015-09-09 18:47:35 -07:00
Chris Bednarski
0e00b5fbf7 Updated Qemu and tests to use DriverContext 2015-09-09 18:38:52 -07:00
Chris Bednarski
92ca9c4679 Added preliminary resource constraints for docker; CPU and Memory 2015-09-09 01:08:31 -07:00
Chris Bednarski
f911a24837 Added config to drivers; needed for docker driver to get the socket endpoint 2015-09-08 12:43:02 -07:00
Chris Bednarski
cedd26851e Added tests for docker, improved logging, and fixed a few bugs 2015-09-03 21:00:16 -07:00