github.com/hernad/nomad@v1.6.112/drivers/docker/driver_windows_test.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  //go:build windows
     5  
     6  package docker
     7  
     8  import (
     9  	"testing"
    10  
    11  	"github.com/hernad/nomad/client/allocdir"
    12  	"github.com/hernad/nomad/testutil"
    13  )
    14  
    15  func newTaskConfig(variant string, command []string) TaskConfig {
    16  	// busyboxImageID is an id of an image containing nanoserver windows and
    17  	// a busybox exe.
    18  	busyboxImageID := testutil.TestBusyboxImage()
    19  
    20  	return TaskConfig{
    21  		Image:            busyboxImageID,
    22  		ImagePullTimeout: "5m",
    23  		Command:          command[0],
    24  		Args:             command[1:],
    25  	}
    26  }
    27  
    28  // No-op on windows because we don't load images.
    29  func copyImage(t *testing.T, taskDir *allocdir.TaskDir, image string) {
    30  }