Skip to content

Commit 4ce6455

Browse files
committed
provider/docker: Refer to a tag instead of latest
This should make tests more stable going forward. Also switch out the image used from Ubuntu to Alpine Linux to reduce required download size during test runs.
1 parent 9e07b22 commit 4ce6455

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

builtin/providers/docker/resource_docker_image_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func TestAccDockerImage_basic(t *testing.T) {
1717
resource.TestCheckResourceAttr(
1818
"docker_image.foo",
1919
"latest",
20-
"d52aff8195301dba95e8e3d14f0c3738a874237afd54233d250a2fc4489bfa83"),
20+
"8dd8107abd2e22bfd3b45b05733f3d2677d4078b09b5edce56ee3d8677d3c648"),
2121
),
2222
},
2323
},
@@ -44,8 +44,8 @@ func TestAddDockerImage_private(t *testing.T) {
4444

4545
const testAccDockerImageConfig = `
4646
resource "docker_image" "foo" {
47-
name = "ubuntu:trusty-20150320"
48-
keep_updated = true
47+
name = "alpine:3.1"
48+
keep_updated = false
4949
}
5050
`
5151

0 commit comments

Comments
 (0)