|  | 
| 7 | 7 | 	"fmt" | 
| 8 | 8 | 	"io/ioutil" | 
| 9 | 9 | 	"os" | 
|  | 10 | +	"path/filepath" | 
| 10 | 11 | 	"reflect" | 
| 11 | 12 | 	"regexp" | 
| 12 | 13 | 	"strconv" | 
| @@ -35,7 +36,7 @@ func TestAccDockerContainer_private_image(t *testing.T) { | 
| 35 | 36 | 	registry := "127.0.0.1:15000" | 
| 36 | 37 | 	image := "127.0.0.1:15000/tftest-service:v1" | 
| 37 | 38 | 	wd, _ := os.Getwd() | 
| 38 |  | -	dockerConfig := wd + "/../../scripts/testing/dockerconfig.json" | 
|  | 39 | +	dockerConfig := strings.ReplaceAll(filepath.Join(wd, "..", "..", "scripts", "testing", "dockerconfig.json"), "\\", "\\\\") | 
| 39 | 40 | 	ctx := context.Background() | 
| 40 | 41 | 
 | 
| 41 | 42 | 	var c types.ContainerJSON | 
| @@ -741,7 +742,7 @@ func TestAccDockerContainer_uploadSource(t *testing.T) { | 
| 741 | 742 | 	ctx := context.Background() | 
| 742 | 743 | 
 | 
| 743 | 744 | 	wd, _ := os.Getwd() | 
| 744 |  | -	testFile := wd + "/../../scripts/testing/testingFile" | 
|  | 745 | +	testFile := strings.ReplaceAll(filepath.Join(wd, "..", "..", "scripts", "testing", "testingFile"), "\\", "\\\\") | 
| 745 | 746 | 	testFileContent, _ := ioutil.ReadFile(testFile) | 
| 746 | 747 | 
 | 
| 747 | 748 | 	testCheck := func(*terraform.State) error { | 
| @@ -806,7 +807,7 @@ func TestAccDockerContainer_uploadSourceHash(t *testing.T) { | 
| 806 | 807 | 	var firstRunId string | 
| 807 | 808 | 
 | 
| 808 | 809 | 	wd, _ := os.Getwd() | 
| 809 |  | -	testFile := wd + "/../../scripts/testing/testingFile" | 
|  | 810 | +	testFile := strings.ReplaceAll(filepath.Join(wd, "..", "..", "scripts", "testing", "testingFile"), "\\", "\\\\") | 
| 810 | 811 | 	hash, _ := ioutil.ReadFile(testFile + ".base64") | 
| 811 | 812 | 	grabFirstCheck := func(*terraform.State) error { | 
| 812 | 813 | 		firstRunId = c.ID | 
| @@ -1909,7 +1910,7 @@ resource "docker_image" "foo" { | 
| 1909 | 1910 | resource "docker_container" "foo" { | 
| 1910 | 1911 | 	name = "tf-test" | 
| 1911 | 1912 | 	image = docker_image.foo.latest | 
| 1912 |  | -	entrypoint = ["/bin/bash", "-c", "ping localhost"] | 
|  | 1913 | +	entrypoint = ["/bin/bash", "-c", "cat /proc/kmsg"] | 
| 1913 | 1914 | 	user = "root:root" | 
| 1914 | 1915 | 	restart = "on-failure" | 
| 1915 | 1916 | 	destroy_grace_seconds = 10 | 
|  | 
0 commit comments