Skip to content

Commit

Permalink
chore: use new version (v0.27.0) in modules and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Dec 22, 2023
1 parent c3a1834 commit 8d0f53a
Show file tree
Hide file tree
Showing 33 changed files with 35 additions and 35 deletions.
4 changes: 2 additions & 2 deletions docs/features/common_functional_options.md
Expand Up @@ -42,7 +42,7 @@ You could use this feature to run a custom script, or to run a command that is n

#### WithNetwork

- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
- Since testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go/releases/tag/v0.27.0"><span class="tc-version">:material-tag: v0.27.0</span></a>

By default, the container is started in the default Docker network. If you want to use an already existing Docker network you created in your code, you can use the `network.WithNetwork(aliases []string, nw *testcontainers.DockerNetwork)` option, which receives an alias as parameter and your network, attaching the container to it, and setting the network alias for that network.

Expand All @@ -53,7 +53,7 @@ In the case you need to retrieve the network name, you can simply read it from t

#### WithNewNetwork

- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
- Since testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go/releases/tag/v0.27.0"><span class="tc-version">:material-tag: v0.27.0</span></a>

If you want to attach your containers to a throw-away network, you can use the `network.WithNewNetwork(ctx context.Context, aliases []string, opts ...network.NetworkCustomizer)` option, which receives an alias as parameter, creating the new network with a random name, attaching the container to it, and setting the network alias for that network.

Expand Down
2 changes: 1 addition & 1 deletion docs/features/creating_networks.md
Expand Up @@ -2,7 +2,7 @@

Apart from creating containers, `Testcontainers for Go` allows you to create networks. This is useful when you need to connect multiple containers to the same network.

- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
- Since testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go/releases/tag/v0.27.0"><span class="tc-version">:material-tag: v0.27.0</span></a>

For that, please import the `testcontainers/network` package.

Expand Down
4 changes: 2 additions & 2 deletions docs/modules/mongodb.md
Expand Up @@ -42,7 +42,7 @@ for MongoDB. E.g. `testcontainers.WithImage("mongo:6")`.

#### WithUsername

- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
- Since testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go/releases/tag/v0.27.0"><span class="tc-version">:material-tag: v0.27.0</span></a>

This functional option sets the initial username to be created when the container starts.
It is used in conjunction with `WithPassword` to set a username and its password, creating the specified user with superuser power.
Expand All @@ -51,7 +51,7 @@ E.g. `testcontainers.WithUsername("mymongouser")`.

#### WithPassword

- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
- Since testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go/releases/tag/v0.27.0"><span class="tc-version">:material-tag: v0.27.0</span></a>

This functional option sets the initial password to be created when the container starts.
It is used in conjunction with `WithUsername` to set a username and its password, setting the password for the superuser power.
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/mssql.md
@@ -1,6 +1,6 @@
# MS SQL Server

Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
Since testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go/releases/tag/v0.27.0"><span class="tc-version">:material-tag: v0.27.0</span></a>

## Introduction

Expand Down
2 changes: 1 addition & 1 deletion examples/cockroachdb/go.mod
Expand Up @@ -6,7 +6,7 @@ require (
github.com/google/uuid v1.4.0
github.com/jackc/pgx/v4 v4.18.1
github.com/stretchr/testify v1.8.4
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
)

replace github.com/testcontainers/testcontainers-go => ../..
Expand Down
2 changes: 1 addition & 1 deletion examples/consul/go.mod
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/hashicorp/consul/api v1.26.1
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
)

