tests: get consul integration tests building

This commit is contained in:
Michael Schurter 2018-10-31 21:36:15 -07:00
parent 2d3479147a
commit 6bdbfb8129

View file

@ -20,6 +20,8 @@ import (
"github.com/hashicorp/nomad/helper/testlog"
"github.com/hashicorp/nomad/nomad/mock"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/nomad/plugins/shared/catalog"
"github.com/hashicorp/nomad/plugins/shared/singleton"
"github.com/stretchr/testify/require"
)
@ -143,16 +145,18 @@ func TestConsul_Integration(t *testing.T) {
}()
// Build the config
pluginLoader := catalog.TestPluginLoader(t)
config := &taskrunner.Config{
Alloc: alloc,
ClientConfig: conf,
Consul: serviceClient,
Task: task,
TaskDir: taskDir,
Logger: logger,
VaultClient: vclient,
StateDB: state.NoopDB{},
StateUpdater: logUpdate,
Alloc: alloc,
ClientConfig: conf,
Consul: serviceClient,
Task: task,
TaskDir: taskDir,
Logger: logger,
Vault: vclient,
StateDB: state.NoopDB{},
StateUpdater: logUpdate,
PluginSingletonLoader: singleton.NewSingletonLoader(logger, pluginLoader),
}
tr, err := taskrunner.NewTaskRunner(config)