Skip to content

Commit 35ac28a

Browse files
committed
fix integ tests
1 parent bb99417 commit 35ac28a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/sagemaker/sklearn/processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848
4949
Args:
5050
framework_version (str): The version of scikit-learn.
51-
role (str): An AWS IAM role. The Amazon SageMaker training jobs
51+
role (str): An AWS IAM role name or ARN. The Amazon SageMaker training jobs
5252
and APIs that create Amazon SageMaker endpoints use this role
5353
to access training data and model artifacts. After the endpoint
5454
is created, the inference code might use the IAM role, if it

tests/integ/test_processing.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def test_sklearn(sagemaker_session, sklearn_full_version, cpu_instance_type):
8888
"python3",
8989
"/opt/ml/processing/input/code/dummy_script.py",
9090
]
91-
assert job_description["RoleArn"] == ROLE
91+
assert ROLE in job_description["RoleArn"]
9292

9393

9494
def test_sklearn_with_customizations(
@@ -163,7 +163,7 @@ def test_sklearn_with_customizations(
163163

164164
assert job_description["Environment"] == {"DUMMY_ENVIRONMENT_VARIABLE": "dummy-value"}
165165

166-
assert job_description["RoleArn"] == ROLE
166+
assert ROLE in job_description["RoleArn"]
167167

168168
assert job_description["StoppingCondition"] == {"MaxRuntimeInSeconds": 3600}
169169

@@ -211,7 +211,7 @@ def test_sklearn_with_no_inputs_or_outputs(
211211

212212
assert job_description["Environment"] == {"DUMMY_ENVIRONMENT_VARIABLE": "dummy-value"}
213213

214-
assert job_description["RoleArn"] == ROLE
214+
assert ROLE in job_description["RoleArn"]
215215

216216
assert job_description["StoppingCondition"] == {"MaxRuntimeInSeconds": 3600}
217217

@@ -286,7 +286,7 @@ def test_script_processor(sagemaker_session, image_uri, cpu_instance_type, outpu
286286

287287
assert job_description["Environment"] == {"DUMMY_ENVIRONMENT_VARIABLE": "dummy-value"}
288288

289-
assert job_description["RoleArn"] == ROLE
289+
assert ROLE in job_description["RoleArn"]
290290

291291
assert job_description["StoppingCondition"] == {"MaxRuntimeInSeconds": 3600}
292292

@@ -334,7 +334,7 @@ def test_script_processor_with_no_inputs_or_outputs(
334334

335335
assert job_description["Environment"] == {"DUMMY_ENVIRONMENT_VARIABLE": "dummy-value"}
336336

337-
assert job_description["RoleArn"] == ROLE
337+
assert ROLE in job_description["RoleArn"]
338338

339339
assert job_description["StoppingCondition"] == {"MaxRuntimeInSeconds": 3600}
340340

@@ -400,6 +400,6 @@ def test_processor(sagemaker_session, image_uri, cpu_instance_type, output_kms_k
400400

401401
assert job_description["Environment"] == {"DUMMY_ENVIRONMENT_VARIABLE": "dummy-value"}
402402

403-
assert job_description["RoleArn"] == ROLE
403+
assert ROLE in job_description["RoleArn"]
404404

405405
assert job_description["StoppingCondition"] == {"MaxRuntimeInSeconds": 3600}

0 commit comments

Comments
 (0)