@@ -202,15 +202,15 @@ def test_pipeline_condition_step_interpolated(sagemaker_session):
202
202
},
203
203
{
204
204
"Type" : "Not" ,
205
- "Expression " : {
205
+ "Condition " : {
206
206
"Type" : "Equals" ,
207
207
"LeftValue" : {"Get" : "Parameters.MyInt1" },
208
208
"RightValue" : {"Get" : "Parameters.MyInt2" },
209
209
},
210
210
},
211
211
{
212
212
"Type" : "Not" ,
213
- "Expression " : {
213
+ "Condition " : {
214
214
"Type" : "In" ,
215
215
"QueryValue" : {"Get" : "Parameters.MyStr" },
216
216
"Values" : ["abc" , "def" ],
@@ -533,9 +533,9 @@ def func2():
533
533
assert len (step_dsl ["Arguments" ]["Conditions" ]) == 1
534
534
condition_dsl = step_dsl ["Arguments" ]["Conditions" ][0 ]
535
535
assert condition_dsl ["Type" ] == "Not"
536
- cond_expr_dsl = condition_dsl ["Expression " ]
536
+ cond_expr_dsl = condition_dsl ["Condition " ]
537
537
assert cond_expr_dsl ["Type" ] == "Not"
538
- cond_inner_expr_dsl = cond_expr_dsl ["Expression " ]
538
+ cond_inner_expr_dsl = cond_expr_dsl ["Condition " ]
539
539
assert cond_inner_expr_dsl ["Type" ] == "Or"
540
540
assert len (cond_inner_expr_dsl ["Conditions" ]) == 2
541
541
assert cond_inner_expr_dsl ["Conditions" ][0 ]["LeftValue" ] == _get_expected_jsonget_expr (
@@ -602,7 +602,7 @@ def func4():
602
602
assert len (step_dsl ["Arguments" ]["Conditions" ]) == 1
603
603
condition_dsl = step_dsl ["Arguments" ]["Conditions" ][0 ]
604
604
assert condition_dsl ["Type" ] == "Not"
605
- cond_expr_dsl = condition_dsl ["Expression " ]
605
+ cond_expr_dsl = condition_dsl ["Condition " ]
606
606
assert cond_expr_dsl ["Type" ] == "In"
607
607
assert cond_expr_dsl ["QueryValue" ] == _get_expected_jsonget_expr (
608
608
step_name = step_output3 ._step .name , path = "Result"
0 commit comments