Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

test(yaml): assert the 400 in terms_order_path, since the runner ignores `catch:`

Vincenzo Lombardo1cdaa515c6bd
diff --git a/engine/tests/es-compat-yaml/yaml/aggregations/terms_order_path.yml b/engine/tests/es-compat-yaml/yaml/aggregations/terms_order_path.yml
index fed2fc254..ae619b479 100644
--- a/engine/tests/es-compat-yaml/yaml/aggregations/terms_order_path.yml
+++ b/engine/tests/es-compat-yaml/yaml/aggregations/terms_order_path.yml
@@ -77,6 +77,9 @@ setup:
terms:
field: host
order: { nope: desc }
+ # This runner records a `catch` response without checking its status, so
+ # the 400 is asserted on the body (`status` is in ES's error envelope).
+ - match: { status: 400 }
- do:
catch: bad_request
@@ -93,3 +96,4 @@ setup:
m:
max:
field: ms
+ - match: { status: 400 }