github.com/ilhicas/nomad@v0.11.8/drivers/docker/driver_windows_test.go (about)

     1  // +build windows
     2  
     3  package docker
     4  
     5  import (
     6  	"testing"
     7  
     8  	"github.com/hashicorp/nomad/client/allocdir"
     9  )
    10  
    11  func newTaskConfig(variant string, command []string) TaskConfig {
    12  	// busyboxImageID is an id of an image containing nanoserver windows and
    13  	// a busybox exe.
    14  	busyboxImageID := "hashicorpnomad/busybox-windows:server2016-0.1"
    15  
    16  	return TaskConfig{
    17  		Image:   busyboxImageID,
    18  		Command: command[0],
    19  		Args:    command[1:],
    20  	}
    21  }
    22  
    23  // No-op on windows because we don't load images.
    24  func copyImage(t *testing.T, taskDir *allocdir.TaskDir, image string) {
    25  }