@@ -274,14 +274,7 @@ def test_create_process_with_sagemaker_config_injection(sagemaker_session):
274274 processing_inputs = [
275275 {
276276 "InputName" : "input-1" ,
277- "S3Input" : {
278- "S3Uri" : "mocked_s3_uri_from_upload_data" ,
279- "LocalPath" : "/container/path/" ,
280- "S3DataType" : "Archive" ,
281- "S3InputMode" : "File" ,
282- "S3DataDistributionType" : "FullyReplicated" ,
283- "S3CompressionType" : "None" ,
284- },
277+ # No S3Input because the API expects only one of S3Input or DatasetDefinition
285278 "DatasetDefinition" : {
286279 "AthenaDatasetDefinition" : {},
287280 },
@@ -3184,19 +3177,19 @@ def test_create_auto_ml_with_sagemaker_config_injection(sagemaker_session):
31843177 job_name = JOB_NAME
31853178 sagemaker_session .auto_ml (input_config , output_config , auto_ml_job_config , job_name = job_name )
31863179 expected_call_args = copy .deepcopy (DEFAULT_EXPECTED_AUTO_ML_JOB_ARGS )
3187- expected_volume_kms_key_id = SAGEMAKER_CONFIG_AUTO_ML ["SageMaker" ]["AutoML" ][ "AutoMLJobConfig " ][
3188- "SecurityConfig "
3189- ]["VolumeKmsKeyId" ]
3190- expected_role_arn = SAGEMAKER_CONFIG_AUTO_ML ["SageMaker" ]["AutoML " ]["RoleArn" ]
3191- expected_kms_key_id = SAGEMAKER_CONFIG_AUTO_ML ["SageMaker" ]["AutoML " ]["OutputDataConfig" ][
3180+ expected_volume_kms_key_id = SAGEMAKER_CONFIG_AUTO_ML ["SageMaker" ]["AutoMLJob " ][
3181+ "AutoMLJobConfig "
3182+ ]["SecurityConfig" ][ " VolumeKmsKeyId" ]
3183+ expected_role_arn = SAGEMAKER_CONFIG_AUTO_ML ["SageMaker" ]["AutoMLJob " ]["RoleArn" ]
3184+ expected_kms_key_id = SAGEMAKER_CONFIG_AUTO_ML ["SageMaker" ]["AutoMLJob " ]["OutputDataConfig" ][
31923185 "KmsKeyId"
31933186 ]
3194- expected_vpc_config = SAGEMAKER_CONFIG_AUTO_ML ["SageMaker" ]["AutoML " ]["AutoMLJobConfig" ][
3187+ expected_vpc_config = SAGEMAKER_CONFIG_AUTO_ML ["SageMaker" ]["AutoMLJob " ]["AutoMLJobConfig" ][
31953188 "SecurityConfig"
31963189 ]["VpcConfig" ]
3197- expected_tags = SAGEMAKER_CONFIG_AUTO_ML ["SageMaker" ]["AutoML " ]["Tags" ]
3190+ expected_tags = SAGEMAKER_CONFIG_AUTO_ML ["SageMaker" ]["AutoMLJob " ]["Tags" ]
31983191 expected_enable_inter_container_traffic_encryption = SAGEMAKER_CONFIG_AUTO_ML ["SageMaker" ][
3199- "AutoML "
3192+ "AutoMLJob "
32003193 ]["AutoMLJobConfig" ]["SecurityConfig" ]["EnableInterContainerTrafficEncryption" ]
32013194 expected_call_args ["OutputDataConfig" ]["KmsKeyId" ] = expected_kms_key_id
32023195 expected_call_args ["RoleArn" ] = expected_role_arn
0 commit comments