require (
Expand Down
2 changes: 1 addition & 1 deletion examples/nginx/go.mod
Expand Up @@ -2,7 +2,7 @@ module github.com/testcontainers/testcontainers-go/examples/nginx

go 1.20

require github.com/testcontainers/testcontainers-go v0.26.0
require github.com/testcontainers/testcontainers-go v0.27.0

replace github.com/testcontainers/testcontainers-go => ../..

Expand Down
2 changes: 1 addition & 1 deletion examples/toxiproxy/go.mod
Expand Up @@ -6,7 +6,7 @@ require (
github.com/Shopify/toxiproxy/v2 v2.7.0
github.com/go-redis/redis/v8 v8.11.5
github.com/google/uuid v1.4.0
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
)

require (
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Expand Up @@ -113,4 +113,4 @@ nav:
- Getting help: getting_help.md
edit_uri: edit/main/docs/
extra:
latest_version: v0.26.0
latest_version: v0.27.0
2 changes: 1 addition & 1 deletion modules/artemis/go.mod
Expand Up @@ -6,7 +6,7 @@ require (
github.com/docker/go-connections v0.4.0
github.com/go-stomp/stomp/v3 v3.0.5
github.com/stretchr/testify v1.8.4
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
)

require (
Expand Down
2 changes: 1 addition & 1 deletion modules/cassandra/go.mod
Expand Up @@ -6,7 +6,7 @@ require (
github.com/docker/go-connections v0.4.0
github.com/gocql/gocql v1.6.0
github.com/stretchr/testify v1.8.4
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
)

require (
Expand Down
2 changes: 1 addition & 1 deletion modules/clickhouse/go.mod
Expand Up @@ -7,7 +7,7 @@ require (
github.com/cenkalti/backoff/v4 v4.2.1
github.com/docker/go-connections v0.4.0
github.com/stretchr/testify v1.8.4
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
)

require (
Expand Down
2 changes: 1 addition & 1 deletion modules/compose/go.mod
Expand Up @@ -13,7 +13,7 @@ require (
github.com/docker/docker v24.0.7+incompatible
github.com/google/uuid v1.4.0
github.com/stretchr/testify v1.8.4
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
golang.org/x/sync v0.5.0
gopkg.in/yaml.v3 v3.0.1
)
Expand Down
2 changes: 1 addition & 1 deletion modules/couchbase/go.mod
Expand Up @@ -6,7 +6,7 @@ require (
github.com/cenkalti/backoff/v4 v4.2.1
github.com/couchbase/gocb/v2 v2.7.0
github.com/docker/go-connections v0.4.0
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
github.com/tidwall/gjson v1.17.0
)

Expand Down
2 changes: 1 addition & 1 deletion modules/elasticsearch/go.mod
Expand Up @@ -5,7 +5,7 @@ go 1.20
require (
github.com/elastic/go-elasticsearch/v8 v8.11.1
github.com/stretchr/testify v1.8.4
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
golang.org/x/mod v0.14.0
)

Expand Down
2 changes: 1 addition & 1 deletion modules/gcloud/go.mod
Expand Up @@ -10,7 +10,7 @@ require (
cloud.google.com/go/pubsub v1.33.0
cloud.google.com/go/spanner v1.53.1
github.com/docker/go-connections v0.4.0
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
google.golang.org/api v0.153.0
google.golang.org/grpc v1.59.0
)
Expand Down
2 changes: 1 addition & 1 deletion modules/k3s/go.mod
Expand Up @@ -5,7 +5,7 @@ go 1.20
require (
github.com/docker/docker v24.0.7+incompatible
github.com/docker/go-connections v0.4.0
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
gopkg.in/yaml.v3 v3.0.1
k8s.io/api v0.28.4
k8s.io/apimachinery v0.28.4
Expand Down
2 changes: 1 addition & 1 deletion modules/k6/go.mod
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/docker/docker v24.0.7+incompatible
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
)

require (
Expand Down
2 changes: 1 addition & 1 deletion modules/kafka/go.mod
Expand Up @@ -5,7 +5,7 @@ go 1.20
require (
github.com/IBM/sarama v1.42.1
github.com/docker/go-connections v0.4.0
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
golang.org/x/mod v0.14.0
)

Expand Down
2 changes: 1 addition & 1 deletion modules/localstack/go.mod
Expand Up @@ -11,7 +11,7 @@ require (
github.com/docker/docker v24.0.7+incompatible
github.com/docker/go-connections v0.4.0
github.com/stretchr/testify v1.8.4
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
golang.org/x/mod v0.12.0
)

Expand Down
2 changes: 1 addition & 1 deletion modules/mariadb/go.mod
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/go-sql-driver/mysql v1.7.1
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
)

require (
Expand Down
2 changes: 1 addition & 1 deletion modules/mongodb/go.mod
Expand Up @@ -3,7 +3,7 @@ module github.com/testcontainers/testcontainers-go/modules/mongodb
go 1.20

require (
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
go.mongodb.org/mongo-driver v1.13.0
)

Expand Down
2 changes: 1 addition & 1 deletion modules/mssql/go.mod
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/microsoft/go-mssqldb v1.6.0
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
)

require (
Expand Down
2 changes: 1 addition & 1 deletion modules/mysql/go.mod
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/go-sql-driver/mysql v1.7.1
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0

)

Expand Down
2 changes: 1 addition & 1 deletion modules/nats/go.mod
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/nats-io/nats.go v1.31.0
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
)

require (
Expand Down
2 changes: 1 addition & 1 deletion modules/neo4j/go.mod
Expand Up @@ -5,7 +5,7 @@ go 1.20
require (
github.com/docker/go-connections v0.4.0
github.com/neo4j/neo4j-go-driver/v5 v5.15.0
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
)

require (
Expand Down
2 changes: 1 addition & 1 deletion modules/postgres/go.mod
Expand Up @@ -6,7 +6,7 @@ require (
github.com/docker/go-connections v0.4.0
github.com/lib/pq v1.10.9
github.com/stretchr/testify v1.8.4
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0

)

Expand Down
2 changes: 1 addition & 1 deletion modules/pulsar/go.mod
Expand Up @@ -7,7 +7,7 @@ require (
github.com/docker/docker v24.0.7+incompatible
github.com/docker/go-connections v0.4.0
github.com/stretchr/testify v1.8.4
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
)

replace github.com/testcontainers/testcontainers-go => ../..
Expand Down
2 changes: 1 addition & 1 deletion modules/rabbitmq/go.mod
Expand Up @@ -5,7 +5,7 @@ go 1.20
require (
github.com/docker/go-connections v0.4.0
github.com/rabbitmq/amqp091-go v1.9.0
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
)

require (
Expand Down
2 changes: 1 addition & 1 deletion modules/redis/go.mod
Expand Up @@ -6,7 +6,7 @@ require (
github.com/go-redis/redis/v8 v8.11.5
github.com/google/uuid v1.4.0
github.com/stretchr/testify v1.8.4
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0

)

Expand Down
2 changes: 1 addition & 1 deletion modules/redpanda/go.mod
Expand Up @@ -5,7 +5,7 @@ go 1.20
require (
github.com/docker/go-connections v0.4.0
github.com/stretchr/testify v1.8.4
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
github.com/twmb/franz-go v1.15.3
github.com/twmb/franz-go/pkg/kadm v1.10.0
)
Expand Down
2 changes: 1 addition & 1 deletion modules/vault/go.mod
Expand Up @@ -6,7 +6,7 @@ require (
github.com/docker/docker v24.0.7+incompatible
github.com/hashicorp/vault-client-go v0.3.3
github.com/stretchr/testify v1.8.4
github.com/testcontainers/testcontainers-go v0.26.0
github.com/testcontainers/testcontainers-go v0.27.0
github.com/tidwall/gjson v1.17.0
)

Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Expand Up @@ -7,7 +7,7 @@ sonar.projectKey=testcontainers_testcontainers-go

sonar.projectName=testcontainers-go

sonar.projectVersion=v0.26.0
sonar.projectVersion=v0.27.0

sonar.sources=.

Expand Down

0 comments on commit 8d0f53a

Please sign in to comment.