2019-01-11 13:28:40 +00:00
|
|
|
// +build windows
|
|
|
|
|
|
|
|
package docker
|
|
|
|
|
|
|
|
import (
|
2019-01-14 12:34:24 +00:00
|
|
|
"testing"
|
2019-01-11 13:28:40 +00:00
|
|
|
|
|
|
|
"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
|
2019-01-11 13:28:40 +00:00
|
|
|
// a busybox exe.
|
2020-05-15 16:20:37 +00:00
|
|
|
busyboxImageID := "stefanscherer/busybox-windows@sha256:af396324c4c62e369a388ebb38d4efd44211dc7c95a438e6feb62b4ae4194c5b"
|
2019-01-11 13:28:40 +00:00
|
|
|
|
|
|
|
return TaskConfig{
|
|
|
|
Image: busyboxImageID,
|
|
|
|
Command: command[0],
|
|
|
|
Args: command[1:],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-16 14:06:39 +00:00
|
|
|
// No-op on windows because we don't load images.
|
2019-01-14 12:34:24 +00:00
|
|
|
func copyImage(t *testing.T, taskDir *allocdir.TaskDir, image string) {
|
2019-01-11 13:28:40 +00:00
|
|
|
}
|