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.
This commit is contained in:
James Nugent 2015-12-02 15:03:29 -05:00
parent 9e07b22a7e
commit 4ce6455e8a
1 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ func TestAccDockerImage_basic(t *testing.T) {
resource.TestCheckResourceAttr( resource.TestCheckResourceAttr(
"docker_image.foo", "docker_image.foo",
"latest", "latest",
"d52aff8195301dba95e8e3d14f0c3738a874237afd54233d250a2fc4489bfa83"), "8dd8107abd2e22bfd3b45b05733f3d2677d4078b09b5edce56ee3d8677d3c648"),
), ),
}, },
}, },
@ -44,8 +44,8 @@ func TestAddDockerImage_private(t *testing.T) {
const testAccDockerImageConfig = ` const testAccDockerImageConfig = `
resource "docker_image" "foo" { resource "docker_image" "foo" {
name = "ubuntu:trusty-20150320" name = "alpine:3.1"
keep_updated = true keep_updated = false
} }
` `