open-nomad/drivers/docker/driver_windows_test.go

27 lines
609 B
Go
Raw Normal View History

// +build windows
package docker
import (
"testing"
"github.com/hashicorp/nomad/client/allocdir"
)
func newTaskConfig(variant string, command []string) TaskConfig {
2019-01-14 13:17:41 +00:00
// busyboxImageID is an id of an image containing nanoserver windows and
// a busybox exe.
busyboxImageID := "hashicorpnomad/busybox-windows:server2016-0.1"
return TaskConfig{
Image: busyboxImageID,
ImagePullTimeout: "5m",
Command: command[0],
Args: command[1:],
}
}
2019-01-16 14:06:39 +00:00
// No-op on windows because we don't load images.
func copyImage(t *testing.T, taskDir *allocdir.TaskDir, image string) {
}