@@ -11,11 +11,13 @@ def test_modify_agent_group(self):
1111 agent_group_id = "group-1" ,
1212 name = "NewName" ,
1313 comment = "Updated comment" ,
14+ scheduler_cron_time = "0 */5 * * *" ,
1415 agent_ids = ["agent-1" , "agent-2" ],
1516 )
1617
1718 self .connection .send .has_been_called_with (
1819 b'<modify_agent_group agent_group_id="group-1">'
20+ b"<scheduler_cron_time>0 */5 * * *</scheduler_cron_time>"
1921 b"<name>NewName</name>"
2022 b"<comment>Updated comment</comment>"
2123 b'<agents><agent id="agent-1"/><agent id="agent-2"/></agents>'
@@ -24,17 +26,27 @@ def test_modify_agent_group(self):
2426
2527 def test_modify_agent_group_without_id (self ):
2628 with self .assertRaises (RequiredArgument ):
27- self .gmp .modify_agent_group (agent_group_id = None )
29+ self .gmp .modify_agent_group (
30+ agent_group_id = None , scheduler_cron_time = "0 */5 * * *"
31+ )
32+
33+ def test_modify_agent_group_without_scheduler_cron_time (self ):
34+ with self .assertRaises (RequiredArgument ):
35+ self .gmp .modify_agent_group (
36+ agent_group_id = "group-1" , scheduler_cron_time = None
37+ )
2838
2939 def test_modify_agent_group_without_name (self ):
3040 self .gmp .modify_agent_group (
3141 agent_group_id = "group-1" ,
3242 comment = "Updated comment" ,
43+ scheduler_cron_time = "0 */5 * * *" ,
3344 agent_ids = ["agent-1" , "agent-2" ],
3445 )
3546
3647 self .connection .send .has_been_called_with (
3748 b'<modify_agent_group agent_group_id="group-1">'
49+ b"<scheduler_cron_time>0 */5 * * *</scheduler_cron_time>"
3850 b"<comment>Updated comment</comment>"
3951 b'<agents><agent id="agent-1"/><agent id="agent-2"/></agents>'
4052 b"</modify_agent_group>"
@@ -44,11 +56,13 @@ def test_modify_agent_group_without_comment(self):
4456 self .gmp .modify_agent_group (
4557 agent_group_id = "group-1" ,
4658 name = "NewName" ,
59+ scheduler_cron_time = "0 */5 * * *" ,
4760 agent_ids = ["agent-1" , "agent-2" ],
4861 )
4962
5063 self .connection .send .has_been_called_with (
5164 b'<modify_agent_group agent_group_id="group-1">'
65+ b"<scheduler_cron_time>0 */5 * * *</scheduler_cron_time>"
5266 b"<name>NewName</name>"
5367 b'<agents><agent id="agent-1"/><agent id="agent-2"/></agents>'
5468 b"</modify_agent_group>"
@@ -59,10 +73,12 @@ def test_modify_agent_group_without_agent_ids(self):
5973 agent_group_id = "group-1" ,
6074 name = "NewName" ,
6175 comment = "Updated comment" ,
76+ scheduler_cron_time = "0 */5 * * *" ,
6277 )
6378
6479 self .connection .send .has_been_called_with (
6580 b'<modify_agent_group agent_group_id="group-1">'
81+ b"<scheduler_cron_time>0 */5 * * *</scheduler_cron_time>"
6682 b"<name>NewName</name>"
6783 b"<comment>Updated comment</comment>"
6884 b"</modify_agent_group>"
0 commit comments