terraform/builtin/providers/pagerduty/import_pagerduty_team_test.go

29 lines
587 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 TestAccPagerDutyTeam_import(t *testing.T) {
2016-10-16 16:48:20 +02:00
resourceName := "pagerduty_team.foo"
2016-09-23 21:43:06 +02:00
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckPagerDutyTeamDestroy,
Steps: []resource.TestStep{
resource.TestStep{
2016-10-16 16:48:20 +02:00
Config: testAccCheckPagerDutyTeamConfig,
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,
ImportStateVerify: true,
},
},
})
}