mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
* docs(testcontainers): add the .NET module page Testcontainers.Floci exists and is published, but nothing in the docs pointed at it: no page, no mkdocs nav entry, no line in the language guide, and no row in either module table. The module table listed Java, Node.js, Python and Go, so a reader had no way to discover the .NET one. Adds docs/testcontainers/dotnet.md in the shape of the Java and Node pages, and wires it into the nav, the language list, and the tables in docs/testcontainers/index.md and README.md. Two things the other pages never have to explain are called out. The package is served from GitHub Packages rather than nuget.org, so it needs a nuget.config and a token with the read:packages scope. And the container-backed services carry the macOS caveats: the default RDS ProxyBasePort of 7000 collides with AirPlay Receiver, clients should use 127.0.0.1 rather than localhost to avoid IPv6, and the RDS proxy does not negotiate TLS. A Colima note covers the Ryuk socket path. The table row reads "see releases" rather than a version number. .NET releases on every push to main, so a number written here is stale on arrival; the other rows carry a version because their registries publish discrete releases. Signed-off-by: Hector Ventura <hectorvent@gmail.com> * docs(testcontainers): require package source mapping on the .NET page The nuget.config snippet added only the floci-io feed as a source, but Testcontainers.Floci is also published on nuget.org by the Testcontainers project, so a consumer with both sources configured could resolve that package instead of this module. Mirror the module README: keep both sources, add the credentials block, and route exactly Testcontainers.Floci to the floci-io feed through packageSourceMapping with everything else on nuget.org. Drop the dotnet nuget add source command, which registers the feed under a different name and cannot create the mapping, and link the feed to the package page. --------- Signed-off-by: Hector Ventura <hectorvent@gmail.com>
39 lines
2.0 KiB
Markdown
39 lines
2.0 KiB
Markdown
# Testcontainers
|
|
|
|
Floci has first-class Testcontainers modules for every major SDK language. Each module starts a real Floci container before your tests run and tears it down after — no running daemon, no shared state, no port conflicts.
|
|
|
|
## Available modules
|
|
|
|
For Testcontainers 1.x, use the versions as indicated in the table below.
|
|
|
|
| Language | Package | Version | Registry | Source |
|
|
|---|---|---|---|---|
|
|
| Java | `io.floci:testcontainers-floci` | `1.14.0` | [Maven Central](https://mvnrepository.com/artifact/io.floci/testcontainers-floci) | [GitHub](https://github.com/floci-io/testcontainers-floci) |
|
|
| Node.js | `@floci/testcontainers` | `0.1.0` | [npm](https://www.npmjs.com/package/@floci/testcontainers) | [GitHub](https://github.com/floci-io/testcontainers-floci-node) |
|
|
| Python | `testcontainers-floci` | `0.1.1` | [PyPI](https://pypi.org/project/testcontainers-floci/) | [GitHub](https://github.com/floci-io/testcontainers-floci-python) |
|
|
| .NET | `Testcontainers.Floci` | see releases | [GitHub Packages](https://github.com/orgs/floci-io/packages?repo_name=testcontainers-floci-dotnet) | [GitHub](https://github.com/floci-io/testcontainers-floci-dotnet) |
|
|
| Go | — | 🚧 In progress | — | [GitHub](https://github.com/floci-io/testcontainers-floci-go) |
|
|
|
|
For Testcontainers 2.x / Spring Boot 4.x, use version `2.15.0`.
|
|
|
|
## How it works
|
|
|
|
Every module exposes a `FlociContainer` class that wraps the official `floci/floci:latest` Docker image. When the container starts it waits for port 4566 to be ready, then exposes:
|
|
|
|
| Method | Returns |
|
|
|---|---|
|
|
| `getEndpoint()` | `http://localhost:<mapped-port>` |
|
|
| `getRegion()` | `us-east-1` (default) |
|
|
| `getAccessKey()` | `test` |
|
|
| `getSecretKey()` | `test` |
|
|
|
|
You pass these values directly into any AWS SDK client — no manual configuration, no environment variables.
|
|
|
|
## Language guides
|
|
|
|
- [Java](java.md) — JUnit 5, Spring Boot `@ServiceConnection`
|
|
- [Node.js / TypeScript](nodejs.md) — Jest, Vitest
|
|
- [Python](python.md) — pytest
|
|
- [.NET](dotnet.md): xUnit
|
|
- [Go](go.md) — in progress
|