From ecc65242f48d0a13ed0938cead210a475642419f Mon Sep 17 00:00:00 2001 From: Przemek Delewski Date: Fri, 5 Jul 2024 08:57:03 +0200 Subject: [PATCH] update tests #4 --- quesma/quesma/search_test.go | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/quesma/quesma/search_test.go b/quesma/quesma/search_test.go index 1add4a450..52d22f8f0 100644 --- a/quesma/quesma/search_test.go +++ b/quesma/quesma/search_test.go @@ -168,10 +168,11 @@ func TestAsyncSearchHandlerSpecialCharacters(t *testing.T) { "name": {PropertyName: "name", InternalPropertyName: "name", Type: schema.TypeText}, "content": {PropertyName: "content", InternalPropertyName: "content", Type: schema.TypeText}, "message": {PropertyName: "message", InternalPropertyName: "message", Type: schema.TypeText}, - "host.name.keyword": {PropertyName: "host.name.keyword", InternalPropertyName: "host.name.keyword", Type: schema.TypeKeyword}, + "host_name.keyword": {PropertyName: "host_name.keyword", InternalPropertyName: "host_name.keyword", Type: schema.TypeKeyword}, "FlightDelay": {PropertyName: "FlightDelay", InternalPropertyName: "FlightDelay", Type: schema.TypeText}, "Cancelled": {PropertyName: "Cancelled", InternalPropertyName: "Cancelled", Type: schema.TypeText}, "FlightDelayMin": {PropertyName: "FlightDelayMin", InternalPropertyName: "FlightDelayMin", Type: schema.TypeText}, + "_id": {PropertyName: "_id", InternalPropertyName: "_id", Type: schema.TypeText}, }, }, }, @@ -224,10 +225,11 @@ func TestSearchHandler(t *testing.T) { "name": {PropertyName: "name", InternalPropertyName: "name", Type: schema.TypeText}, "content": {PropertyName: "content", InternalPropertyName: "content", Type: schema.TypeText}, "message": {PropertyName: "message", InternalPropertyName: "message", Type: schema.TypeText}, - "host.name.keyword": {PropertyName: "host.name.keyword", InternalPropertyName: "host.name.keyword", Type: schema.TypeKeyword}, + "host_name.keyword": {PropertyName: "host_name.keyword", InternalPropertyName: "host_name.keyword", Type: schema.TypeKeyword}, "FlightDelay": {PropertyName: "FlightDelay", InternalPropertyName: "FlightDelay", Type: schema.TypeText}, "Cancelled": {PropertyName: "Cancelled", InternalPropertyName: "Cancelled", Type: schema.TypeText}, "FlightDelayMin": {PropertyName: "FlightDelayMin", InternalPropertyName: "FlightDelayMin", Type: schema.TypeText}, + "_id": {PropertyName: "_id", InternalPropertyName: "_id", Type: schema.TypeText}, }, }, }, @@ -265,10 +267,11 @@ func TestSearchHandlerNoAttrsConfig(t *testing.T) { "name": {PropertyName: "name", InternalPropertyName: "name", Type: schema.TypeText}, "content": {PropertyName: "content", InternalPropertyName: "content", Type: schema.TypeText}, "message": {PropertyName: "message", InternalPropertyName: "message", Type: schema.TypeText}, - "host.name.keyword": {PropertyName: "host.name.keyword", InternalPropertyName: "host.name.keyword", Type: schema.TypeKeyword}, + "host_name.keyword": {PropertyName: "host_name.keyword", InternalPropertyName: "host_name.keyword", Type: schema.TypeKeyword}, "FlightDelay": {PropertyName: "FlightDelay", InternalPropertyName: "FlightDelay", Type: schema.TypeText}, "Cancelled": {PropertyName: "Cancelled", InternalPropertyName: "Cancelled", Type: schema.TypeText}, "FlightDelayMin": {PropertyName: "FlightDelayMin", InternalPropertyName: "FlightDelayMin", Type: schema.TypeText}, + "_id": {PropertyName: "_id", InternalPropertyName: "_id", Type: schema.TypeText}, }, }, }, @@ -304,10 +307,11 @@ func TestAsyncSearchFilter(t *testing.T) { "name": {PropertyName: "name", InternalPropertyName: "name", Type: schema.TypeText}, "content": {PropertyName: "content", InternalPropertyName: "content", Type: schema.TypeText}, "message": {PropertyName: "message", InternalPropertyName: "message", Type: schema.TypeText}, - "host.name.keyword": {PropertyName: "host.name.keyword", InternalPropertyName: "host.name.keyword", Type: schema.TypeKeyword}, + "host_name.keyword": {PropertyName: "host_name.keyword", InternalPropertyName: "host_name.keyword", Type: schema.TypeKeyword}, "FlightDelay": {PropertyName: "FlightDelay", InternalPropertyName: "FlightDelay", Type: schema.TypeText}, "Cancelled": {PropertyName: "Cancelled", InternalPropertyName: "Cancelled", Type: schema.TypeText}, "FlightDelayMin": {PropertyName: "FlightDelayMin", InternalPropertyName: "FlightDelayMin", Type: schema.TypeText}, + "_id": {PropertyName: "_id", InternalPropertyName: "_id", Type: schema.TypeText}, }, }, }, @@ -346,10 +350,11 @@ func TestHandlingDateTimeFields(t *testing.T) { "name": {PropertyName: "name", InternalPropertyName: "name", Type: schema.TypeText}, "content": {PropertyName: "content", InternalPropertyName: "content", Type: schema.TypeText}, "message": {PropertyName: "message", InternalPropertyName: "message", Type: schema.TypeText}, - "host.name.keyword": {PropertyName: "host.name.keyword", InternalPropertyName: "host.name.keyword", Type: schema.TypeKeyword}, + "host_name.keyword": {PropertyName: "host_name.keyword", InternalPropertyName: "host_name.keyword", Type: schema.TypeKeyword}, "FlightDelay": {PropertyName: "FlightDelay", InternalPropertyName: "FlightDelay", Type: schema.TypeText}, "Cancelled": {PropertyName: "Cancelled", InternalPropertyName: "Cancelled", Type: schema.TypeText}, "FlightDelayMin": {PropertyName: "FlightDelayMin", InternalPropertyName: "FlightDelayMin", Type: schema.TypeText}, + "_id": {PropertyName: "_id", InternalPropertyName: "_id", Type: schema.TypeText}, }, }, },