瀏覽代碼

Verify that 'details' aren't sent when explain=false

Seth Michael Larson 3 年之前
父節點
當前提交
478c06ef29
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/health/30_feature.yml

+ 12 - 0
rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/health/30_feature.yml

@@ -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
+