Exemplo n.º 1
0
 def test_unknown_cmd(self):
     report_msg = messages.ResourceStonithCommandsMismatch(
         "element type", const.PCS_COMMAND_RESOURCE_CREATE)
     self.assert_message(
         report_msg,
         report_msg.message,
     )
Exemplo n.º 2
0
 def test_use_instead(self):
     report_msg = messages.ResourceStonithCommandsMismatch(
         "element type", const.PCS_COMMAND_STONITH_CREATE)
     self.assert_message(
         report_msg,
         f"{report_msg.message} Use 'pcs stonith create' command instead.",
     )
Exemplo n.º 3
0
 def test_no_cmd(self):
     report_msg = messages.ResourceStonithCommandsMismatch("element type")
     self.assert_message(
         report_msg,
         report_msg.message,
     )