package docker import ( "testing" "github.com/hashicorp/terraform/helper/resource" ) func TestAccDockerImage_basic(t *testing.T) { resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, Steps: []resource.TestStep{ resource.TestStep{ Config: testAccDockerImageConfig, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr( "docker_image.foo", "latest", "b7cf8f0d9e82c9d96bd7afd22c600bfdb86b8d66c50d29164e5ad2fb02f7187b"), ), }, }, }) } const testAccDockerImageConfig = ` resource "docker_image" "foo" { name = "ubuntu:trusty-20150320" keep_updated = true } `