diff --git a/go.mod b/go.mod index 0d16f04211..b552b227d0 100644 --- a/go.mod +++ b/go.mod @@ -84,7 +84,7 @@ require ( github.com/stretchr/testify v1.11.1 github.com/test-go/testify v1.1.4 github.com/testcontainers/testcontainers-go v0.41.0 - github.com/testcontainers/testcontainers-go/modules/opensearch v0.40.0 + github.com/testcontainers/testcontainers-go/modules/opensearch v0.41.0 github.com/theckman/yacspin v0.13.12 github.com/thejerf/suture/v4 v4.0.6 github.com/tidwall/gjson v1.18.0 diff --git a/go.sum b/go.sum index 436f442ca2..73d13d13ca 100644 --- a/go.sum +++ b/go.sum @@ -1204,8 +1204,8 @@ github.com/test-go/testify v1.1.4 h1:Tf9lntrKUMHiXQ07qBScBTSA0dhYQlu83hswqelv1iE github.com/test-go/testify v1.1.4/go.mod h1:rH7cfJo/47vWGdi4GPj16x3/t1xGOj2YxzmNQzk2ghU= github.com/testcontainers/testcontainers-go v0.41.0 h1:mfpsD0D36YgkxGj2LrIyxuwQ9i2wCKAD+ESsYM1wais= github.com/testcontainers/testcontainers-go v0.41.0/go.mod h1:pdFrEIfaPl24zmBjerWTTYaY0M6UHsqA1YSvsoU40MI= -github.com/testcontainers/testcontainers-go/modules/opensearch v0.40.0 h1:3TIrGk0zXyO9CG2N6APo7auwWIwAvhkwE1reISif8LM= -github.com/testcontainers/testcontainers-go/modules/opensearch v0.40.0/go.mod h1:VA0UCTPu+Gcs7MzdzBnSl0qDnxquuphv3ngSGdX97Xs= +github.com/testcontainers/testcontainers-go/modules/opensearch v0.41.0 h1:xOHzMTJXgw/CQsrtemxLGDZGCSQg/AlaotVv273qC60= +github.com/testcontainers/testcontainers-go/modules/opensearch v0.41.0/go.mod h1:vjKGTfDelOkOAzsFmf5YglHPnhyoHjPyDs9Z4Ane2xg= github.com/thanhpk/randstr v1.0.6 h1:psAOktJFD4vV9NEVb3qkhRSMvYh4ORRaj1+w/hn4B+o= github.com/thanhpk/randstr v1.0.6/go.mod h1:M/H2P1eNLZzlDwAzpkkkUvoyNNMbzRGhESZuEQk3r0U= github.com/theckman/yacspin v0.13.12 h1:CdZ57+n0U6JMuh2xqjnjRq5Haj6v1ner2djtLQRzJr4= diff --git a/vendor/github.com/testcontainers/testcontainers-go/modules/opensearch/opensearch.go b/vendor/github.com/testcontainers/testcontainers-go/modules/opensearch/opensearch.go index b2e400f0f9..9b2b4b9260 100644 --- a/vendor/github.com/testcontainers/testcontainers-go/modules/opensearch/opensearch.go +++ b/vendor/github.com/testcontainers/testcontainers-go/modules/opensearch/opensearch.go @@ -48,7 +48,8 @@ func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustom username := settings.Username password := settings.Password - moduleOpts := []testcontainers.ContainerCustomizer{ + moduleOpts := make([]testcontainers.ContainerCustomizer, 0, 4+len(opts)) + moduleOpts = append(moduleOpts, testcontainers.WithEnv(map[string]string{ "discovery.type": "single-node", "DISABLE_INSTALL_DEMO_CONFIG": "true", @@ -99,7 +100,7 @@ func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustom return r.Tagline == "The OpenSearch Project: https://opensearch.org/" })), - } + ) moduleOpts = append(moduleOpts, opts...) diff --git a/vendor/modules.txt b/vendor/modules.txt index 51a786d809..07156be974 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -2108,8 +2108,8 @@ github.com/testcontainers/testcontainers-go/internal/core github.com/testcontainers/testcontainers-go/internal/core/network github.com/testcontainers/testcontainers-go/log github.com/testcontainers/testcontainers-go/wait -# github.com/testcontainers/testcontainers-go/modules/opensearch v0.40.0 -## explicit; go 1.24.0 +# github.com/testcontainers/testcontainers-go/modules/opensearch v0.41.0 +## explicit; go 1.25.0 github.com/testcontainers/testcontainers-go/modules/opensearch # github.com/theckman/yacspin v0.13.12 ## explicit; go 1.17