@@ -53,6 +53,29 @@ def test_callback_step():
53
53
}
54
54
55
55
56
+ def test_callback_step_default_values ():
57
+ param = ParameterInteger (name = "MyInt" )
58
+ outputParam1 = CallbackOutput (output_name = "output1" )
59
+ cb_step = CallbackStep (
60
+ name = "MyCallbackStep" ,
61
+ depends_on = ["TestStep" ],
62
+ sqs_queue_url = "https://sqs.us-east-2.amazonaws.com/123456789012/MyQueue" ,
63
+ inputs = {"arg1" : "foo" , "arg2" : 5 , "arg3" : param },
64
+ outputs = [outputParam1 ],
65
+ )
66
+ cb_step .add_depends_on (["SecondTestStep" ])
67
+ assert cb_step .to_request () == {
68
+ "Name" : "MyCallbackStep" ,
69
+ "Type" : "Callback" ,
70
+ "DependsOn" : ["TestStep" , "SecondTestStep" ],
71
+ "SqsQueueUrl" : "https://sqs.us-east-2.amazonaws.com/123456789012/MyQueue" ,
72
+ "OutputParameters" : [
73
+ {"OutputName" : "output1" , "OutputType" : "String" },
74
+ ],
75
+ "Arguments" : {"arg1" : "foo" , "arg2" : 5 , "arg3" : param },
76
+ }
77
+
78
+
56
79
def test_callback_step_output_expr ():
57
80
param = ParameterInteger (name = "MyInt" )
58
81
outputParam1 = CallbackOutput (output_name = "output1" , output_type = CallbackOutputTypeEnum .String )
0 commit comments