Skip to content

Add one test for execution context in watcher compare condition#88466

Merged
stu-elastic merged 1 commit intoelastic:masterfrom
sakurai-youhei:issue88408-add-test-only
Jul 13, 2022
Merged

Add one test for execution context in watcher compare condition#88466
stu-elastic merged 1 commit intoelastic:masterfrom
sakurai-youhei:issue88408-add-test-only

Conversation

@sakurai-youhei
Copy link
Copy Markdown
Member

Issue: #88408

This PR adds one test for execution context in the watcher compare condition, which is equivalent to the below compare condition.

{
  "condition" : {
    "compare" : {
      "ctx.execution_time" : {
        "gte" : "<{now-5m}>"
      }
    }
  }
}

This test should always pass and actually passes in master branch but fails in 7.17 branch. So, backport PR will append necessary adjustment (bug fix) on top of this.

Question: I don't think this PR needs a changelog, right?

Add one test to confirm the below watcher compare condition is always
met.

```
  "condition": {
    "compare": {
      "ctx.execution_time": {
        "gte": "<{now-5m}>"
      }
    }
  }
```
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@rjernst rjernst added v8.4.0 and removed Team:Data Management (obsolete) DO NOT USE. This team no longer exists. labels Jul 13, 2022
@stu-elastic stu-elastic self-requested a review July 13, 2022 16:50
Copy link
Copy Markdown
Contributor

@stu-elastic stu-elastic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@stu-elastic stu-elastic merged commit ece52f8 into elastic:master Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Watcher >test Issues or PRs that are addressing/adding tests v8.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants