Added config to drivers; needed for docker driver to get the socket endpoint

This commit is contained in:
Chris Bednarski
2015-09-08 12:43:02 -07:00
parent 6fed1ba76a
commit f911a24837
10 changed files with 42 additions and 22 deletions

View File

@@ -10,7 +10,7 @@ import (
)
func TestJavaDriver_Fingerprint(t *testing.T) {
d := NewJavaDriver(testLogger())
d := NewJavaDriver(testLogger(), testConfig())
node := &structs.Node{
Attributes: make(map[string]string),
}
@@ -34,7 +34,7 @@ func TestJavaDriver_Fingerprint(t *testing.T) {
func TestJavaDriver_StartOpen_Wait(t *testing.T) {
ctx := NewExecContext()
ctx.AllocDir = os.TempDir()
d := NewJavaDriver(testLogger())
d := NewJavaDriver(testLogger(), testConfig())
task := &structs.Task{
Config: map[string]string{
@@ -71,7 +71,7 @@ func TestJavaDriver_StartOpen_Wait(t *testing.T) {
func TestJavaDriver_Start_Wait(t *testing.T) {
ctx := NewExecContext()
ctx.AllocDir = os.TempDir()
d := NewJavaDriver(testLogger())
d := NewJavaDriver(testLogger(), testConfig())
task := &structs.Task{
Config: map[string]string{
@@ -109,7 +109,7 @@ func TestJavaDriver_Start_Wait(t *testing.T) {
func TestJavaDriver_Start_Kill_Wait(t *testing.T) {
ctx := NewExecContext()
ctx.AllocDir = os.TempDir()
d := NewJavaDriver(testLogger())
d := NewJavaDriver(testLogger(), testConfig())
task := &structs.Task{
Config: map[string]string{