From 8ef4dd1900f7cd65f0351f8f9dc115f427b2356d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Fri, 13 Sep 2024 13:44:25 +0200 Subject: [PATCH] docs: remove deprecated RunContainer function from docs and tests --- docs/modules/artemis.md | 3 --- docs/modules/azurite.md | 2 -- docs/modules/cassandra.md | 2 -- docs/modules/chroma.md | 2 -- docs/modules/clickhouse.md | 2 -- docs/modules/cockroachdb.md | 2 -- docs/modules/consul.md | 2 -- docs/modules/couchbase.md | 2 -- docs/modules/dolt.md | 2 -- docs/modules/elasticsearch.md | 2 -- docs/modules/grafana-lgtm.md | 2 -- docs/modules/inbucket.md | 2 -- docs/modules/influxdb.md | 2 -- docs/modules/k3s.md | 2 -- docs/modules/k6.md | 2 -- docs/modules/kafka.md | 2 -- docs/modules/localstack.md | 2 -- docs/modules/mariadb.md | 2 -- docs/modules/milvus.md | 2 -- docs/modules/minio.md | 2 -- docs/modules/mockserver.md | 2 -- docs/modules/mongodb.md | 2 -- docs/modules/mssql.md | 2 -- docs/modules/mysql.md | 2 -- docs/modules/nats.md | 2 -- docs/modules/neo4j.md | 2 -- docs/modules/ollama.md | 2 -- docs/modules/openfga.md | 2 -- docs/modules/openldap.md | 2 -- docs/modules/opensearch.md | 2 -- docs/modules/postgres.md | 2 -- docs/modules/pulsar.md | 2 -- docs/modules/qdrant.md | 2 -- docs/modules/rabbitmq.md | 2 -- docs/modules/redis.md | 2 -- docs/modules/redpanda.md | 2 -- docs/modules/registry.md | 2 -- docs/modules/surrealdb.md | 2 -- docs/modules/valkey.md | 2 -- docs/modules/vault.md | 2 -- docs/modules/vearch.md | 2 -- docs/modules/weaviate.md | 2 -- modulegen/_template/module.md.tmpl | 2 -- modulegen/main_test.go | 8 ++++---- modules/localstack/localstack_test.go | 2 +- modules/ollama/ollama_test.go | 2 +- modules/rabbitmq/rabbitmq_test.go | 6 +++--- modules/registry/registry_test.go | 6 +++--- 48 files changed, 12 insertions(+), 99 deletions(-) diff --git a/docs/modules/artemis.md b/docs/modules/artemis.md index 3ce498e82b..0360e47b54 100644 --- a/docs/modules/artemis.md +++ b/docs/modules/artemis.md @@ -30,9 +30,6 @@ go get github.com/testcontainers/testcontainers-go/modules/artemis - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. - The Artemis module exposes one entrypoint function to create the Artemis container, and this function receives three parameters: ```golang diff --git a/docs/modules/azurite.md b/docs/modules/azurite.md index c62db38233..83f7a10ee7 100644 --- a/docs/modules/azurite.md +++ b/docs/modules/azurite.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/azurite - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Azurite module exposes one entrypoint function to create the Azurite container, and this function receives three parameters: diff --git a/docs/modules/cassandra.md b/docs/modules/cassandra.md index e22f34607b..ac174ce933 100644 --- a/docs/modules/cassandra.md +++ b/docs/modules/cassandra.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/cassandra - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Cassandra module exposes one entrypoint function to create the Cassandra container, and this function receives three parameters: diff --git a/docs/modules/chroma.md b/docs/modules/chroma.md index b714554c84..8d06c063c3 100644 --- a/docs/modules/chroma.md +++ b/docs/modules/chroma.md @@ -31,8 +31,6 @@ go get github.com/testcontainers/testcontainers-go/modules/chroma - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Chroma module exposes one entrypoint function to create the Chroma container, and this function receives three parameters: diff --git a/docs/modules/clickhouse.md b/docs/modules/clickhouse.md index ceb0bd890b..129668c658 100644 --- a/docs/modules/clickhouse.md +++ b/docs/modules/clickhouse.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/clickhouse - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The ClickHouse module exposes one entrypoint function to create the ClickHouse container, and this function receives three parameters: diff --git a/docs/modules/cockroachdb.md b/docs/modules/cockroachdb.md index 6a9eb08c2e..17a000e0b0 100644 --- a/docs/modules/cockroachdb.md +++ b/docs/modules/cockroachdb.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/cockroachdb - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The CockroachDB module exposes one entrypoint function to create the CockroachDB container, and this function receives three parameters: diff --git a/docs/modules/consul.md b/docs/modules/consul.md index 9140bbc61a..68589631a3 100644 --- a/docs/modules/consul.md +++ b/docs/modules/consul.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/consul - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Consul module exposes one entrypoint function to create the Consul container, and this function receives three parameters: diff --git a/docs/modules/couchbase.md b/docs/modules/couchbase.md index f50c9322ee..08ff2a6706 100644 --- a/docs/modules/couchbase.md +++ b/docs/modules/couchbase.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/couchbase - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Couchbase module exposes one entrypoint function to create the Couchbase container, and this function receives three parameters: diff --git a/docs/modules/dolt.md b/docs/modules/dolt.md index 23a4d680e6..be8d88b95a 100644 --- a/docs/modules/dolt.md +++ b/docs/modules/dolt.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/dolt - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Dolt module exposes one entrypoint function to create the Dolt container, and this function receives three parameters: diff --git a/docs/modules/elasticsearch.md b/docs/modules/elasticsearch.md index d3969cb805..f3f4cb08fb 100644 --- a/docs/modules/elasticsearch.md +++ b/docs/modules/elasticsearch.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/elasticsearch - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Elasticsearch module exposes one entrypoint function to create the Elasticsearch container, and this function receives three parameters: diff --git a/docs/modules/grafana-lgtm.md b/docs/modules/grafana-lgtm.md index b76c56bc66..b468baceed 100644 --- a/docs/modules/grafana-lgtm.md +++ b/docs/modules/grafana-lgtm.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/grafanalgtm - Since testcontainers-go :material-tag: v0.33.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Grafana LGTM module exposes one entrypoint function to create the Grafana LGTM container, and this function receives three parameters: diff --git a/docs/modules/inbucket.md b/docs/modules/inbucket.md index 1e000ad0b5..45a11b2f07 100644 --- a/docs/modules/inbucket.md +++ b/docs/modules/inbucket.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/inbucket - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Inbucket module exposes one entrypoint function to create the Inbucket container, and this function receives three parameters: diff --git a/docs/modules/influxdb.md b/docs/modules/influxdb.md index 5646ab6030..78be516c87 100644 --- a/docs/modules/influxdb.md +++ b/docs/modules/influxdb.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/influxdb - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The InfluxDB module exposes one entrypoint function to create the container, and this function receives three parameters: diff --git a/docs/modules/k3s.md b/docs/modules/k3s.md index 1b87fb69b3..4bf1c1f37e 100644 --- a/docs/modules/k3s.md +++ b/docs/modules/k3s.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/k3s - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The K3s module exposes one entrypoint function to create the K3s container, and this function receives three parameters: diff --git a/docs/modules/k6.md b/docs/modules/k6.md index 3263413e99..e9fa565e09 100644 --- a/docs/modules/k6.md +++ b/docs/modules/k6.md @@ -33,8 +33,6 @@ go get github.com/testcontainers/testcontainers-go/modules/k6 - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The K6 module exposes one entrypoint function to run the K6 container, and this function receives three parameters: diff --git a/docs/modules/kafka.md b/docs/modules/kafka.md index 8876d374fc..739e578808 100644 --- a/docs/modules/kafka.md +++ b/docs/modules/kafka.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/kafka - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Kafka module exposes one entrypoint function to create the Kafka container, and this function receives three parameters: diff --git a/docs/modules/localstack.md b/docs/modules/localstack.md index ae879b422e..54af8a3730 100644 --- a/docs/modules/localstack.md +++ b/docs/modules/localstack.md @@ -31,8 +31,6 @@ Use the `testcontainers.WithEnv` option when creating the `LocalStackContainer` - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The LocalStack module exposes one single function to create the LocalStack container, and this function receives three parameters: diff --git a/docs/modules/mariadb.md b/docs/modules/mariadb.md index 33281aed64..fe9dce09d4 100644 --- a/docs/modules/mariadb.md +++ b/docs/modules/mariadb.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/mariadb - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The MariaDB module exposes one entrypoint function to create the MariaDB container, and this function receives three parameters: diff --git a/docs/modules/milvus.md b/docs/modules/milvus.md index 1b1fc4a7e2..1f792d1272 100644 --- a/docs/modules/milvus.md +++ b/docs/modules/milvus.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/milvus - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Milvus module exposes one entrypoint function to create the Milvus container, and this function receives three parameters: diff --git a/docs/modules/minio.md b/docs/modules/minio.md index 9d90e80567..86ae110988 100644 --- a/docs/modules/minio.md +++ b/docs/modules/minio.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/minio - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Minio module exposes one entrypoint function to create the Minio container, and this function receives three parameters: diff --git a/docs/modules/mockserver.md b/docs/modules/mockserver.md index ae3440d65b..aa819c07f5 100644 --- a/docs/modules/mockserver.md +++ b/docs/modules/mockserver.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/mockserver - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The MockServer module exposes one entrypoint function to create the MockServer container, and this function receives three parameters: diff --git a/docs/modules/mongodb.md b/docs/modules/mongodb.md index 6d7aa57cdc..d2e04fc492 100644 --- a/docs/modules/mongodb.md +++ b/docs/modules/mongodb.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/mongodb - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The MongoDB module exposes one entrypoint function to create the MongoDB container, and this function receives three parameters: diff --git a/docs/modules/mssql.md b/docs/modules/mssql.md index f615dc5be0..f1fb23ac6c 100644 --- a/docs/modules/mssql.md +++ b/docs/modules/mssql.md @@ -31,8 +31,6 @@ go get github.com/testcontainers/testcontainers-go/modules/mssql - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The MS SQL Server module exposes one entrypoint function to create the MS SQL Server container, and this function receives three parameters: diff --git a/docs/modules/mysql.md b/docs/modules/mysql.md index 04f203edd1..27a5030c25 100644 --- a/docs/modules/mysql.md +++ b/docs/modules/mysql.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/mysql - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The MySQL module exposes one entrypoint function to create the container, and this function receives three parameters: diff --git a/docs/modules/nats.md b/docs/modules/nats.md index 8fe67153b3..a7fb36fe6c 100644 --- a/docs/modules/nats.md +++ b/docs/modules/nats.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/nats - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The NATS module exposes one entrypoint function to create the NATS container, and this function receives three parameters: diff --git a/docs/modules/neo4j.md b/docs/modules/neo4j.md index 5d7a2f0503..32a0992a72 100644 --- a/docs/modules/neo4j.md +++ b/docs/modules/neo4j.md @@ -28,8 +28,6 @@ Running Neo4j as a single-instance server, with the [APOC plugin](https://neo4j. - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Neo4j module exposes one entrypoint function to create the Neo4j container, and this function receives three parameters: diff --git a/docs/modules/ollama.md b/docs/modules/ollama.md index 75312c6cb3..0c86bac4fd 100644 --- a/docs/modules/ollama.md +++ b/docs/modules/ollama.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/ollama - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Ollama module exposes one entrypoint function to create the Ollama container, and this function receives three parameters: diff --git a/docs/modules/openfga.md b/docs/modules/openfga.md index d9c18288e9..36a4ee6a0e 100644 --- a/docs/modules/openfga.md +++ b/docs/modules/openfga.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/openfga - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The OpenFGA module exposes one entrypoint function to create the OpenFGA container, and this function receives three parameters: diff --git a/docs/modules/openldap.md b/docs/modules/openldap.md index b43eb32be1..4cd3060c82 100644 --- a/docs/modules/openldap.md +++ b/docs/modules/openldap.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/openldap - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The OpenLDAP module exposes one entrypoint function to create the OpenLDAP container, and this function receives three parameters: diff --git a/docs/modules/opensearch.md b/docs/modules/opensearch.md index 0fdf3dfc1c..607ebb017d 100644 --- a/docs/modules/opensearch.md +++ b/docs/modules/opensearch.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/opensearch - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The OpenSearch module exposes one entrypoint function to create the OpenSearch container, and this function receives three parameters: diff --git a/docs/modules/postgres.md b/docs/modules/postgres.md index 71f4190e37..f7f8e8be91 100644 --- a/docs/modules/postgres.md +++ b/docs/modules/postgres.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/postgres - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Postgres module exposes one entrypoint function to create the Postgres container, and this function receives three parameters: diff --git a/docs/modules/pulsar.md b/docs/modules/pulsar.md index ab2c3bf71a..a86c50912a 100644 --- a/docs/modules/pulsar.md +++ b/docs/modules/pulsar.md @@ -32,8 +32,6 @@ Create a `Pulsar` container to use it in your tests: - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Pulsar module exposes one entrypoint function to create the containerr, and this function receives three parameters: diff --git a/docs/modules/qdrant.md b/docs/modules/qdrant.md index c401c8af3c..efea0e5e7d 100644 --- a/docs/modules/qdrant.md +++ b/docs/modules/qdrant.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/qdrant - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Qdrant module exposes one entrypoint function to create the Qdrant container, and this function receives three parameters: diff --git a/docs/modules/rabbitmq.md b/docs/modules/rabbitmq.md index 8e0f63389a..7cd13669a3 100644 --- a/docs/modules/rabbitmq.md +++ b/docs/modules/rabbitmq.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/rabbitmq - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The RabbitMQ module exposes one entrypoint function to create the RabbitMQ container, and this function receives three parameters: diff --git a/docs/modules/redis.md b/docs/modules/redis.md index 5622a8ea1d..575255170b 100644 --- a/docs/modules/redis.md +++ b/docs/modules/redis.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/redis - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Redis module exposes one entrypoint function to create the containerr, and this function receives three parameters: diff --git a/docs/modules/redpanda.md b/docs/modules/redpanda.md index 5ccb251aed..28e9475c3c 100644 --- a/docs/modules/redpanda.md +++ b/docs/modules/redpanda.md @@ -31,8 +31,6 @@ go get github.com/testcontainers/testcontainers-go/modules/redpanda - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Redpanda module exposes one entrypoint function to create the Redpanda container, and this function receives three parameters: diff --git a/docs/modules/registry.md b/docs/modules/registry.md index 772b697b0f..931a958504 100644 --- a/docs/modules/registry.md +++ b/docs/modules/registry.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/registry - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Registry module exposes one entrypoint function to create the Registry container, and this function receives three parameters: diff --git a/docs/modules/surrealdb.md b/docs/modules/surrealdb.md index 50917c73f9..363a08da67 100644 --- a/docs/modules/surrealdb.md +++ b/docs/modules/surrealdb.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/surrealdb - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The SurrealDB module exposes one entrypoint function to create the SurrealDB container, and this function receives three parameters: diff --git a/docs/modules/valkey.md b/docs/modules/valkey.md index 40b124f242..6ed72da672 100644 --- a/docs/modules/valkey.md +++ b/docs/modules/valkey.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/valkey - Since testcontainers-go :material-tag: v0.33.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Valkey module exposes one entrypoint function to create the Valkey container, and this function receives three parameters: diff --git a/docs/modules/vault.md b/docs/modules/vault.md index 1c8aadd32f..d66f9b2915 100644 --- a/docs/modules/vault.md +++ b/docs/modules/vault.md @@ -52,8 +52,6 @@ go get -u github.com/hashicorp/vault-client-go - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Vault module exposes one entrypoint function to create the containerr, and this function receives three parameters: diff --git a/docs/modules/vearch.md b/docs/modules/vearch.md index ecd7ae70db..b5ce022d31 100644 --- a/docs/modules/vearch.md +++ b/docs/modules/vearch.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/vearch - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Vearch module exposes one entrypoint function to create the Vearch container, and this function receives three parameters: diff --git a/docs/modules/weaviate.md b/docs/modules/weaviate.md index c7a2f6f68b..0b0dab2bd5 100644 --- a/docs/modules/weaviate.md +++ b/docs/modules/weaviate.md @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/weaviate - Since testcontainers-go :material-tag: v0.32.0 -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The Weaviate module exposes one entrypoint function to create the Weaviate container, and this function receives three parameters: diff --git a/modulegen/_template/module.md.tmpl b/modulegen/_template/module.md.tmpl index 69f44556e1..795705cb1c 100644 --- a/modulegen/_template/module.md.tmpl +++ b/modulegen/_template/module.md.tmpl @@ -26,8 +26,6 @@ go get github.com/testcontainers/testcontainers-go/{{ ParentDir }}/{{ $lower }} - Not available until the next release of testcontainers-go :material-tag: main -!!!info - The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_. The {{ $title }} module exposes one entrypoint function to create the {{ $title }} container, and this function receives three parameters: diff --git a/modulegen/main_test.go b/modulegen/main_test.go index 16473b6cf3..bcd676b656 100644 --- a/modulegen/main_test.go +++ b/modulegen/main_test.go @@ -371,10 +371,10 @@ func assertModuleDocContent(t *testing.T, module context.TestcontainersModule, m assert.Equal(t, "", data[18]) assert.Equal(t, "[Creating a "+title+" container](../../"+module.ParentDir()+"/"+lower+"/examples_test.go) inside_block:run"+title+"Container", data[19]) assert.Equal(t, "", data[20]) - assert.Equal(t, "The "+title+" module exposes one entrypoint function to create the "+title+" container, and this function receives three parameters:", data[31]) - assert.True(t, strings.HasSuffix(data[34], "(*Container, error)")) - assert.Equal(t, "If you need to set a different "+title+" Docker image, you can set a valid Docker image as the second argument in the `Run` function.", data[47]) - assert.Equal(t, "E.g. `Run(context.Background(), \""+module.Image+"\")`.", data[48]) + assert.Equal(t, "The "+title+" module exposes one entrypoint function to create the "+title+" container, and this function receives three parameters:", data[29]) + assert.True(t, strings.HasSuffix(data[32], "(*Container, error)")) + assert.Equal(t, "If you need to set a different "+title+" Docker image, you can set a valid Docker image as the second argument in the `Run` function.", data[45]) + assert.Equal(t, "E.g. `Run(context.Background(), \""+module.Image+"\")`.", data[46]) } // assert content module test diff --git a/modules/localstack/localstack_test.go b/modules/localstack/localstack_test.go index e631c992e2..887a9bdf6c 100644 --- a/modules/localstack/localstack_test.go +++ b/modules/localstack/localstack_test.go @@ -97,7 +97,7 @@ func TestIsLegacyMode(t *testing.T) { } } -func TestRunContainer(t *testing.T) { +func TestRun(t *testing.T) { tests := []struct { version string }{ diff --git a/modules/ollama/ollama_test.go b/modules/ollama/ollama_test.go index 3e34319bdd..9d8e2d95c8 100644 --- a/modules/ollama/ollama_test.go +++ b/modules/ollama/ollama_test.go @@ -92,7 +92,7 @@ func assertLoadedModel(t *testing.T, c *ollama.Container) { require.Contains(t, string(bs), "all-minilm") } -func TestRunContainer_withModel_error(t *testing.T) { +func TestContainer_withModel_error(t *testing.T) { ctx := context.Background() ollamaContainer, err := ollama.Run( diff --git a/modules/rabbitmq/rabbitmq_test.go b/modules/rabbitmq/rabbitmq_test.go index c25b60d524..c70d10c5b8 100644 --- a/modules/rabbitmq/rabbitmq_test.go +++ b/modules/rabbitmq/rabbitmq_test.go @@ -18,7 +18,7 @@ import ( "github.com/testcontainers/testcontainers-go/modules/rabbitmq" ) -func TestRunContainer_connectUsingAmqp(t *testing.T) { +func TestRun_connectUsingAmqp(t *testing.T) { ctx := context.Background() rabbitmqContainer, err := rabbitmq.Run(ctx, "rabbitmq:3.12.11-management-alpine") @@ -35,7 +35,7 @@ func TestRunContainer_connectUsingAmqp(t *testing.T) { require.NoError(t, err) } -func TestRunContainer_connectUsingAmqps(t *testing.T) { +func TestRun_connectUsingAmqps(t *testing.T) { ctx := context.Background() tmpDir := t.TempDir() @@ -98,7 +98,7 @@ func TestRunContainer_connectUsingAmqps(t *testing.T) { } } -func TestRunContainer_withAllSettings(t *testing.T) { +func TestRun_withAllSettings(t *testing.T) { ctx := context.Background() rabbitmqContainer, err := rabbitmq.Run(ctx, diff --git a/modules/registry/registry_test.go b/modules/registry/registry_test.go index a160833977..fe7846fdd9 100644 --- a/modules/registry/registry_test.go +++ b/modules/registry/registry_test.go @@ -31,7 +31,7 @@ func TestRegistry_unauthenticated(t *testing.T) { require.Equal(t, http.StatusOK, resp.StatusCode) } -func TestRunContainer_authenticated(t *testing.T) { +func TestRun_authenticated(t *testing.T) { ctx := context.Background() registryContainer, err := registry.Run( ctx, @@ -141,7 +141,7 @@ func TestRunContainer_authenticated(t *testing.T) { }) } -func TestRunContainer_authenticated_withCredentials(t *testing.T) { +func TestRun_authenticated_withCredentials(t *testing.T) { ctx := context.Background() // htpasswdString { registryContainer, err := registry.Run( @@ -169,7 +169,7 @@ func TestRunContainer_authenticated_withCredentials(t *testing.T) { require.Equal(t, http.StatusOK, resp.StatusCode) } -func TestRunContainer_wrongData(t *testing.T) { +func TestRun_wrongData(t *testing.T) { ctx := context.Background() registryContainer, err := registry.Run( ctx,