terraform/builtin/providers/pagerduty/import_pagerduty_service_te...

29 lines
599 B
Go
Raw Normal View History

2016-09-23 21:43:06 +02:00
package pagerduty
import (
"testing"
"github.com/hashicorp/terraform/helper/resource"
)
func TestAccPagerDutyService_import(t *testing.T) {
2016-10-16 16:48:20 +02:00
resourceName := "pagerduty_service.foo"
2016-09-23 21:43:06 +02:00
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckPagerDutyServiceDestroy,
Steps: []resource.TestStep{
resource.TestStep{
2016-10-16 16:48:20 +02:00
Config: testAccCheckPagerDutyServiceConfig,
2016-09-23 21:43:06 +02:00
},
2016-10-16 16:48:20 +02:00
2016-09-23 21:43:06 +02:00
resource.TestStep{
2016-10-16 16:48:20 +02:00
ResourceName: resourceName,
2016-09-23 21:43:06 +02:00
ImportState: true,
2016-10-16 16:48:20 +02:00
ImportStateVerify: true,
2016-09-23 21:43:06 +02:00
},
},
})
}