mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-01-10 08:42:55 -05:00
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:
parent
6d936c58d9
commit
3b904484f4
2 changed files with 3 additions and 3 deletions
|
|
@ -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"),
|
||||
),
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
data "docker_image" "foo" {
|
||||
name = "busybox:1.35.0"
|
||||
name = "busybox:1.34.0"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue