예제 #1
0
 def test_node_action_online(self, mock_jenkins, _):
     jxcore = JxCore()
     jxcore.node_action("slave1", "online")
     mock_jenkins.assert_called_with("slave1")
예제 #2
0
 def test_node_action_offline_msg(self, mock_jenkins, _):
     jxcore = JxCore()
     jxcore.node_action("slave1", "offline", "maintenance")
     mock_jenkins.assert_called_with("slave1", msg="maintenance")