@@ -17,7 +17,7 @@ def test_get_nop_job():
17
17
)
18
18
19
19
# Assert
20
- assert jd ["command" ] == "python --version "
20
+ assert jd ["command" ] == "nop.py "
21
21
22
22
23
23
def test_get_unknown_workflow ():
@@ -74,7 +74,10 @@ def test_create_running_workflow():
74
74
response = utaa .create_workflow (workflow_definition = {"name" : "blah" })
75
75
76
76
# Act
77
- response = utaa .create_running_workflow (workflow_id = response ["id" ])
77
+ response = utaa .create_running_workflow (
78
+ workflow_id = response ["id" ],
79
+ project_id = "project-00000000-0000-0000-0000-000000000001" ,
80
+ )
78
81
79
82
# Assert
80
83
assert response ["id" ] == "r-workflow-00000000-0000-0000-0000-000000000001"
@@ -85,7 +88,9 @@ def test_get_running_workflow():
85
88
utaa = UnitTestAPIAdapter ()
86
89
response = utaa .create_workflow (workflow_definition = {"name" : "blah" })
87
90
wfid = response ["id" ]
88
- response = utaa .create_running_workflow (workflow_id = wfid )
91
+ response = utaa .create_running_workflow (
92
+ workflow_id = wfid , project_id = "project-00000000-0000-0000-0000-000000000001"
93
+ )
89
94
rwfid = response ["id" ]
90
95
91
96
# Act
@@ -101,7 +106,10 @@ def test_set_running_workflow_done_when_success():
101
106
# Arrange
102
107
utaa = UnitTestAPIAdapter ()
103
108
response = utaa .create_workflow (workflow_definition = {"name" : "blah" })
104
- response = utaa .create_running_workflow (workflow_id = response ["id" ])
109
+ response = utaa .create_running_workflow (
110
+ workflow_id = response ["id" ],
111
+ project_id = "project-00000000-0000-0000-0000-000000000001" ,
112
+ )
105
113
rwfid = response ["id" ]
106
114
107
115
# Act
@@ -117,7 +125,10 @@ def test_set_running_workflow_done_when_failed():
117
125
# Arrange
118
126
utaa = UnitTestAPIAdapter ()
119
127
response = utaa .create_workflow (workflow_definition = {"name" : "blah" })
120
- response = utaa .create_running_workflow (workflow_id = response ["id" ])
128
+ response = utaa .create_running_workflow (
129
+ workflow_id = response ["id" ],
130
+ project_id = "project-00000000-0000-0000-0000-000000000001" ,
131
+ )
121
132
rwfid = response ["id" ]
122
133
123
134
# Act
@@ -133,7 +144,10 @@ def test_create_running_workflow_step():
133
144
# Arrange
134
145
utaa = UnitTestAPIAdapter ()
135
146
response = utaa .create_workflow (workflow_definition = {"name" : "blah" })
136
- response = utaa .create_running_workflow (workflow_id = response ["id" ])
147
+ response = utaa .create_running_workflow (
148
+ workflow_id = response ["id" ],
149
+ project_id = "project-00000000-0000-0000-0000-000000000001" ,
150
+ )
137
151
138
152
# Act
139
153
response = utaa .create_running_workflow_step (
@@ -149,7 +163,9 @@ def test_get_running_workflow_step():
149
163
utaa = UnitTestAPIAdapter ()
150
164
response = utaa .create_workflow (workflow_definition = {"name" : "blah" })
151
165
wfid = response ["id" ]
152
- response = utaa .create_running_workflow (workflow_id = wfid )
166
+ response = utaa .create_running_workflow (
167
+ workflow_id = wfid , project_id = "project-00000000-0000-0000-0000-000000000001"
168
+ )
153
169
rwfid = response ["id" ]
154
170
response = utaa .create_running_workflow_step (
155
171
running_workflow_id = rwfid , step = "step-1"
@@ -171,7 +187,9 @@ def test_get_running_workflow_steps():
171
187
utaa = UnitTestAPIAdapter ()
172
188
response = utaa .create_workflow (workflow_definition = {"name" : "blah" })
173
189
wfid = response ["id" ]
174
- response = utaa .create_running_workflow (workflow_id = wfid )
190
+ response = utaa .create_running_workflow (
191
+ workflow_id = wfid , project_id = "project-00000000-0000-0000-0000-000000000001"
192
+ )
175
193
rwfid = response ["id" ]
176
194
response = utaa .create_running_workflow_step (
177
195
running_workflow_id = rwfid , step = "step-1"
0 commit comments