From 4ffe77ec054579b116000ae659ff120e53d509bc Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Tue, 20 Jul 2021 12:04:10 +0200 Subject: [PATCH] update test constants --- .../docker/client/DockerImageIntegrationSpec.groovy | 9 +++------ .../de/gesellix/docker/client/TestConstants.groovy | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/integration-test/src/test/groovy/de/gesellix/docker/client/DockerImageIntegrationSpec.groovy b/integration-test/src/test/groovy/de/gesellix/docker/client/DockerImageIntegrationSpec.groovy index 64fb8ed2..0510ff30 100644 --- a/integration-test/src/test/groovy/de/gesellix/docker/client/DockerImageIntegrationSpec.groovy +++ b/integration-test/src/test/groovy/de/gesellix/docker/client/DockerImageIntegrationSpec.groovy @@ -593,12 +593,9 @@ class DockerImageIntegrationSpec extends Specification { def history = dockerClient.history(imageId).content then: - history.collect { it.Id } == [ - CONSTANTS.imageDigest, - "", - "", - "" - ] + List imageIds = history.collect { it.Id } + imageIds.first() == CONSTANTS.imageDigest + imageIds.last() == "" } def "list images"() { diff --git a/integration-test/src/test/groovy/de/gesellix/docker/client/TestConstants.groovy b/integration-test/src/test/groovy/de/gesellix/docker/client/TestConstants.groovy index f28e5d7b..aacfcd8a 100644 --- a/integration-test/src/test/groovy/de/gesellix/docker/client/TestConstants.groovy +++ b/integration-test/src/test/groovy/de/gesellix/docker/client/TestConstants.groovy @@ -16,8 +16,8 @@ class TestConstants { if (LocalDocker.isNativeWindows()) { imageRepo = "gesellix/testimage" imageTag = "os-windows" - imageDigest = "sha256:5880c6a3a386d67cd02b0ee4684709f9c966225270e97e0396157894ae74dbe6" - imageCreated = 1575214105 + imageDigest = "sha256:21ef7773618aed0ad91c8171698f8ad75ae5927fb8e68b444e9c716cb6450447" + imageCreated = 1625426527 } else { imageRepo = "gesellix/testimage"