Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ require (
github.com/elastic/gmux v0.2.0
github.com/elastic/go-elasticsearch/v8 v8.0.0-alpha.0.20220127111727-5269e7e57568
github.com/elastic/go-hdrhistogram v0.1.0
github.com/elastic/go-lookslike v0.3.0
github.com/elastic/go-ucfg v0.8.4
github.com/go-sourcemap/sourcemap v2.1.3+incompatible
github.com/gofrs/uuid v4.2.0+incompatible
Expand Down
5 changes: 2 additions & 3 deletions model/modelindexer/indexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,11 +635,10 @@ func newMockElasticsearchClientConfig(
t testing.TB, bulkHandler http.HandlerFunc,
) *elasticsearch.Config {
mux := http.NewServeMux()
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
mux.HandleFunc("/_bulk", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("X-Elastic-Product", "Elasticsearch")
fmt.Fprintln(w, `{"version":{"number":"1.2.3"}}`)
bulkHandler.ServeHTTP(w, r)
})
mux.Handle("/_bulk", bulkHandler)
srv := httptest.NewServer(mux)
t.Cleanup(srv.Close)

Expand Down