Skip to content

Commit 6afec7b

Browse files
committed
fix: resolve test failures from dependency upgrades
- Upgrade elastic test image from 7.13.2 to 8.17.0 for go-elasticsearch/v8 compatibility - Fix esapi import to use v8 package path - Remove stale go-elasticsearch v0.0.0 dependency - Fix mysql test image tag from 8.0.25 to 8.0 for ARM64 support - Fix kafka test HostIP from "localhost" to "0.0.0.0" for valid port binding
1 parent 4fd3666 commit 6afec7b

5 files changed

Lines changed: 4 additions & 7 deletions

File tree

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ require (
1919
github.com/d5/tengo/v2 v2.17.0
2020
github.com/denisenkom/go-mssqldb v0.12.3
2121
github.com/dnaeon/go-vcr/v2 v2.0.1
22-
github.com/elastic/go-elasticsearch v0.0.0
2322
github.com/elastic/go-elasticsearch/v8 v8.19.3
2423
github.com/go-kivik/couchdb v2.0.0+incompatible
2524
github.com/go-kivik/kivik v2.0.0+incompatible

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,6 @@ github.com/ebitengine/purego v0.10.0 h1:QIw4xfpWT6GWTzaW5XEKy3HXoqrJGx1ijYHzTF0/
278278
github.com/ebitengine/purego v0.10.0/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ=
279279
github.com/elastic/elastic-transport-go/v8 v8.9.0 h1:KeT/2P54F0xS0S8Y3Pf+tFDg4HmBgReQMB+BMz8dDAs=
280280
github.com/elastic/elastic-transport-go/v8 v8.9.0/go.mod h1:ssMTvNS2hwf7CaiGsRRsx4gQHFZ/jS/DkLcISxekWzc=
281-
github.com/elastic/go-elasticsearch v0.0.0 h1:Pd5fqOuBxKxv83b0+xOAJDAkziWYwFinWnBO0y+TZaA=
282-
github.com/elastic/go-elasticsearch v0.0.0/go.mod h1:TkBSJBuTyFdBnrNqoPc54FN0vKf5c04IdM4zuStJ7xg=
283281
github.com/elastic/go-elasticsearch/v8 v8.19.3 h1:5LDg0hfGJXBa9Y+2QlUgRTsNJ/7rm7oNidydtFAq0LI=
284282
github.com/elastic/go-elasticsearch/v8 v8.19.3/go.mod h1:tHJQdInFa6abmDbDCEH2LJja07l/SIpaGpJcm13nt7s=
285283
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=

plugins/extractors/elastic/elastic_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import (
1717
"google.golang.org/protobuf/types/known/anypb"
1818
"google.golang.org/protobuf/types/known/structpb"
1919

20-
"github.com/elastic/go-elasticsearch/esapi"
2120
"github.com/elastic/go-elasticsearch/v8"
21+
"github.com/elastic/go-elasticsearch/v8/esapi"
2222
"github.com/ory/dockertest/v3"
2323
"github.com/ory/dockertest/v3/docker"
2424
v1beta2 "github.com/raystack/meteor/models/raystack/assets/v1beta2"
@@ -57,7 +57,7 @@ func TestMain(m *testing.M) {
5757
// setup test
5858
opts := dockertest.RunOptions{
5959
Repository: "elasticsearch",
60-
Tag: "7.13.2",
60+
Tag: "8.17.0",
6161
Env: []string{
6262
"discovery.type=single-node",
6363
"ES_JAVA_OPTS=-Xms512m -Xmx512m",

plugins/extractors/kafka/kafka_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func TestMain(m *testing.M) {
4343
ExposedPorts: []string{"9093"},
4444
PortBindings: map[docker.Port][]docker.PortBinding{
4545
"9093": {
46-
{HostIP: "localhost", HostPort: "9093"},
46+
{HostIP: "0.0.0.0", HostPort: "9093"},
4747
},
4848
},
4949
}

plugins/extractors/mysql/mysql_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func TestMain(m *testing.M) {
4141
// setup test
4242
opts := dockertest.RunOptions{
4343
Repository: "mysql",
44-
Tag: "8.0.25",
44+
Tag: "8.0",
4545
Env: []string{
4646
"MYSQL_ALLOW_EMPTY_PASSWORD=true",
4747
},

0 commit comments

Comments
 (0)