def TestPauseWatcher():
    """Tests and pauses the watcher.

  """
    master = qa_config.GetMasterNode()

    AssertCommand(["gnt-cluster", "watcher", "pause", "4h"])

    cmd = ["gnt-cluster", "watcher", "info"]
    output = GetCommandOutput(master.primary, utils.ShellQuoteArgs(cmd))
    AssertMatch(output, r"^.*\bis paused\b.*")
Exemple #2
0
def _VerifyReturnsJob(data):
    if not isinstance(data, int):
        AssertMatch(data, r"^\d+$")