mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
remove test api images history integration cli test suite
Signed-off-by: Abubacarr Ceesay <abubacarr671@gmail.com>
(cherry picked from commit 669163c416)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
committed by
Paweł Gronowski
parent
a8914649d8
commit
43a614bec0
@@ -61,32 +61,6 @@ func (s *DockerAPISuite) TestAPIImagesDelete(c *testing.T) {
|
||||
assert.NilError(c, err)
|
||||
}
|
||||
|
||||
func (s *DockerAPISuite) TestAPIImagesHistory(c *testing.T) {
|
||||
apiClient, err := client.NewClientWithOpts(client.FromEnv)
|
||||
assert.NilError(c, err)
|
||||
defer apiClient.Close()
|
||||
|
||||
if testEnv.DaemonInfo.OSType != "windows" {
|
||||
testRequires(c, Network)
|
||||
}
|
||||
name := "test-api-images-history"
|
||||
buildImageSuccessfully(c, name, build.WithDockerfile("FROM busybox\nENV FOO bar"))
|
||||
id := getIDByName(c, name)
|
||||
|
||||
historydata, err := apiClient.ImageHistory(testutil.GetContext(c), id)
|
||||
assert.NilError(c, err)
|
||||
|
||||
assert.Assert(c, len(historydata) != 0)
|
||||
var found bool
|
||||
for _, tag := range historydata[0].Tags {
|
||||
if tag == "test-api-images-history:latest" {
|
||||
found = true
|
||||
break
|
||||
}
|
||||
}
|
||||
assert.Assert(c, found)
|
||||
}
|
||||
|
||||
func (s *DockerAPISuite) TestAPIImagesImportBadSrc(c *testing.T) {
|
||||
testRequires(c, Network, testEnv.IsLocalDaemon)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user