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
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
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
Diptanu Choudhury
27ad0ad253
Making the restart tracker aware of the exit codes
2015-11-23 10:56:38 -08:00
Diptanu Choudhury
29491ad47a
Not restarting if a task exited properly
2015-11-22 23:47:15 -08:00
Alex Dadgar
220f79cefc
Clear consul attributes if consul couldn't be fingerprinted
2015-11-22 13:51:10 -08:00
Alex Dadgar
e898adc78a
Fingerprinter only creates one consul client
2015-11-22 13:42:06 -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
Diptanu Choudhury
b0fe212a01
Merge pull request #479 from hashicorp/r-consul-check
...
Using the service name in the service id so that it's unique
2015-11-20 15:33:57 -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
61aeace69a
Merge pull request #476 from hashicorp/b-docker-expose
...
Fixed some issues with expose, port mapping, and environment variables
2015-11-20 14:24:25 -08:00
Alex Dadgar
6bbc977fe5
Renamed whitelisted to skipped and update debug line
2015-11-20 14:07:35 -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
Diptanu Choudhury
6592483274
Using the service name in the service id so that it's uniq
2015-11-20 10:35:04 -08:00
Chris Bednarski
e5d5d42b13
Added nil to network.MapLabelToValues call
2015-11-19 22:18:19 -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
Alex Dadgar
a8fd3310e8
Tests
2015-11-19 16:43:08 -08:00
Alex Dadgar
5eb8bc25bf
Implement the driver whitelist
2015-11-19 16:39: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
Chris Bednarski
5ecb499d9e
Merge pull request #466 from fernandezvara/fix-docker-port-mappings
...
docker port allocation not mapping correctly
2015-11-19 10:34:54 -08:00
Antonio Fernández
fde90ca2c2
fix docker port allocation?
2015-11-19 19:15:25 +01:00
Alex Dadgar
82bfeb63df
Fix network fingerprint test
2015-11-19 09:22:32 -08:00
Diptanu Choudhury
1e1f5b00f0
Merge pull request #464 from hashicorp/f-consul-check
...
Changing the code comment
2015-11-18 19:35:15 -08:00
Diptanu Choudhury
e0d42e48b9
Changing the code comment
2015-11-18 19:34:50 -08:00
Alex Dadgar
cc93553c02
Merge pull request #463 from hashicorp/f-consul-check
...
Nuking the service and registering it so that checks are cleaned up
2015-11-18 19:34:20 -08:00
Diptanu Choudhury
016a9d5c05
Nuking the service and registering it so that checks are cleaned up
2015-11-18 19:31:29 -08:00
Alex Dadgar
77be23c038
Merge pull request #460 from hashicorp/f-consul-check
...
Making sure we sync the real state of services of a Task with Consul
2015-11-18 19:03:53 -08:00
Alex Dadgar
5e1f7c41a9
Allow no interfaces in network fingerprinter
2015-11-18 19:01:39 -08:00
Diptanu Choudhury
aded72d95d
Triggering the next sync after we have finished the current one
2015-11-18 18:47:12 -08:00
Diptanu Choudhury
27819a8b33
Making sure we sync the real state of services of a Task with Consul
2015-11-18 18:35:22 -08:00
Chris Hines
3fe4d85c81
Handle additional edge cases when parsing environment variables.
2015-11-18 21:21:07 -05:00
Diptanu Choudhury
1aff29bc52
Updating checks and services when allocs are refreshed
2015-11-18 17:33:29 -08:00
Diptanu Choudhury
6c399ac5b9
Added a test to ensure invalid services are not registered
2015-11-18 17:29:12 -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
Diptanu Choudhury
ba8e3fcbae
Merge pull request #455 from hashicorp/f-consul-check
...
Refactor consul check
2015-11-18 14:33:34 -08:00
Diptanu Choudhury
bcfda2687e
Added a check for accpeting protocol information in consul check
2015-11-18 14:29:55 -08:00