Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions tests/integ/test_auto_ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from sagemaker.utils import unique_name_from_base
from tests.integ import AUTO_ML_DEFAULT_TIMEMOUT_MINUTES, DATA_DIR, auto_ml_utils
from tests.integ.timeout import timeout
from tests.conftest import CUSTOM_S3_OBJECT_KEY_PREFIX

ROLE = "SageMakerRole"
PREFIX = "sagemaker/beta-automl-xgboost"
Expand Down Expand Up @@ -198,8 +199,8 @@ def test_auto_ml_describe_auto_ml_job(sagemaker_session):
"DataSource": {
"S3DataSource": {
"S3DataType": "S3Prefix",
"S3Uri": "s3://{}/{}/input/iris_training.csv".format(
sagemaker_session.default_bucket(), PREFIX
"S3Uri": "s3://{}/{}/{}/input/iris_training.csv".format(
sagemaker_session.default_bucket(), CUSTOM_S3_OBJECT_KEY_PREFIX, PREFIX
),
}
},
Expand All @@ -209,7 +210,9 @@ def test_auto_ml_describe_auto_ml_job(sagemaker_session):
}
]
expected_default_output_config = {
"S3OutputPath": "s3://{}/".format(sagemaker_session.default_bucket())
"S3OutputPath": "s3://{}/{}/".format(
sagemaker_session.default_bucket(), CUSTOM_S3_OBJECT_KEY_PREFIX
)
}

auto_ml_utils.create_auto_ml_job_if_not_exist(sagemaker_session)
Expand All @@ -236,8 +239,8 @@ def test_auto_ml_attach(sagemaker_session):
"DataSource": {
"S3DataSource": {
"S3DataType": "S3Prefix",
"S3Uri": "s3://{}/{}/input/iris_training.csv".format(
sagemaker_session.default_bucket(), PREFIX
"S3Uri": "s3://{}/{}/{}/input/iris_training.csv".format(
sagemaker_session.default_bucket(), CUSTOM_S3_OBJECT_KEY_PREFIX, PREFIX
),
}
},
Expand All @@ -247,7 +250,9 @@ def test_auto_ml_attach(sagemaker_session):
}
]
expected_default_output_config = {
"S3OutputPath": "s3://{}/".format(sagemaker_session.default_bucket())
"S3OutputPath": "s3://{}/{}/".format(
sagemaker_session.default_bucket(), CUSTOM_S3_OBJECT_KEY_PREFIX
)
}

auto_ml_utils.create_auto_ml_job_if_not_exist(sagemaker_session)
Expand Down