@@ -267,7 +267,11 @@ def updated_output_kms_key(sagemaker_session):
267
267
)
268
268
269
269
270
- @pytest .mark .skip
270
+ @pytest .mark .skipif (
271
+ tests .integ .test_region () in tests .integ .NO_MODEL_MONITORING_REGIONS ,
272
+ reason = "ModelMonitoring is not yet supported in this region." ,
273
+ )
274
+ @pytest .mark .canary_quick
271
275
def test_default_monitor_suggest_baseline_and_create_monitoring_schedule_with_customizations (
272
276
sagemaker_session , output_kms_key , volume_kms_key , predictor
273
277
):
@@ -381,7 +385,10 @@ def test_default_monitor_suggest_baseline_and_create_monitoring_schedule_with_cu
381
385
assert len (summary ["MonitoringScheduleSummaries" ]) > 0
382
386
383
387
384
- @pytest .mark .skip
388
+ @pytest .mark .skipif (
389
+ tests .integ .test_region () in tests .integ .NO_MODEL_MONITORING_REGIONS ,
390
+ reason = "ModelMonitoring is not yet supported in this region." ,
391
+ )
385
392
def test_default_monitor_suggest_baseline_and_create_monitoring_schedule_without_customizations (
386
393
sagemaker_session , predictor
387
394
):
@@ -466,7 +473,10 @@ def test_default_monitor_suggest_baseline_and_create_monitoring_schedule_without
466
473
assert len (summary ["MonitoringScheduleSummaries" ]) > 0
467
474
468
475
469
- @pytest .mark .skip
476
+ @pytest .mark .skipif (
477
+ tests .integ .test_region () in tests .integ .NO_MODEL_MONITORING_REGIONS ,
478
+ reason = "ModelMonitoring is not yet supported in this region." ,
479
+ )
470
480
def test_default_monitor_create_stop_and_start_monitoring_schedule_with_customizations (
471
481
sagemaker_session , output_kms_key , volume_kms_key , predictor
472
482
):
@@ -543,7 +553,10 @@ def test_default_monitor_create_stop_and_start_monitoring_schedule_with_customiz
543
553
_wait_for_schedule_changes_to_apply (monitor = my_default_monitor )
544
554
545
555
546
- @pytest .mark .skip
556
+ @pytest .mark .skipif (
557
+ tests .integ .test_region () in tests .integ .NO_MODEL_MONITORING_REGIONS ,
558
+ reason = "ModelMonitoring is not yet supported in this region." ,
559
+ )
547
560
def test_default_monitor_create_and_update_schedule_config_with_customizations (
548
561
sagemaker_session ,
549
562
predictor ,
@@ -662,7 +675,10 @@ def test_default_monitor_create_and_update_schedule_config_with_customizations(
662
675
assert len (predictor .list_monitors ()) > 0
663
676
664
677
665
- @pytest .mark .skip
678
+ @pytest .mark .skipif (
679
+ tests .integ .test_region () in tests .integ .NO_MODEL_MONITORING_REGIONS ,
680
+ reason = "ModelMonitoring is not yet supported in this region." ,
681
+ )
666
682
def test_default_monitor_create_and_update_schedule_config_without_customizations (
667
683
sagemaker_session , predictor
668
684
):
@@ -822,7 +838,10 @@ def test_default_monitor_monitoring_execution_interactions(
822
838
assert constraint_violations .body_dict ["violations" ][0 ]["feature_name" ] == "store_and_fwd_flag"
823
839
824
840
825
- @pytest .mark .skip
841
+ @pytest .mark .skipif (
842
+ tests .integ .test_region () in tests .integ .NO_MODEL_MONITORING_REGIONS ,
843
+ reason = "ModelMonitoring is not yet supported in this region." ,
844
+ )
826
845
def test_byoc_monitor_suggest_baseline_and_create_monitoring_schedule_with_customizations (
827
846
sagemaker_session , output_kms_key , volume_kms_key , predictor
828
847
):
@@ -953,7 +972,10 @@ def test_byoc_monitor_suggest_baseline_and_create_monitoring_schedule_with_custo
953
972
assert len (summary ["MonitoringScheduleSummaries" ]) > 0
954
973
955
974
956
- @pytest .mark .skip
975
+ @pytest .mark .skipif (
976
+ tests .integ .test_region () in tests .integ .NO_MODEL_MONITORING_REGIONS ,
977
+ reason = "ModelMonitoring is not yet supported in this region." ,
978
+ )
957
979
def test_byoc_monitor_suggest_baseline_and_create_monitoring_schedule_without_customizations (
958
980
sagemaker_session , predictor
959
981
):
@@ -1066,7 +1088,10 @@ def test_byoc_monitor_suggest_baseline_and_create_monitoring_schedule_without_cu
1066
1088
assert len (summary ["MonitoringScheduleSummaries" ]) > 0
1067
1089
1068
1090
1069
- @pytest .mark .skip
1091
+ @pytest .mark .skipif (
1092
+ tests .integ .test_region () in tests .integ .NO_MODEL_MONITORING_REGIONS ,
1093
+ reason = "ModelMonitoring is not yet supported in this region." ,
1094
+ )
1070
1095
def test_byoc_monitor_create_and_update_schedule_config_with_customizations (
1071
1096
sagemaker_session ,
1072
1097
predictor ,
0 commit comments