@@ -27,9 +27,10 @@ func TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityBasicExam
27
27
t .Parallel ()
28
28
29
29
context := map [string ]interface {}{
30
- "pool_name" : BootstrapSharedCaPoolInLocation (t , "us-central1" ),
31
- "pool_location" : "us-central1" ,
32
- "random_suffix" : randString (t , 10 ),
30
+ "pool_name" : BootstrapSharedCaPoolInLocation (t , "us-central1" ),
31
+ "pool_location" : "us-central1" ,
32
+ "deletion_protection" : false ,
33
+ "random_suffix" : randString (t , 10 ),
33
34
}
34
35
35
36
vcrTest (t , resource.TestCase {
@@ -44,7 +45,7 @@ func TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityBasicExam
44
45
ResourceName : "google_privateca_certificate_authority.default" ,
45
46
ImportState : true ,
46
47
ImportStateVerify : true ,
47
- ImportStateVerifyIgnore : []string {"ignore_active_certificates_on_deletion" , "location" , "certificate_authority_id" , "pool" },
48
+ ImportStateVerifyIgnore : []string {"ignore_active_certificates_on_deletion" , "location" , "certificate_authority_id" , "pool" , "deletion_protection" },
48
49
},
49
50
},
50
51
})
@@ -58,6 +59,7 @@ resource "google_privateca_certificate_authority" "default" {
58
59
pool = "%{pool_name}"
59
60
certificate_authority_id = "tf-test-my-certificate-authority%{random_suffix}"
60
61
location = "%{pool_location}"
62
+ deletion_protection = "%{deletion_protection}"
61
63
config {
62
64
subject_config {
63
65
subject {
@@ -106,9 +108,10 @@ func TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordina
106
108
t .Parallel ()
107
109
108
110
context := map [string ]interface {}{
109
- "pool_name" : BootstrapSharedCaPoolInLocation (t , "us-central1" ),
110
- "pool_location" : "us-central1" ,
111
- "random_suffix" : randString (t , 10 ),
111
+ "pool_name" : BootstrapSharedCaPoolInLocation (t , "us-central1" ),
112
+ "pool_location" : "us-central1" ,
113
+ "deletion_protection" : false ,
114
+ "random_suffix" : randString (t , 10 ),
112
115
}
113
116
114
117
vcrTest (t , resource.TestCase {
@@ -123,7 +126,7 @@ func TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordina
123
126
ResourceName : "google_privateca_certificate_authority.default" ,
124
127
ImportState : true ,
125
128
ImportStateVerify : true ,
126
- ImportStateVerifyIgnore : []string {"ignore_active_certificates_on_deletion" , "location" , "certificate_authority_id" , "pool" },
129
+ ImportStateVerifyIgnore : []string {"ignore_active_certificates_on_deletion" , "location" , "certificate_authority_id" , "pool" , "deletion_protection" },
127
130
},
128
131
},
129
132
})
@@ -137,6 +140,7 @@ resource "google_privateca_certificate_authority" "default" {
137
140
pool = "%{pool_name}"
138
141
certificate_authority_id = "tf-test-my-certificate-authority%{random_suffix}"
139
142
location = "%{pool_location}"
143
+ deletion_protection = "%{deletion_protection}"
140
144
config {
141
145
subject_config {
142
146
subject {
0 commit comments