@@ -33,20 +33,25 @@ func TestAccComputeRegionSslCertificate_regionSslCertificateBasicExample(t *test
3333
3434 resource .Test (t , resource.TestCase {
3535 PreCheck : func () { testAccPreCheck (t ) },
36- Providers : testAccProvidersOiCS ,
36+ Providers : testAccProviders ,
3737 CheckDestroy : testAccCheckComputeRegionSslCertificateDestroy ,
3838 Steps : []resource.TestStep {
3939 {
4040 Config : testAccComputeRegionSslCertificate_regionSslCertificateBasicExample (context ),
4141 },
42+ {
43+ ResourceName : "google_compute_region_ssl_certificate.default" ,
44+ ImportState : true ,
45+ ImportStateVerify : true ,
46+ ImportStateVerifyIgnore : []string {"private_key" , "name_prefix" },
47+ },
4248 },
4349 })
4450}
4551
4652func testAccComputeRegionSslCertificate_regionSslCertificateBasicExample (context map [string ]interface {}) string {
4753 return Nprintf (`
4854resource "google_compute_region_ssl_certificate" "default" {
49- provider = google-beta
5055 region = "us-central1"
5156 name_prefix = "my-certificate-"
5257 description = "a description"
@@ -69,12 +74,18 @@ func TestAccComputeRegionSslCertificate_regionSslCertificateRandomProviderExampl
6974
7075 resource .Test (t , resource.TestCase {
7176 PreCheck : func () { testAccPreCheck (t ) },
72- Providers : testAccProvidersOiCS ,
77+ Providers : testAccProviders ,
7378 CheckDestroy : testAccCheckComputeRegionSslCertificateDestroy ,
7479 Steps : []resource.TestStep {
7580 {
7681 Config : testAccComputeRegionSslCertificate_regionSslCertificateRandomProviderExample (context ),
7782 },
83+ {
84+ ResourceName : "google_compute_region_ssl_certificate.default" ,
85+ ImportState : true ,
86+ ImportStateVerify : true ,
87+ ImportStateVerifyIgnore : []string {"private_key" },
88+ },
7889 },
7990 })
8091}
@@ -83,7 +94,6 @@ func testAccComputeRegionSslCertificate_regionSslCertificateRandomProviderExampl
8394 return Nprintf (`
8495# You may also want to control name generation explicitly:
8596resource "google_compute_region_ssl_certificate" "default" {
86- provider = google-beta
8797 region = "us-central1"
8898
8999 # The name will contain 8 random hex digits,
0 commit comments