fix: Pin data source specific tag test to older tag.

The new one gets constantly a new sha that's why tests always fail.
This commit is contained in:
Martin Wentzel 2022-12-16 15:17:35 +01:00
parent 6d936c58d9
commit 3b904484f4
2 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ var imageNameWithTagAndDigestRegexp = regexp.MustCompile(`^.*:.*@sha256:[A-Fa-f0
func TestAccDockerImageDataSource_withSpecificTag(t *testing.T) {
ctx := context.Background()
imageName := "busybox:1.35.0"
imageName := "busybox:1.34.0"
resource.Test(t, resource.TestCase{
PreCheck: func() {
@ -32,7 +32,7 @@ func TestAccDockerImageDataSource_withSpecificTag(t *testing.T) {
Config: loadTestConfiguration(t, DATA_SOURCE, "docker_image", "testAccDockerImageDataSourceWithSpecificTag"),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("data.docker_image.foo", "name", imageName),
resource.TestCheckResourceAttr("data.docker_image.foo", "repo_digest", "busybox@sha256:ec6dc15985db1ffc5dc2b341c7bb2337cc4b54692213b41bb5647b584ebc5f6c"),
resource.TestCheckResourceAttr("data.docker_image.foo", "repo_digest", "busybox@sha256:e8e5cca392e3cf056fcdb3093e7ac2bf83fcf28b3bcf5818fe8ae71cf360c231"),
),
},
},

View file

@ -1,3 +1,3 @@
data "docker_image" "foo" {
name = "busybox:1.35.0"
name = "busybox:1.34.0"
}