---
"Test ack watch api":
  - do:
      cluster.health:
          wait_for_status: green

  - do:
      watcher.put_watch:
        id: "my_watch"
        body:  > 
          {
            "trigger": {
              "schedule": {
                "hourly": {
                  "minute": [ 0, 5 ]
                  }
                }
            },
            "input": {
              "simple": {
                "payload": {
                  "send": "yes"
                }
              }
            },
            "condition": {
              "always": {}
            },
            "actions": [
            {
              "test_index": {
                "index": {
                  "index": "test",
                  "doc_type": "test2"
                }
              }
            } ]
            }
  - match: { _id: "my_watch" }

  - do:
      cluster.health:
          wait_for_status: green

  - do:
    watcher.ack_watch:
      id: "my_watch"
  - match: { "status.ack.state" : "awaits_execution" }

  - do:
    watcher.delete_watch:
      id: "my_watch"
  - match: { found: true }

---
"Test ack watch api":
  - do:
      cluster.health:
          wait_for_status: green

  - do:
      watcher.put_watch:
        id: "my_watch"
        body:  > 
          {
            "trigger" : {
              "schedule" : { "cron" : "0 0 0 1 * ? 2099" }
            },
            "input": {
              "simple": {
                "payload": {
                  "send": "yes"
                }
              }
            },
            "condition": {
              "always": {}
            },
            "actions": [
            {
              "test_index": {
                "index": {
                  "index": "test",
                  "doc_type": "test2"
                }
              }
            } ]
            }
  - match: { _id: "my_watch" }

  - do:
      cluster.health:
          wait_for_status: green

  - do:
    watcher.ack_watch:
      id: "my_watch"
  - match: { "status.ack.state" : "awaits_execution" }

  - do:
    watcher.delete_watch:
      id: "my_watch"
  - match: { found: true }

Fix ack watch test to not trigger while test is running.
[TEST] Fix ack watch test to not trigger while test is running.

Original commit: elastic/x-pack-elasticsearch@d0261b355da3fd2f4c05378e3d66c8e3e3cfea68
