mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-31 16:06:31 +00:00 
			
		
		
		
	fixed the failing tests from snapshots
This commit is contained in:
		| @@ -645,7 +645,7 @@ async fn filter_invalid_syntax_object() { | ||||
|         |response, code| { | ||||
|             snapshot!(response, @r###" | ||||
|             { | ||||
|               "message": ""Was expecting an operation `=`, `!=`, `>=`, `>`, `<=`, `<`, `IN`, `NOT IN`, `TO`, `EXISTS`, `NOT EXISTS`, `IS NULL`, `IS NOT NULL`, `IS EMPTY`, `IS NOT EMPTY`, `CONTAINS`, `NOT CONTAINS`, `STARTS WITH`, `NOT STARTS WITH`, `_geoRadius`, or `_geoBoundingBox` at `title & Glass`.\n1:14 title & Glass"", | ||||
|               "message": "Was expecting an operation `=`, `!=`, `>=`, `>`, `<=`, `<`, `IN`, `NOT IN`, `TO`, `EXISTS`, `NOT EXISTS`, `IS NULL`, `IS NOT NULL`, `IS EMPTY`, `IS NOT EMPTY`, `CONTAINS`, `NOT CONTAINS`, `STARTS WITH`, `NOT STARTS WITH`, `_geoRadius`, or `_geoBoundingBox` at `title & Glass`.\n1:14 title & Glass", | ||||
|               "code": "invalid_search_filter", | ||||
|               "type": "invalid_request", | ||||
|               "link": "https://docs.meilisearch.com/errors#invalid_search_filter" | ||||
| @@ -886,7 +886,7 @@ async fn search_with_pattern_filter_settings_errors() { | ||||
|             snapshot!(code, @"400 Bad Request"); | ||||
|             snapshot!(json_string!(response), @r###" | ||||
|                 { | ||||
|                     "message": "Index `test`: Filter operator `>` is not allowed for the attribute `doggos.age`.\n  - Note: allowed operators: OR, AND, NOT, =, !=, IN, IS EMPTY, IS NULL, EXISTS.\n  - Note: field `doggos.age` matched rule #0 in `filterableAttributes`\n  - Hint: enable comparison in rule #0 by modifying the features.filter object\n  - Hint: prepend another rule matching `doggos.age` with appropriate filter features before rule #0", | ||||
|                     "message": "Index `test`: Filter operator `=` is not allowed for the attribute `cattos`.\n  - Note: allowed operators: OR, AND, NOT, <, >, <=, >=, TO, IS EMPTY, IS NULL, EXISTS.\n  - Note: field `cattos` matched rule #0 in `filterableAttributes`\n  - Hint: enable equality in rule #0 by modifying the features.filter object\n  - Hint: prepend another rule matching `cattos` with appropriate filter features before rule #0", | ||||
|                     "code": "invalid_search_filter", | ||||
|                     "type": "invalid_request", | ||||
|                     "link": "https://docs.meilisearch.com/errors#invalid_search_filter" | ||||
|   | ||||
| @@ -601,7 +601,7 @@ async fn facet_search_with_filterable_attributes_rules_errors() { | ||||
|         &json!({"facetName": "doggos.name", "facetQuery": "b"}), | ||||
|         |response, code| { | ||||
|             snapshot!(code, @"400 Bad Request"); | ||||
|             snapshot!(response["message"], @r###""Attribute `doggos.name` is not facet-searchable. This index does not have configured facet-searchable attributes. To make it facet-searchable add it to the `filterableAttributes` index settings.""###); | ||||
|             snapshot!(response["message"], @r###""Attribute `doggos.name` is not facet-searchable. Note: this attribute matches rule #0 in filterableAttributes, but this rule does not enable facetSearch.\nHint: enable facetSearch in rule #0 by adding `\"facetSearch\": true` to the rule.\nHint: prepend another rule matching doggos.name with facetSearch: true before rule #0""###); | ||||
|         }, | ||||
|     ).await; | ||||
|  | ||||
| @@ -611,7 +611,7 @@ async fn facet_search_with_filterable_attributes_rules_errors() { | ||||
|         &json!({"facetName": "doggos.name", "facetQuery": "b"}), | ||||
|         |response, code| { | ||||
|             snapshot!(code, @"400 Bad Request"); | ||||
|             snapshot!(response["message"], @r###""Attribute `doggos.name` is not facet-searchable. This index does not have configured facet-searchable attributes. To make it facet-searchable add it to the `filterableAttributes` index settings.""###); | ||||
|             snapshot!(response["message"], @r###""Attribute `doggos.name` is not facet-searchable. Note: this attribute matches rule #0 in filterableAttributes, but this rule does not enable facetSearch.\nHint: enable facetSearch in rule #0 by adding `\"facetSearch\": true` to the rule.\nHint: prepend another rule matching doggos.name with facetSearch: true before rule #0""###); | ||||
|         }, | ||||
|     ).await; | ||||
| } | ||||
|   | ||||
| @@ -3669,7 +3669,7 @@ async fn federation_non_faceted_for_an_index() { | ||||
|     snapshot!(code, @"400 Bad Request"); | ||||
|     insta::assert_json_snapshot!(response, { ".processingTimeMs" => "[time]" }, @r###" | ||||
|     { | ||||
|       "message": "Inside `.federation.facetsByIndex.fruits-no-name`: Invalid facet distribution, attribute `name` is not filterable. The available filterable attribute patterns are `BOOST, id`.\n - Note: index `fruits-no-name` is not used in queries", | ||||
|       "message": "Inside `.federation.facetsByIndex.fruits-no-name`: Invalid facet distribution: Attribute `name` is not filterable. Available filterable attributes patterns are: `BOOST, id`.\n - Note: index `fruits-no-name` is not used in queries", | ||||
|       "code": "invalid_multi_search_facets", | ||||
|       "type": "invalid_request", | ||||
|       "link": "https://docs.meilisearch.com/errors#invalid_multi_search_facets" | ||||
|   | ||||
| @@ -1414,10 +1414,10 @@ async fn error_remote_does_not_answer() { | ||||
|       "estimatedTotalHits": 3, | ||||
|       "remoteErrors": { | ||||
|         "ms2": { | ||||
|           "message": "error sending request", | ||||
|           "code": "remote_could_not_send_request", | ||||
|           "message": "remote host did not answer before the deadline", | ||||
|           "code": "remote_timeout", | ||||
|           "type": "system", | ||||
|           "link": "https://docs.meilisearch.com/errors#remote_could_not_send_request" | ||||
|           "link": "https://docs.meilisearch.com/errors#remote_timeout" | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user