Skip to content

Commit b466bac

Browse files
committed
fix: input/output paths in auto ml integ tests
1 parent d960e49 commit b466bac

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

tests/integ/test_auto_ml.py

+11-6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from sagemaker.utils import unique_name_from_base
2323
from tests.integ import AUTO_ML_DEFAULT_TIMEMOUT_MINUTES, DATA_DIR, auto_ml_utils
2424
from tests.integ.timeout import timeout
25+
from tests.conftest import CUSTOM_S3_OBJECT_KEY_PREFIX
2526

2627
ROLE = "SageMakerRole"
2728
PREFIX = "sagemaker/beta-automl-xgboost"
@@ -198,8 +199,8 @@ def test_auto_ml_describe_auto_ml_job(sagemaker_session):
198199
"DataSource": {
199200
"S3DataSource": {
200201
"S3DataType": "S3Prefix",
201-
"S3Uri": "s3://{}/{}/input/iris_training.csv".format(
202-
sagemaker_session.default_bucket(), PREFIX
202+
"S3Uri": "s3://{}/{}/{}/input/iris_training.csv".format(
203+
sagemaker_session.default_bucket(), CUSTOM_S3_OBJECT_KEY_PREFIX, PREFIX
203204
),
204205
}
205206
},
@@ -209,7 +210,9 @@ def test_auto_ml_describe_auto_ml_job(sagemaker_session):
209210
}
210211
]
211212
expected_default_output_config = {
212-
"S3OutputPath": "s3://{}/".format(sagemaker_session.default_bucket())
213+
"S3OutputPath": "s3://{}/{}/".format(
214+
sagemaker_session.default_bucket(), CUSTOM_S3_OBJECT_KEY_PREFIX
215+
)
213216
}
214217

215218
auto_ml_utils.create_auto_ml_job_if_not_exist(sagemaker_session)
@@ -236,8 +239,8 @@ def test_auto_ml_attach(sagemaker_session):
236239
"DataSource": {
237240
"S3DataSource": {
238241
"S3DataType": "S3Prefix",
239-
"S3Uri": "s3://{}/{}/input/iris_training.csv".format(
240-
sagemaker_session.default_bucket(), PREFIX
242+
"S3Uri": "s3://{}/{}/{}/input/iris_training.csv".format(
243+
sagemaker_session.default_bucket(), CUSTOM_S3_OBJECT_KEY_PREFIX, PREFIX
241244
),
242245
}
243246
},
@@ -247,7 +250,9 @@ def test_auto_ml_attach(sagemaker_session):
247250
}
248251
]
249252
expected_default_output_config = {
250-
"S3OutputPath": "s3://{}/".format(sagemaker_session.default_bucket())
253+
"S3OutputPath": "s3://{}/{}/".format(
254+
sagemaker_session.default_bucket(), CUSTOM_S3_OBJECT_KEY_PREFIX
255+
)
251256
}
252257

253258
auto_ml_utils.create_auto_ml_job_if_not_exist(sagemaker_session)

0 commit comments

Comments
 (0)