Skip to content

Commit

Permalink
add import test for github_organization_project
Browse files Browse the repository at this point in the history
  • Loading branch information
shihanng committed Aug 9, 2018
1 parent 0680ca1 commit ec08678
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions github/resource_github_organization_project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,24 @@ func TestAccGithubOrganizationProject_basic(t *testing.T) {
})
}

func TestAccGithubOrganizationProject_importBasic(t *testing.T) {
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccGithubOrganizationProjectDestroy,
Steps: []resource.TestStep{
{
Config: testAccGithubOrganizationProjectConfig,
},
{
ResourceName: "github_organization_project.test",
ImportState: true,
ImportStateVerify: true,
},
},
})
}

func testAccGithubOrganizationProjectDestroy(s *terraform.State) error {
conn := testAccProvider.Meta().(*Organization).client

Expand Down

0 comments on commit ec08678

Please sign in to comment.