|
22 | 22 | import pytest
|
23 | 23 | from botocore.exceptions import ClientError
|
24 | 24 |
|
| 25 | +import tests |
| 26 | + |
25 | 27 | from sagemaker import utils
|
26 | 28 | from sagemaker.amazon.randomcutforest import RandomCutForest
|
27 | 29 | from sagemaker.deserializers import StringDeserializer
|
@@ -132,6 +134,10 @@ def _ecr_login(ecr_client):
|
132 | 134 | return username, password
|
133 | 135 |
|
134 | 136 |
|
| 137 | +@pytest.mark.skipif( |
| 138 | + tests.integ.test_region() != "us-east-2", |
| 139 | + reason="Pulling the base image is currently limited to us-east-2.", |
| 140 | +) |
135 | 141 | def test_multi_data_model_deploy_pretrained_models(
|
136 | 142 | container_image, sagemaker_session, cpu_instance_type
|
137 | 143 | ):
|
@@ -192,6 +198,10 @@ def test_multi_data_model_deploy_pretrained_models(
|
192 | 198 |
|
193 | 199 |
|
194 | 200 | @pytest.mark.local_mode
|
| 201 | +@pytest.mark.skipif( |
| 202 | + tests.integ.test_region() != "us-east-2", |
| 203 | + reason="Pulling the base image is currently limited to us-east-2.", |
| 204 | +) |
195 | 205 | def test_multi_data_model_deploy_pretrained_models_local_mode(container_image, sagemaker_session):
|
196 | 206 | timestamp = sagemaker_timestamp()
|
197 | 207 | endpoint_name = "test-multimodel-endpoint-{}".format(timestamp)
|
@@ -252,6 +262,10 @@ def test_multi_data_model_deploy_pretrained_models_local_mode(container_image, s
|
252 | 262 | assert "Could not find endpoint" in str(exception.value)
|
253 | 263 |
|
254 | 264 |
|
| 265 | +@pytest.mark.skipif( |
| 266 | + tests.integ.test_region() != "us-east-2", |
| 267 | + reason="Pulling the base image is currently limited to us-east-2.", |
| 268 | +) |
255 | 269 | def test_multi_data_model_deploy_trained_model_from_framework_estimator(
|
256 | 270 | container_image,
|
257 | 271 | sagemaker_session,
|
@@ -366,6 +380,10 @@ def _mxnet_training_job(
|
366 | 380 | return mx.create_model(image_uri=container_image)
|
367 | 381 |
|
368 | 382 |
|
| 383 | +@pytest.mark.skipif( |
| 384 | + tests.integ.test_region() != "us-east-2", |
| 385 | + reason="Pulling the base image is currently limited to us-east-2.", |
| 386 | +) |
369 | 387 | def test_multi_data_model_deploy_train_model_from_amazon_first_party_estimator(
|
370 | 388 | container_image, sagemaker_session, cpu_instance_type
|
371 | 389 | ):
|
@@ -463,6 +481,10 @@ def __rcf_training_job(
|
463 | 481 | return rcf_model
|
464 | 482 |
|
465 | 483 |
|
| 484 | +@pytest.mark.skipif( |
| 485 | + tests.integ.test_region() != "us-east-2", |
| 486 | + reason="Pulling the base image is currently limited to us-east-2.", |
| 487 | +) |
466 | 488 | def test_multi_data_model_deploy_pretrained_models_update_endpoint(
|
467 | 489 | container_image, sagemaker_session, cpu_instance_type, alternative_cpu_instance_type
|
468 | 490 | ):
|
|
0 commit comments