2016-06-28 17:05:03 +02:00
|
|
|
package aws
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2017-02-09 16:18:31 +01:00
|
|
|
"github.com/hashicorp/terraform/helper/acctest"
|
2016-06-28 17:05:03 +02:00
|
|
|
"github.com/hashicorp/terraform/helper/resource"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestAccAWSRedshiftParameterGroup_importBasic(t *testing.T) {
|
|
|
|
resourceName := "aws_redshift_parameter_group.bar"
|
2017-02-09 16:18:31 +01:00
|
|
|
rInt := acctest.RandInt()
|
2016-06-28 17:05:03 +02:00
|
|
|
|
|
|
|
resource.Test(t, resource.TestCase{
|
|
|
|
PreCheck: func() { testAccPreCheck(t) },
|
|
|
|
Providers: testAccProviders,
|
|
|
|
CheckDestroy: testAccCheckAWSRedshiftParameterGroupDestroy,
|
|
|
|
Steps: []resource.TestStep{
|
2017-02-09 16:18:31 +01:00
|
|
|
{
|
|
|
|
Config: testAccAWSRedshiftParameterGroupConfig(rInt),
|
2016-06-28 17:05:03 +02:00
|
|
|
},
|
|
|
|
|
2017-02-09 16:18:31 +01:00
|
|
|
{
|
2016-06-28 17:05:03 +02:00
|
|
|
ResourceName: resourceName,
|
|
|
|
ImportState: true,
|
|
|
|
ImportStateVerify: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|