@@ -10,6 +10,7 @@ import (
1010 "testing"
1111
1212 "github.com/docker/docker/api/types"
13+ containertypes "github.com/docker/docker/api/types/container"
1314 "github.com/docker/docker/errdefs"
1415 "github.com/docker/docker/integration/internal/container"
1516 "github.com/docker/docker/pkg/archive"
@@ -54,7 +55,7 @@ func TestCopyToContainerPathDoesNotExist(t *testing.T) {
5455 apiClient := testEnv .APIClient ()
5556 cid := container .Create (ctx , t , apiClient )
5657
57- err := apiClient .CopyToContainer (ctx , cid , "/dne" , nil , types .CopyToContainerOptions {})
58+ err := apiClient .CopyToContainer (ctx , cid , "/dne" , nil , containertypes .CopyToContainerOptions {})
5859 assert .Check (t , is .ErrorType (err , errdefs .IsNotFound ))
5960 assert .Check (t , is .ErrorContains (err , "Could not find the file /dne in container " + cid ))
6061}
@@ -67,17 +68,17 @@ func TestCopyEmptyFile(t *testing.T) {
6768
6869 // empty content
6970 dstDir , _ := makeEmptyArchive (t )
70- err := apiClient .CopyToContainer (ctx , cid , dstDir , bytes .NewReader ([]byte ("" )), types .CopyToContainerOptions {})
71+ err := apiClient .CopyToContainer (ctx , cid , dstDir , bytes .NewReader ([]byte ("" )), containertypes .CopyToContainerOptions {})
7172 assert .NilError (t , err )
7273
7374 // tar with empty file
7475 dstDir , preparedArchive := makeEmptyArchive (t )
75- err = apiClient .CopyToContainer (ctx , cid , dstDir , preparedArchive , types .CopyToContainerOptions {})
76+ err = apiClient .CopyToContainer (ctx , cid , dstDir , preparedArchive , containertypes .CopyToContainerOptions {})
7677 assert .NilError (t , err )
7778
7879 // tar with empty file archive mode
7980 dstDir , preparedArchive = makeEmptyArchive (t )
80- err = apiClient .CopyToContainer (ctx , cid , dstDir , preparedArchive , types .CopyToContainerOptions {
81+ err = apiClient .CopyToContainer (ctx , cid , dstDir , preparedArchive , containertypes .CopyToContainerOptions {
8182 CopyUIDGID : true ,
8283 })
8384 assert .NilError (t , err )
@@ -125,7 +126,7 @@ func TestCopyToContainerPathIsNotDir(t *testing.T) {
125126 if testEnv .DaemonInfo .OSType == "windows" {
126127 path = "c:/windows/system32/drivers/etc/hosts/"
127128 }
128- err := apiClient .CopyToContainer (ctx , cid , path , nil , types .CopyToContainerOptions {})
129+ err := apiClient .CopyToContainer (ctx , cid , path , nil , containertypes .CopyToContainerOptions {})
129130 assert .Check (t , is .ErrorContains (err , "not a directory" ))
130131}
131132
0 commit comments