From 52e3fff828daee2c747ef8d14682bcfea73badbc Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sun, 21 Jan 2024 15:37:03 +0100 Subject: [PATCH] integration-cli: TestPutContainerArchiveErrSymlinkInVolumeToReadOnlyRootfs: use current API This test was added in 75f6929b449a59335572436862d644afacf55cdb, but pinned to the API version that was current at the time (v1.20), which is now deprecated. Update the test to use the current API version. Signed-off-by: Sebastiaan van Stijn --- integration-cli/docker_api_containers_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-cli/docker_api_containers_test.go b/integration-cli/docker_api_containers_test.go index 8a304fde2e..c6a0048c5b 100644 --- a/integration-cli/docker_api_containers_test.go +++ b/integration-cli/docker_api_containers_test.go @@ -1287,7 +1287,7 @@ func (s *DockerAPISuite) TestPutContainerArchiveErrSymlinkInVolumeToReadOnlyRoot // Attempt to extract to a symlink in the volume which points to a // directory outside the volume. This should cause an error because the // rootfs is read-only. - apiClient, err := client.NewClientWithOpts(client.FromEnv, client.WithVersion("v1.20")) + apiClient, err := client.NewClientWithOpts(client.FromEnv) assert.NilError(c, err) err = apiClient.CopyToContainer(testutil.GetContext(c), cID, "/vol2/symlinkToAbsDir", nil, types.CopyToContainerOptions{})