@@ -90,11 +90,9 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
90
90
"zones" : ["string" , "string" , "string" ],
91
91
},
92
92
mechanisms = {
93
- "foo" : [
94
- {"id" : "f174e90a-fafe-4643-bbbc-4a0ed4fc8415" },
95
- {"id" : "f174e90a-fafe-4643-bbbc-4a0ed4fc8415" },
96
- {"id" : "f174e90a-fafe-4643-bbbc-4a0ed4fc8415" },
97
- ]
93
+ "email" : [{
"id" :
"[email protected] " }],
94
+ "pagerduty" : [{"id" : "e8133a15-00a4-4d69-aec1-32f70c51f6e5" }],
95
+ "webhooks" : [{"id" : "14cc1190-5d2b-4b98-a696-c424cb2ad05f" }],
98
96
},
99
97
name = "SSL Notification Event Policy" ,
100
98
)
@@ -254,7 +252,11 @@ def test_method_notification_policies_create_a_notification_policy(self, client:
254
252
"023e105f4ecef8ad9ca31a8372d0c353" ,
255
253
alert_type = "universal_ssl_event_type" ,
256
254
enabled = True ,
257
- mechanisms = {"foo" : [{}, {}, {}]},
255
+ mechanisms = {
256
+ "email" : [{}],
257
+ "pagerduty" : [{}],
258
+ "webhooks" : [{}],
259
+ },
258
260
name = "SSL Notification Event Policy" ,
259
261
)
260
262
assert_matches_type (PolicyNotificationPoliciesCreateANotificationPolicyResponse , policy , path = ["response" ])
@@ -269,11 +271,9 @@ def test_method_notification_policies_create_a_notification_policy_with_all_para
269
271
alert_type = "universal_ssl_event_type" ,
270
272
enabled = True ,
271
273
mechanisms = {
272
- "foo" : [
273
- {"id" : "f174e90a-fafe-4643-bbbc-4a0ed4fc8415" },
274
- {"id" : "f174e90a-fafe-4643-bbbc-4a0ed4fc8415" },
275
- {"id" : "f174e90a-fafe-4643-bbbc-4a0ed4fc8415" },
276
- ]
274
+ "email" : [{
"id" :
"[email protected] " }],
275
+ "pagerduty" : [{"id" : "e8133a15-00a4-4d69-aec1-32f70c51f6e5" }],
276
+ "webhooks" : [{"id" : "14cc1190-5d2b-4b98-a696-c424cb2ad05f" }],
277
277
},
278
278
name = "SSL Notification Event Policy" ,
279
279
description = "Something describing the policy." ,
@@ -329,7 +329,11 @@ def test_raw_response_notification_policies_create_a_notification_policy(self, c
329
329
"023e105f4ecef8ad9ca31a8372d0c353" ,
330
330
alert_type = "universal_ssl_event_type" ,
331
331
enabled = True ,
332
- mechanisms = {"foo" : [{}, {}, {}]},
332
+ mechanisms = {
333
+ "email" : [{}],
334
+ "pagerduty" : [{}],
335
+ "webhooks" : [{}],
336
+ },
333
337
name = "SSL Notification Event Policy" ,
334
338
)
335
339
@@ -345,7 +349,11 @@ def test_streaming_response_notification_policies_create_a_notification_policy(s
345
349
"023e105f4ecef8ad9ca31a8372d0c353" ,
346
350
alert_type = "universal_ssl_event_type" ,
347
351
enabled = True ,
348
- mechanisms = {"foo" : [{}, {}, {}]},
352
+ mechanisms = {
353
+ "email" : [{}],
354
+ "pagerduty" : [{}],
355
+ "webhooks" : [{}],
356
+ },
349
357
name = "SSL Notification Event Policy" ,
350
358
) as response :
351
359
assert not response .is_closed
@@ -364,7 +372,11 @@ def test_path_params_notification_policies_create_a_notification_policy(self, cl
364
372
"" ,
365
373
alert_type = "universal_ssl_event_type" ,
366
374
enabled = True ,
367
- mechanisms = {"foo" : [{}, {}, {}]},
375
+ mechanisms = {
376
+ "email" : [{}],
377
+ "pagerduty" : [{}],
378
+ "webhooks" : [{}],
379
+ },
368
380
name = "SSL Notification Event Policy" ,
369
381
)
370
382
@@ -481,11 +493,9 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
481
493
"zones" : ["string" , "string" , "string" ],
482
494
},
483
495
mechanisms = {
484
- "foo" : [
485
- {"id" : "f174e90a-fafe-4643-bbbc-4a0ed4fc8415" },
486
- {"id" : "f174e90a-fafe-4643-bbbc-4a0ed4fc8415" },
487
- {"id" : "f174e90a-fafe-4643-bbbc-4a0ed4fc8415" },
488
- ]
496
+ "email" : [{
"id" :
"[email protected] " }],
497
+ "pagerduty" : [{"id" : "e8133a15-00a4-4d69-aec1-32f70c51f6e5" }],
498
+ "webhooks" : [{"id" : "14cc1190-5d2b-4b98-a696-c424cb2ad05f" }],
489
499
},
490
500
name = "SSL Notification Event Policy" ,
491
501
)
@@ -647,7 +657,11 @@ async def test_method_notification_policies_create_a_notification_policy(
647
657
"023e105f4ecef8ad9ca31a8372d0c353" ,
648
658
alert_type = "universal_ssl_event_type" ,
649
659
enabled = True ,
650
- mechanisms = {"foo" : [{}, {}, {}]},
660
+ mechanisms = {
661
+ "email" : [{}],
662
+ "pagerduty" : [{}],
663
+ "webhooks" : [{}],
664
+ },
651
665
name = "SSL Notification Event Policy" ,
652
666
)
653
667
assert_matches_type (PolicyNotificationPoliciesCreateANotificationPolicyResponse , policy , path = ["response" ])
@@ -662,11 +676,9 @@ async def test_method_notification_policies_create_a_notification_policy_with_al
662
676
alert_type = "universal_ssl_event_type" ,
663
677
enabled = True ,
664
678
mechanisms = {
665
- "foo" : [
666
- {"id" : "f174e90a-fafe-4643-bbbc-4a0ed4fc8415" },
667
- {"id" : "f174e90a-fafe-4643-bbbc-4a0ed4fc8415" },
668
- {"id" : "f174e90a-fafe-4643-bbbc-4a0ed4fc8415" },
669
- ]
679
+ "email" : [{
"id" :
"[email protected] " }],
680
+ "pagerduty" : [{"id" : "e8133a15-00a4-4d69-aec1-32f70c51f6e5" }],
681
+ "webhooks" : [{"id" : "14cc1190-5d2b-4b98-a696-c424cb2ad05f" }],
670
682
},
671
683
name = "SSL Notification Event Policy" ,
672
684
description = "Something describing the policy." ,
@@ -724,7 +736,11 @@ async def test_raw_response_notification_policies_create_a_notification_policy(
724
736
"023e105f4ecef8ad9ca31a8372d0c353" ,
725
737
alert_type = "universal_ssl_event_type" ,
726
738
enabled = True ,
727
- mechanisms = {"foo" : [{}, {}, {}]},
739
+ mechanisms = {
740
+ "email" : [{}],
741
+ "pagerduty" : [{}],
742
+ "webhooks" : [{}],
743
+ },
728
744
name = "SSL Notification Event Policy" ,
729
745
)
730
746
@@ -742,7 +758,11 @@ async def test_streaming_response_notification_policies_create_a_notification_po
742
758
"023e105f4ecef8ad9ca31a8372d0c353" ,
743
759
alert_type = "universal_ssl_event_type" ,
744
760
enabled = True ,
745
- mechanisms = {"foo" : [{}, {}, {}]},
761
+ mechanisms = {
762
+ "email" : [{}],
763
+ "pagerduty" : [{}],
764
+ "webhooks" : [{}],
765
+ },
746
766
name = "SSL Notification Event Policy" ,
747
767
) as response :
748
768
assert not response .is_closed
@@ -764,7 +784,11 @@ async def test_path_params_notification_policies_create_a_notification_policy(
764
784
"" ,
765
785
alert_type = "universal_ssl_event_type" ,
766
786
enabled = True ,
767
- mechanisms = {"foo" : [{}, {}, {}]},
787
+ mechanisms = {
788
+ "email" : [{}],
789
+ "pagerduty" : [{}],
790
+ "webhooks" : [{}],
791
+ },
768
792
name = "SSL Notification Event Policy" ,
769
793
)
770
794
)
0 commit comments