You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 7, 2025. It is now read-only.
Add integration test exercising _bulk endpoint (#1458)
Recently our tests didn't catch a panic (see #1457), because the `_bulk`
endpoint wasn't exercised in the tests - only the `_doc` endpoint.
Even though #1457 added a reproducer integration test, `_bulk` endpoint
isn't exercised that much in integration tests - this PR adds an
additional integration test that uses this endpoint.
t.Run("test kibana_sample_data_flights ingest to ClickHouse (with PUT mapping)", func(t*testing.T) { a.testKibanaSampleFlightsIngestWithMappingToClickHouse(ctx, t) })
39
41
t.Run("test kibana_sample_data_ecommerce ingest to ClickHouse", func(t*testing.T) { a.testKibanaSampleEcommerceIngestToClickHouse(ctx, t) })
40
42
t.Run("test kibana_sample_data_ecommerce ingest to ClickHouse (with PUT mapping)", func(t*testing.T) { a.testKibanaSampleEcommerceIngestWithMappingToClickHouse(ctx, t) })
@@ -86,6 +88,7 @@ var (
86
88
"timestamp": "DateTime64(3)",
87
89
}
88
90
sampleDocKibanaSampleFlights= []byte(`{"FlightNum":"9HY9SWR","DestCountry":"AU","OriginWeather":"Sunny","OriginCityName":"Frankfurt am Main","AvgTicketPrice":841.2656419677076,"DistanceMiles":10247.856675613455,"FlightDelay":false,"DestWeather":"Rain","Dest":"Sydney Kingsford Smith International Airport","FlightDelayType":"No Delay","OriginCountry":"DE","dayOfWeek":0,"DistanceKilometers":16492.32665375846,"timestamp":"2024-11-11T00:00:00","DestLocation":{"lat":"-33.94609833","lon":"151.177002"},"DestAirportID":"SYD","Carrier":"Kibana Airlines","Cancelled":false,"FlightTimeMin":1030.7704158599038,"Origin":"Frankfurt am Main Airport","OriginLocation":{"lat":"50.033333","lon":"8.570556"},"DestRegion":"SE-BD","OriginAirportID":"FRA","OriginRegion":"DE-HE","DestCityName":"Sydney","FlightTimeHour":17.179506930998397,"FlightDelayMin":0}`)
91
+
sampleDoc2KibanaSampleFlights= []byte(`{"FlightNum":"1HY2AWR","DestCountry":"PL","OriginWeather":"Sunny","OriginCityName":"Warsaw","AvgTicketPrice":141.2656419677076,"DistanceMiles":30247.856675613455,"FlightDelay":false,"DestWeather":"Rain","Dest":"Sydney Kingsford Smith International Airport","FlightDelayType":"No Delay","OriginCountry":"PL","dayOfWeek":0,"DistanceKilometers":16492.32665375846,"timestamp":"2024-11-11T00:00:00","DestLocation":{"lat":"-33.94609833","lon":"151.177002"},"DestAirportID":"SYD","Carrier":"Kibana Airlines","Cancelled":false,"FlightTimeMin":1030.7704158599038,"Origin":"Frankfurt am Main Airport","OriginLocation":{"lat":"50.033333","lon":"8.570556"},"DestRegion":"SE-BD","OriginAirportID":"FRA","OriginRegion":"DE-HE","DestCityName":"Sydney","FlightTimeHour":11.179506930998397,"FlightDelayMin":0}`)
89
92
putMappingKibanaSampleFlights= []byte(`
90
93
{
91
94
"mappings": {
@@ -451,6 +454,32 @@ func (a *IngestTestcase) testKibanaSampleFlightsIngestToClickHouse(ctx context.C
0 commit comments