2015-09-01 21:56:42 +00:00
|
|
|
package driver
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
"os"
|
2015-09-08 19:43:02 +00:00
|
|
|
|
|
|
|
"github.com/hashicorp/nomad/client/config"
|
2015-09-01 21:56:42 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func testLogger() *log.Logger {
|
|
|
|
return log.New(os.Stderr, "", log.LstdFlags)
|
|
|
|
}
|
2015-09-08 19:43:02 +00:00
|
|
|
|
|
|
|
func testConfig() *config.Config {
|
|
|
|
return &config.Config{}
|
|
|
|
}
|
2015-09-10 01:38:52 +00:00
|
|
|
|
|
|
|
func testDriverContext() *DriverContext {
|
|
|
|
cfg := testConfig()
|
|
|
|
ctx := NewDriverContext(cfg, cfg.Node, testLogger())
|
|
|
|
return ctx
|
|
|
|
}
|