github.com/i0n/terraform@v0.4.3-0.20150506151324-010a39a58ec1/builtin/providers/aws/resource_aws_ebs_volume_test.go (about) 1 package aws 2 3 import ( 4 "testing" 5 6 "github.com/hashicorp/terraform/helper/resource" 7 ) 8 9 func TestAccAWSEBSVolume(t *testing.T) { 10 resource.Test(t, resource.TestCase{ 11 PreCheck: func() { testAccPreCheck(t) }, 12 Providers: testAccProviders, 13 Steps: []resource.TestStep{ 14 resource.TestStep{ 15 Config: testAccAwsEbsVolumeConfig, 16 }, 17 }, 18 }) 19 } 20 21 const testAccAwsEbsVolumeConfig = ` 22 resource "aws_ebs_volume" "test" { 23 availability_zone = "us-west-2a" 24 size = 1 25 } 26 `