Skip to content

Commit

Permalink
update tests #4
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelewski committed Jul 5, 2024
1 parent 3a9faf9 commit ecc6524
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions quesma/quesma/search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
},
},
},
Expand Down Expand Up @@ -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},
},
},
},
Expand Down Expand Up @@ -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},
},
},
},
Expand Down Expand Up @@ -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},
},
},
},
Expand Down Expand Up @@ -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},
},
},
},
Expand Down

0 comments on commit ecc6524

Please sign in to comment.