testcontainers / testcontainers-go

Testcontainers for Go is a Go package that makes it simple to create and clean up container-based dependencies for automated integration/smoke tests. The clean, easy-to-use API enables developers to programmatically define containers that should be run as part of a test and clean up those resources when the test is done.
https://golang.testcontainers.org
MIT License
3.3k stars 450 forks source link

docs: example for NATS cluster #2591

Closed mdelapenya closed 1 week ago

mdelapenya commented 2 weeks ago

What does this PR do?

It adds a testable example for the creation of a NATS cluster, which includes:

This PR finally updates the current docs, as the WithArgument option was missing:

Why is it important?

Show by example how to set up a NATS cluster without adding anything to the current API, just configuring it properly.

Related issues

netlify[bot] commented 2 weeks ago

Deploy Preview for testcontainers-go ready!

Name Link
Latest commit 4883f19c80f6c8d94d753788041130d32e0200dc
Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/66711dc7b13b2e0008ccc06c
Deploy Preview https://deploy-preview-2591--testcontainers-go.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

mdelapenya commented 2 weeks ago

@bearrito could you please take a look at this? 🙏

mdelapenya commented 1 week ago

I'm going to merge this one, @bearrito please reopen the original issue in case you have any other consideration.