From ec0867840fdaf5bb42f2db4a51817c7d8c055d6d Mon Sep 17 00:00:00 2001 From: Shi Han NG Date: Thu, 9 Aug 2018 08:45:13 +0900 Subject: [PATCH] add import test for github_organization_project --- ...esource_github_organization_project_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/github/resource_github_organization_project_test.go b/github/resource_github_organization_project_test.go index 2594f54449..ee3a72b885 100644 --- a/github/resource_github_organization_project_test.go +++ b/github/resource_github_organization_project_test.go @@ -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