Browse code

remove test api images history integration cli test suite

Signed-off-by: Abubacarr Ceesay <abubacarr671@gmail.com>

Abubacarr Ceesay authored on 2025/07/12 02:03:19
Showing 1 changed files
... ...
@@ -61,32 +61,6 @@ func (s *DockerAPISuite) TestAPIImagesDelete(c *testing.T) {
61 61
 	assert.NilError(c, err)
62 62
 }
63 63
 
64
-func (s *DockerAPISuite) TestAPIImagesHistory(c *testing.T) {
65
-	apiClient, err := client.NewClientWithOpts(client.FromEnv)
66
-	assert.NilError(c, err)
67
-	defer apiClient.Close()
68
-
69
-	if testEnv.DaemonInfo.OSType != "windows" {
70
-		testRequires(c, Network)
71
-	}
72
-	name := "test-api-images-history"
73
-	buildImageSuccessfully(c, name, build.WithDockerfile("FROM busybox\nENV FOO bar"))
74
-	id := getIDByName(c, name)
75
-
76
-	historydata, err := apiClient.ImageHistory(testutil.GetContext(c), id)
77
-	assert.NilError(c, err)
78
-
79
-	assert.Assert(c, len(historydata) != 0)
80
-	var found bool
81
-	for _, tag := range historydata[0].Tags {
82
-		if tag == "test-api-images-history:latest" {
83
-			found = true
84
-			break
85
-		}
86
-	}
87
-	assert.Assert(c, found)
88
-}
89
-
90 64
 func (s *DockerAPISuite) TestAPIImagesImportBadSrc(c *testing.T) {
91 65
 	testRequires(c, Network, testEnv.IsLocalDaemon)
92 66