@@ -150,9 +150,10 @@ def test_echo_state_change_on_desired_running(self, echo: MagicMock):
150
150
]
151
151
)
152
152
for state , reason in [
153
- (V1ClusterState .UNSPECIFIED , "" ),
154
153
(V1ClusterState .QUEUED , "" ),
155
154
(V1ClusterState .PENDING , "" ),
155
+ (V1ClusterState .PENDING , "" ),
156
+ (V1ClusterState .PENDING , "" ),
156
157
(V1ClusterState .FAILED , "some error" ),
157
158
(V1ClusterState .PENDING , "retrying failure" ),
158
159
(V1ClusterState .RUNNING , "" ),
@@ -168,12 +169,14 @@ def test_echo_state_change_on_desired_running(self, echo: MagicMock):
168
169
check_timeout = 0.1 ,
169
170
)
170
171
171
- assert client .list_call_count == 6
172
- assert echo .call_count == 5
172
+ assert client .list_call_count == 7
173
+ assert echo .call_count == 7
173
174
echo .assert_has_calls (
174
175
[
175
176
call ("Cluster test-cluster is now queued" ),
176
177
call ("Cluster test-cluster is now pending" ),
178
+ call ("Cluster test-cluster is now pending" ),
179
+ call ("Cluster test-cluster is now pending" ),
177
180
call (
178
181
"\n " .join (
179
182
[
@@ -214,6 +217,8 @@ def test_echo_state_change_on_desired_deleted(self, echo: MagicMock):
214
217
]
215
218
)
216
219
for state in [
220
+ V1ClusterState .RUNNING ,
221
+ V1ClusterState .RUNNING ,
217
222
V1ClusterState .RUNNING ,
218
223
V1ClusterState .DELETED ,
219
224
]
@@ -228,10 +233,12 @@ def test_echo_state_change_on_desired_deleted(self, echo: MagicMock):
228
233
check_timeout = 0.1 ,
229
234
)
230
235
231
- assert client .list_call_count == 2
232
- assert echo .call_count == 2
236
+ assert client .list_call_count == 4
237
+ assert echo .call_count == 4
233
238
echo .assert_has_calls (
234
239
[
240
+ call ("Cluster test-cluster is terminating" ),
241
+ call ("Cluster test-cluster is terminating" ),
235
242
call ("Cluster test-cluster is terminating" ),
236
243
call ("Cluster test-cluster has been deleted." ),
237
244
]
0 commit comments