@@ -27,6 +27,7 @@ teardown:
2727
2828---
2929" xpack usage includes Enterprise Search " :
30+
3031 - do :
3132 xpack.usage : { }
3233
@@ -144,7 +145,7 @@ teardown:
144145 - ' id1'
145146 - ' id2'
146147 - rule_id : query-rule-id2
147- type : pinned
148+ type : exclude
148149 criteria :
149150 - type : exact
150151 metadata : query_string
@@ -193,15 +194,15 @@ teardown:
193194 - do :
194195 xpack.usage : { }
195196
196- - match : {
197- enterprise_search : {
198- enabled : true,
199- available : true,
200- search_applications : { count: 1 },
201- analytics_collections : { count: 0 },
202- query_rulesets : { total_count: 2, total_rule_count: 5, min_rule_count: 2, max_rule_count: 3, rule_criteria_total_counts: { exact: 5 } }
203- }
204- }
197+ - match : { "enterprise_search.enabled": true }
198+ - match : { " enterprise_search.available": true }
199+ - match : { "enterprise_search.search_applications.count": 1 }
200+ - match : { "enterprise_search.analytics_collections.count": 0 }
201+ - match : { "enterprise_search.query_rulesets.total_count": 2 }
202+ - match : { "enterprise_search.query_rulesets.total_rule_count": 5 }
203+ - match : { "enterprise_search.query_rulesets. min_rule_count" : 2 }
204+ - match : { "enterprise_search.query_rulesets.max_rule_count": 3 }
205+ - match : { "enterprise_search.query_rulesets.rule_criteria_total_counts.exact": 5 }
205206
206207 - do :
207208 query_rules.delete_ruleset :
@@ -210,14 +211,12 @@ teardown:
210211 - do :
211212 xpack.usage : { }
212213
213- - match : {
214- enterprise_search : {
215- enabled : true,
216- available : true,
217- search_applications : { count: 1 },
218- analytics_collections : { count: 0 },
219- query_rulesets : { total_count: 1, total_rule_count: 2, min_rule_count: 2, max_rule_count: 2, rule_criteria_total_counts: { exact: 2 } }
220- }
221- }
222-
223-
214+ - match : { "enterprise_search.enabled": true }
215+ - match : { "enterprise_search.available": true }
216+ - match : { "enterprise_search.search_applications.count": 1 }
217+ - match : { "enterprise_search.analytics_collections.count": 0 }
218+ - match : { "enterprise_search.query_rulesets.total_count": 1 }
219+ - match : { "enterprise_search.query_rulesets.total_rule_count": 2 }
220+ - match : { "enterprise_search.query_rulesets.min_rule_count": 2 }
221+ - match : { "enterprise_search.query_rulesets.max_rule_count": 2 }
222+ - match : { "enterprise_search.query_rulesets.rule_criteria_total_counts.exact": 2 }
0 commit comments