Skip to content

Commit f2f2556

Browse files
committed
Add unit test for logs in clustermgtd
1 parent 73d764b commit f2f2556

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/slurm_plugin/test_clustermgtd.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3533,6 +3533,13 @@ def test_reset_timeout_expired_compute_resources(
35333533
assert_that(cluster_manager._insufficient_capacity_compute_resources).is_equal_to(
35343534
expected_insufficient_capacity_compute_resources
35353535
)
3536+
3537+
if expected_insufficient_capacity_compute_resources:
3538+
assert (
3539+
"compute resources will be reset after insufficient capacity timeout (20 seconds) expired. "
3540+
"Check the slurm_resume log for EC2 error codes."
3541+
) in caplog.text
3542+
35363543
if expected_power_save_node_list:
35373544
power_save_mock.assert_called_with(
35383545
expected_power_save_node_list, reason="Enabling node since insufficient capacity timeout expired"

0 commit comments

Comments
 (0)