@@ -78,6 +78,7 @@ def test_create_running_workflow():
78
78
response = utaa .create_running_workflow (
79
79
workflow_id = response ["id" ],
80
80
project_id = TEST_PROJECT_ID ,
81
+ variables = {"x" : 1 },
81
82
)
82
83
83
84
# Assert
@@ -90,7 +91,9 @@ def test_get_running_workflow():
90
91
response = utaa .create_workflow (workflow_definition = {"name" : "blah" })
91
92
wfid = response ["id" ]
92
93
response = utaa .create_running_workflow (
93
- workflow_id = wfid , project_id = TEST_PROJECT_ID
94
+ workflow_id = wfid ,
95
+ project_id = TEST_PROJECT_ID ,
96
+ variables = {"x" : 1 },
94
97
)
95
98
rwfid = response ["id" ]
96
99
@@ -101,6 +104,7 @@ def test_get_running_workflow():
101
104
rwf = response ["running_workflow" ]
102
105
assert not rwf ["done" ]
103
106
assert rwf ["workflow" ] == wfid
107
+ assert rwf ["variables" ] == {"x" : 1 }
104
108
105
109
106
110
def test_set_running_workflow_done_when_success ():
@@ -110,6 +114,7 @@ def test_set_running_workflow_done_when_success():
110
114
response = utaa .create_running_workflow (
111
115
workflow_id = response ["id" ],
112
116
project_id = TEST_PROJECT_ID ,
117
+ variables = {},
113
118
)
114
119
rwfid = response ["id" ]
115
120
@@ -129,6 +134,7 @@ def test_set_running_workflow_done_when_failed():
129
134
response = utaa .create_running_workflow (
130
135
workflow_id = response ["id" ],
131
136
project_id = TEST_PROJECT_ID ,
137
+ variables = {},
132
138
)
133
139
rwfid = response ["id" ]
134
140
@@ -148,6 +154,7 @@ def test_create_running_workflow_step():
148
154
response = utaa .create_running_workflow (
149
155
workflow_id = response ["id" ],
150
156
project_id = TEST_PROJECT_ID ,
157
+ variables = {},
151
158
)
152
159
153
160
# Act
@@ -165,7 +172,9 @@ def test_get_running_workflow_step():
165
172
response = utaa .create_workflow (workflow_definition = {"name" : "blah" })
166
173
wfid = response ["id" ]
167
174
response = utaa .create_running_workflow (
168
- workflow_id = wfid , project_id = TEST_PROJECT_ID
175
+ workflow_id = wfid ,
176
+ project_id = TEST_PROJECT_ID ,
177
+ variables = {},
169
178
)
170
179
rwfid = response ["id" ]
171
180
response = utaa .create_running_workflow_step (
@@ -189,7 +198,9 @@ def test_get_running_workflow_steps():
189
198
response = utaa .create_workflow (workflow_definition = {"name" : "blah" })
190
199
wfid = response ["id" ]
191
200
response = utaa .create_running_workflow (
192
- workflow_id = wfid , project_id = TEST_PROJECT_ID
201
+ workflow_id = wfid ,
202
+ project_id = TEST_PROJECT_ID ,
203
+ variables = {},
193
204
)
194
205
rwfid = response ["id" ]
195
206
response = utaa .create_running_workflow_step (
0 commit comments