From 57c782e01899f7d5f754143d1b9fc34802cd0d9a Mon Sep 17 00:00:00 2001 From: Christopher Moussa Date: Thu, 9 Jan 2025 13:12:00 -0800 Subject: [PATCH] t: add max_nodes, max_cores fields to payload data Problem: t1005 and t1012 create JSON payloads to be sent to the plugin, but these payloads don't contain max_cores or max_nodes information per-association. Add this information to the payloads sent to the plugin in t1005 and t1012. --- t/t1005-max-jobs-limits.t | 24 ++++++++++++++++++------ t/t1012-mf-priority-load.t | 8 ++++++-- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/t/t1005-max-jobs-limits.t b/t/t1005-max-jobs-limits.t index f57f95bb..009b9e5a 100755 --- a/t/t1005-max-jobs-limits.t +++ b/t/t1005-max-jobs-limits.t @@ -42,7 +42,9 @@ test_expect_success 'create fake_user.json' ' "queues": "", "active": 1, "projects": "*", - "def_project": "*" + "def_project": "*", + "max_nodes": 2147483647, + "max_cores": 2147483647 }, { "userid": 5011, @@ -54,7 +56,9 @@ test_expect_success 'create fake_user.json' ' "queues": "", "active": 1, "projects": "*", - "def_project": "*" + "def_project": "*", + "max_nodes": 2147483647, + "max_cores": 2147483647 } ] } @@ -152,7 +156,9 @@ test_expect_success 'increase the max jobs count of the user' ' "queues": "", "active": 1, "projects": "*", - "def_project": "*" + "def_project": "*", + "max_nodes": 2147483647, + "max_cores": 2147483647 } ] } @@ -204,7 +210,9 @@ test_expect_success 'update max_active_jobs limit' ' "queues": "", "active": 1, "projects": "*", - "def_project": "*" + "def_project": "*", + "max_nodes": 2147483647, + "max_cores": 2147483647 } ] } @@ -264,7 +272,9 @@ test_expect_success 'create another user with the same limits in multiple banks' "queues": "", "active": 1, "projects": "*", - "def_project": "*" + "def_project": "*", + "max_nodes": 2147483647, + "max_cores": 2147483647 }, { "userid": 5012, @@ -276,7 +286,9 @@ test_expect_success 'create another user with the same limits in multiple banks' "queues": "", "active": 1, "projects": "*", - "def_project": "*" + "def_project": "*", + "max_nodes": 2147483647, + "max_cores": 2147483647 } ] } diff --git a/t/t1012-mf-priority-load.t b/t/t1012-mf-priority-load.t index 58f5bfbc..30522265 100755 --- a/t/t1012-mf-priority-load.t +++ b/t/t1012-mf-priority-load.t @@ -42,7 +42,9 @@ test_expect_success 'create fake_payload.py' ' "queues": "", "active": 1, "projects": "*", - "def_project": "*" + "def_project": "*", + "max_nodes": 2147483647, + "max_cores": 2147483647 }, { "userid": userid, @@ -54,7 +56,9 @@ test_expect_success 'create fake_payload.py' ' "queues": "", "active": 1, "projects": "*", - "def_project": "*" + "def_project": "*", + "max_nodes": 2147483647, + "max_cores": 2147483647 } ] }