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: convert pulsar example into a Go module #872

Merged
merged 32 commits into from
Mar 6, 2023

Conversation

mdelapenya
Copy link
Member

@mdelapenya mdelapenya commented Feb 22, 2023

What does this PR do?

This PR converts the existing Pulsar example into a Go module, and for that:

  • it moves the directory from examples to modules
  • it renames the GH workflow file
  • it updates the name of the Go module
  • it exposes an API to interact with the pulsar container (please see docs/modules/pulsar.md for more information)
  • it adds docs for the module
  • it enriches the existing tests to verify that is possible to get the subscriptions using the Admin endpoint

The public API has been more or less extracted from the existing java module.

Why is it important?

Continue working on having more Go modules for technologies that widely used.

Related issues

How to test this PR

cd modules/pulsar
make test

All the tests should pass.

@mdelapenya mdelapenya requested a review from a team as a code owner February 22, 2023 15:21
@mdelapenya mdelapenya added the feature New functionality or new behaviors on the existing one label Feb 22, 2023
@mdelapenya mdelapenya self-assigned this Feb 22, 2023
@netlify
Copy link

netlify bot commented Feb 22, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 7044bd2
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/6405c78f58aa2a00087875f9
😎 Deploy Preview https://deploy-preview-872--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 settings.

docs/modules/pulsar.md Outdated Show resolved Hide resolved
docs/modules/pulsar.md Outdated Show resolved Hide resolved
mdelapenya and others added 2 commits March 6, 2023 11:09
* main:
  chore: update module dependencies (testcontainers#911)
  chore: sync governance files (testcontainers#909)
  chore(deps): bump google.golang.org/api from 0.110.0 to 0.111.0 in /examples (testcontainers#908)
  chore(deps): bump github.com/aws/aws-sdk-go deps in localstack module (testcontainers#907)
  chore(deps): bump github.com/jackc/pgx/v4 in /examples/cockroachdb (testcontainers#895)
  chore(deps): bump github.com/containerd/containerd from 1.6.18 to 1.6.19 (testcontainers#897)
  chore(deps): bump github.com/compose-spec/compose-go in /modules/compose (testcontainers#899)
@sonarcloud
Copy link

sonarcloud bot commented Mar 6, 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
Member Author

@eddumelendez I'm merging this PR as is. We can iterate in the new module in the upcoming releases

@mdelapenya mdelapenya merged commit eb63c40 into testcontainers:main Mar 6, 2023
@mdelapenya mdelapenya deleted the pulsar-module branch March 7, 2023 10:36
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Mar 7, 2023
* main:
  chore: go mod tidy modules (testcontainers#920)
  chore(deps): bump dependencies  (testcontainers#919)
  feat: convert pulsar example into a Go module (testcontainers#872)
  chore: update module dependencies (testcontainers#911)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality or new behaviors on the existing one
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant