Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(modules): add artemis container #1440

Merged
merged 3 commits into from Aug 14, 2023

Conversation

abemedia
Copy link
Contributor

@abemedia abemedia commented Aug 5, 2023

What does this PR do?

Adds Apache ActiveMQ Artemis module.

Why is it important?

Artemis supports most common messaging protocols (AMQP, MQTT, STOMP) so this allows a fairly wide range of testing integrations with message broker clients.

Related issues

@abemedia abemedia requested a review from a team as a code owner August 5, 2023 17:01
@netlify
Copy link

netlify bot commented Aug 5, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit d040324
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/64da067d6f238e000745d155
😎 Deploy Preview https://deploy-preview-1440--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.

@abemedia abemedia force-pushed the feat/artemis-module branch 4 times, most recently from 009473c to c9f2d61 Compare August 5, 2023 17:47
Copy link
Collaborator

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for creating this module, at first sight it looks great!

I'm interested in your use case for this technology. Nevertheless, I will review it more deeply next Monday.

modules/artemis/example_test.go Show resolved Hide resolved
@abemedia
Copy link
Contributor Author

abemedia commented Aug 5, 2023

I'm currently working on a library similar to the standard library's database/sql but for message broker clients and this container lets me test three of the drivers.

@mdelapenya mdelapenya self-assigned this Aug 7, 2023
@mdelapenya mdelapenya added the enhancement New feature or request label Aug 7, 2023
Copy link
Member

@eddumelendez eddumelendez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! I've been waiting for artemis and activemq images and thanks to your PR I realized those were available since couple of weeks ago.

docs/modules/artemis.md Show resolved Hide resolved
modules/artemis/artemis.go Show resolved Hide resolved
@abemedia
Copy link
Contributor Author

Hey @mdelapenya @eddumelendez, sorry about the delay but I was ill during the week.
Have just addressed all the PR comments and rebased on main.

mdelapenya
mdelapenya previously approved these changes Aug 14, 2023
Copy link
Collaborator

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we are good to go! As mentioned in the new comments, I'll add the code snippets in a follow-up PR. 🚀

Thank you very much for your patience while reviewing the module 🙇

Comment on lines +57 to +59
```go
container, err := artemis.RunContainer(ctx, artemis.WithCredentials("user", "password"))
```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not to delay more this PR, I'll update the code snippets, using the codeinclude plugin in a follow-up PR.

modules/artemis/go.mod Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Aug 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mdelapenya
Copy link
Collaborator

Merge now, as the CI build already passed and the latest commit updates go.mod, only

@mdelapenya mdelapenya merged commit d213b73 into testcontainers:main Aug 14, 2023
18 checks passed
@abemedia abemedia deleted the feat/artemis-module branch August 14, 2023 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants