Skip to content

Commit

Permalink
Verify that 'details' aren't sent when explain=false
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson authored and arteam committed Jul 22, 2022
1 parent 4ce9882 commit 78ccd47
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -14,3 +14,15 @@
- match: { components.cluster_coordination.indicators.master_is_stable.summary: "The cluster has a stable master node" }
- is_true: components.cluster_coordination.indicators.master_is_stable.details.current_master
- is_true: components.cluster_coordination.indicators.master_is_stable.details.recent_masters

- do:
_internal.health:
component: cluster_coordination
feature: master_is_stable
explain: false

- is_true: cluster_name
- match: { components.cluster_coordination.indicators.master_is_stable.status: "green" }
- match: { components.cluster_coordination.indicators.master_is_stable.summary: "The cluster has a stable master node" }
- is_false: components.cluster_coordination.indicators.master_is_stable.details

0 comments on commit 78ccd47

Please sign in to comment.