File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -867,6 +867,14 @@ func syntheticsTestOptionsList() *schema.Schema {
867
867
Type : schema .TypeInt ,
868
868
Optional : true ,
869
869
},
870
+ "blocked_request_patterns" : {
871
+ Description : "URL patterns to block for browser tests." ,
872
+ Type : schema .TypeList ,
873
+ Optional : true ,
874
+ Elem : & schema.Schema {
875
+ Type : schema .TypeString ,
876
+ },
877
+ },
870
878
"http_version" : syntheticsHttpVersionOption (),
871
879
},
872
880
},
@@ -4330,6 +4338,10 @@ func buildDatadogTestOptions(d *schema.ResourceData) *datadogV1.SyntheticsTestOp
4330
4338
options .SetInitialNavigationTimeout (int64 (initialNavigationTimeout .(int )))
4331
4339
}
4332
4340
4341
+ if blockedRequestPatterns , ok := d .GetOk ("options_list.0.blocked_request_patterns" ); ok {
4342
+ options .SetBlockedRequestPatterns (blockedRequestPatterns .([]string ))
4343
+ }
4344
+
4333
4345
if attr , ok := d .GetOk ("device_ids" ); ok {
4334
4346
var deviceIds []string
4335
4347
for _ , s := range attr .([]interface {}) {
@@ -4473,6 +4485,9 @@ func buildTerraformTestOptions(actualOptions datadogV1.SyntheticsTestOptions) []
4473
4485
if actualOptions .HasInitialNavigationTimeout () {
4474
4486
localOptionsList ["initial_navigation_timeout" ] = actualOptions .GetInitialNavigationTimeout ()
4475
4487
}
4488
+ if actualOptions .HasBlockedRequestPatterns () {
4489
+ localOptionsList ["blockedRequestPatterns" ] = actualOptions .GetBlockedRequestPatterns ()
4490
+ }
4476
4491
4477
4492
localOptionsLists := make ([]map [string ]interface {}, 1 )
4478
4493
localOptionsLists [0 ] = localOptionsList
Original file line number Diff line number Diff line change @@ -1441,6 +1441,7 @@ Optional:
1441
1441
1442
1442
- ` accept_self_signed ` (Boolean) For SSL tests, whether or not the test should allow self signed certificates.
1443
1443
- ` allow_insecure ` (Boolean) Allows loading insecure content for a request in an API test or in a multistep API test step.
1444
+ - ` blocked_request_patterns ` (String List) Array of URL patterns to block for browser tests.
1444
1445
- ` check_certificate_revocation ` (Boolean) For SSL tests, whether or not the test should fail on revoked certificate in stapled OCSP.
1445
1446
- ` ci ` (Block List, Max: 1) CI/CD options for a Synthetic test. (see [ below for nested schema] ( #nestedblock--options_list--ci ) )
1446
1447
- ` disable_aia_intermediate_fetching ` (Boolean) For SSL tests, whether or not the test should disable fetching intermediate certificates from AIA
You can’t perform that action at this time.
0 commit comments