open-nomad/drivers/docker/driver_windows_test.go
2020-05-15 10:15:37 -04:00

26 lines
547 B
Go

// +build windows
package docker
import (
"testing"
"github.com/hashicorp/nomad/client/allocdir"
)
func newTaskConfig(variant string, command []string) TaskConfig {
// busyboxImageID is an id of an image containing nanoserver windows and
// a busybox exe.
busyboxImageID := "stefanscherer/busybox-windows:latest"
return TaskConfig{
Image: busyboxImageID,
Command: command[0],
Args: command[1:],
}
}
// No-op on windows because we don't load images.
func copyImage(t *testing.T, taskDir *allocdir.TaskDir, image string) {
}