mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-06 18:51:13 +00:00
29 lines
647 B
Go
29 lines
647 B
Go
|
package google
|
||
|
|
||
|
import (
|
||
|
"github.com/hashicorp/terraform/helper/resource"
|
||
|
"os"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestAccGoogleOrganizationPolicy_import(t *testing.T) {
|
||
|
skipIfEnvNotSet(t, "GOOGLE_ORG")
|
||
|
org := os.Getenv("GOOGLE_ORG")
|
||
|
|
||
|
resource.Test(t, resource.TestCase{
|
||
|
PreCheck: func() { testAccPreCheck(t) },
|
||
|
Providers: testAccProviders,
|
||
|
CheckDestroy: testAccCheckGoogleOrganizationPolicyDestroy,
|
||
|
Steps: []resource.TestStep{
|
||
|
{
|
||
|
Config: testAccGoogleOrganizationPolicy_list_allowAll(org),
|
||
|
},
|
||
|
{
|
||
|
ResourceName: "google_organization_policy.listAll",
|
||
|
ImportState: true,
|
||
|
ImportStateVerify: true,
|
||
|
},
|
||
|
},
|
||
|
})
|
||
|
}
|