@@ -50,7 +50,10 @@ func TestTeamsRules(t *testing.T) {
5050 "enforce": true,
5151 "duration": "15m0s"
5252 },
53- "insecure_disable_dnssec_validation": false
53+ "insecure_disable_dnssec_validation": false,
54+ "untrusted_cert": {
55+ "action": "error"
56+ }
5457 }
5558 },
5659 {
@@ -78,7 +81,10 @@ func TestTeamsRules(t *testing.T) {
7881 "biso_admin_controls": null,
7982 "add_headers": null,
8083 "check_session": null,
81- "insecure_disable_dnssec_validation": true
84+ "insecure_disable_dnssec_validation": true,
85+ "untrusted_cert": {
86+ "action": "pass_through"
87+ }
8288 }
8389 }
8490 ]
@@ -114,6 +120,9 @@ func TestTeamsRules(t *testing.T) {
114120 Duration : Duration {900 * time .Second },
115121 },
116122 InsecureDisableDNSSECValidation : false ,
123+ UntrustedCertSettings : & UntrustedCertSettings {
124+ Action : UntrustedCertError ,
125+ },
117126 },
118127 CreatedAt : & createdAt ,
119128 UpdatedAt : & updatedAt ,
@@ -142,6 +151,9 @@ func TestTeamsRules(t *testing.T) {
142151 CheckSession : nil ,
143152 // setting is invalid for block rules, just testing serialization here
144153 InsecureDisableDNSSECValidation : true ,
154+ UntrustedCertSettings : & UntrustedCertSettings {
155+ Action : UntrustedCertPassthrough ,
156+ },
145157 },
146158 CreatedAt : & createdAt ,
147159 UpdatedAt : & updatedAt ,
@@ -196,7 +208,10 @@ func TestTeamsRule(t *testing.T) {
196208 "enforce": true,
197209 "duration": "15m0s"
198210 },
199- "insecure_disable_dnssec_validation": false
211+ "insecure_disable_dnssec_validation": false,
212+ "untrusted_cert": {
213+ "action": "block"
214+ }
200215 }
201216 }
202217 }
@@ -231,6 +246,9 @@ func TestTeamsRule(t *testing.T) {
231246 Duration : Duration {900 * time .Second },
232247 },
233248 InsecureDisableDNSSECValidation : false ,
249+ UntrustedCertSettings : & UntrustedCertSettings {
250+ Action : UntrustedCertBlock ,
251+ },
234252 },
235253 CreatedAt : & createdAt ,
236254 UpdatedAt : & updatedAt ,
0 commit comments