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: add clickhouse module #1372

Merged
merged 16 commits into from Aug 9, 2023

Conversation

anilsenay
Copy link
Contributor

What does this PR do?

This PR adds ClickHouse modules for golang testcontainers

Why is it important?

It is important as part of a task of #636 to support ClickHouse modules too.

Related issues

Relates to #636

@anilsenay anilsenay requested a review from a team as a code owner July 29, 2023 23:07
@netlify
Copy link

netlify bot commented Jul 29, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit abcac8a
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/64d37f890eb5ec00088654be
😎 Deploy Preview https://deploy-preview-1372--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
Copy link
Collaborator

Hey @anilsenay after #1414, we refactored the CI pipeline. Could you update this PR with those changes? It basically means removing the YML file for the module, and adding it to the list, in alphabetical order.

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.

Minor comments about docs format

docs/modules/clickhouse.md Outdated Show resolved Hide resolved
docs/modules/clickhouse.md Outdated Show resolved Hide resolved
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.

Could you please take a look at the variable names? 🙏

modules/clickhouse/clickhouse_test.go Outdated Show resolved Hide resolved
modules/clickhouse/clickhouse_test.go Outdated Show resolved Hide resolved
modules/clickhouse/clickhouse_test.go Outdated Show resolved Hide resolved
modules/clickhouse/clickhouse_test.go Outdated Show resolved Hide resolved
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.

This PR is great and almost perfect to be merged. Please read my comments, as I'd love to get your insights before.

Thanks you so much for your enormous work here 👏

modules/clickhouse/clickhouse_test.go Outdated Show resolved Hide resolved
modules/clickhouse/clickhouse_test.go Show resolved Hide resolved
modules/clickhouse/clickhouse_test.go Show resolved Hide resolved
@anilsenay
Copy link
Contributor Author

anilsenay commented Aug 8, 2023

@mdelapenya I refactor tests, and I decided to avoid duplications and create functions to perform crud after all :D
Also added yaml test

Would you take a look at my last commit?

@sonarcloud
Copy link

sonarcloud bot commented Aug 9, 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
3.7% 3.7% Duplication

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.

LGTM! Will wait for @eddumelendez's review, but other than that, great job with this PR 💪

@mdelapenya mdelapenya self-assigned this Aug 9, 2023
@mdelapenya mdelapenya added the enhancement New feature or request label Aug 9, 2023
@mdelapenya mdelapenya merged commit c82a1c5 into testcontainers:main Aug 9, 2023
110 checks passed
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Aug 10, 2023
* main:
  Add support for MongoDB testing module (testcontainers#1447)
  Support groups in dependabot updates (testcontainers#1459)
  chore: run modulegen tests on Windows (testcontainers#1478)
  Add default labels when Ryuk is disabled (testcontainers#1339)
  feat: add clickhouse module (testcontainers#1372)
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Aug 10, 2023
* main: (29 commits)
  Add support for MongoDB testing module (testcontainers#1447)
  Support groups in dependabot updates (testcontainers#1459)
  chore: run modulegen tests on Windows (testcontainers#1478)
  Add default labels when Ryuk is disabled (testcontainers#1339)
  feat: add clickhouse module (testcontainers#1372)
  chore: increase timeout for go test and GH action steps (testcontainers#1475)
  chore: triple max timeout for the workflow run, which takes +10m (testcontainers#1474)
  chore(deps): bump github.com/aws dependencies in /modules/localstack (testcontainers#1472)
  chore(deps): bump Google emulators dependencies in /examples (testcontainers#1471)
  all: fix goroutine leaks (testcontainers#1358)
  chore(deps): bump github.com/neo4j/neo4j-go-driver/v5 in /modules/neo4j (testcontainers#1427)
  chore(deps): bump github.com/tidwall/gjson from 1.14.4 to 1.15.0 in /modules/vault (testcontainers#1428)
  chore: add a GH action for release drafter (testcontainers#1470)
  chore(deps): bump mkdocs-material from 3.2.0 to 8.2.7 (testcontainers#1468)
  Add global testcontainers header to docs (testcontainers#1308)
  Simplify dependabot updates sorting (testcontainers#1460)
  feat: use credential helper in docker config, even if auth is empty in .docker/config.json (testcontainers#1079)
  chore(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 (testcontainers#1457)
  Revert "chore: run Windows tests on a Linux container (testcontainers#1456)"
  chore: run Windows tests on a Linux container (testcontainers#1456)
  ...
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