mirror of https://github.com/hashicorp/terraform
provider/pagerduty: Import support for service integrations (#12141)
* Remove custom imports * Add import support for service integrationspull/12214/head
parent
cd56e6f071
commit
229a1343b4
@ -0,0 +1,28 @@
|
||||
package pagerduty
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/hashicorp/terraform/helper/resource"
|
||||
)
|
||||
|
||||
func TestAccPagerDutyServiceIntegration_import(t *testing.T) {
|
||||
resourceName := "pagerduty_service_integration.foo"
|
||||
|
||||
resource.Test(t, resource.TestCase{
|
||||
PreCheck: func() { testAccPreCheck(t) },
|
||||
Providers: testAccProviders,
|
||||
CheckDestroy: testAccCheckPagerDutyServiceIntegrationDestroy,
|
||||
Steps: []resource.TestStep{
|
||||
resource.TestStep{
|
||||
Config: testAccCheckPagerDutyServiceIntegrationConfig,
|
||||
},
|
||||
|
||||
resource.TestStep{
|
||||
ResourceName: resourceName,
|
||||
ImportState: true,
|
||||
ImportStateVerify: true,
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
Loading…
Reference in new issue