terraform/builtin/providers/aws/resource_aws_ebs_volume_tes...

27 lines
468 B
Go
Raw Normal View History

package aws
import (
"testing"
"github.com/hashicorp/terraform/helper/resource"
)
2015-05-06 16:20:40 +02:00
func TestAccAWSEBSVolume(t *testing.T) {
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
resource.TestStep{
Config: testAccAwsEbsVolumeConfig,
},
},
})
}
const testAccAwsEbsVolumeConfig = `
resource "aws_ebs_volume" "test" {
availability_zone = "us-west-2a"
size = 1
}
`