Skip to content

Commit 8a7baa9

Browse files
committed
test(clt-tests): fix expected error message and log output parsing
1 parent 84ac0fe commit 8a7baa9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/clt-tests/bugs/3481-http-update-distributed-table-wrong-cluster-crash.rec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ The issue about it: https://github.com/manticoresoftware/manticoresearch/issues/
3434
––– input –––
3535
curl -s -X POST http://localhost:9312/update -d '{"cluster": "unknown_cluster", "table": "d", "id": 2, "doc": {"f": 5}}'
3636
––– output –––
37-
{"error":{"type":"action_request_validation_exception","reason":"","table":"d"},"status":409}
37+
{"error":{"type":"action_request_validation_exception","reason":"table t: table t: table 't' is not in any cluster, use just 't'","table":"d"},"status":409}
3838
––– input –––
39-
sleep 2; cat /var/log/manticore/searchd.log | grep 'response data' | cut -d' ' -f12-
39+
sleep 2; cat /var/log/manticore/searchd.log | grep 'response data' | head -n 1 | cut -d' ' -f12-
4040
––– output –––
41-
{"version":3,"type":"json response","message":{"error":{"type":"action_request_validation_exception","reason":"","table":"d"},"status":409},"meta":null,"error_code":0}
41+
{"version":3,"type":"json response","message":{"error":{"type":"action_request_validation_exception","reason":"table t: table 't' is not in any cluster, use just 't'","table":"t"},"status":409},"meta":null,"error_code":0}

0 commit comments

Comments
 (0)