From 655e0b12797dda08616333e57ef4467dea35f6be Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Tue, 3 Dec 2024 22:39:11 +0100 Subject: [PATCH] Expect issue report when searching in raw attribute. --- tests/search/raw_attributes/raw_attributes.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/search/raw_attributes/raw_attributes.rb b/tests/search/raw_attributes/raw_attributes.rb index 353257eb8..12c6b2a65 100644 --- a/tests/search/raw_attributes/raw_attributes.rb +++ b/tests/search/raw_attributes/raw_attributes.rb @@ -84,7 +84,13 @@ def assert_empty_raw_search query = "/search/?" + URI.encode_www_form(form) result = search(query) assert_equal(0, result.hitcount) - assert_nil(result.errorlist) + if is_streaming + # TODO: Report issue also for streaming search + assert_nil(result.errorlist) + else + assert_not_nil(result.errorlist) + assert_match(/Search is not supported for attribute/, result.errorlist[0]['message']) + end end def teardown