mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
Added config to drivers; needed for docker driver to get the socket endpoint
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user