Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: testcontainers/testcontainers-node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v10.13.0
Choose a base ref
...
head repository: testcontainers/testcontainers-node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v10.14.0
Choose a head ref
  • 11 commits
  • 61 files changed
  • 7 contributors

Commits on Aug 31, 2024

  1. v10.13.0

    github-actions committed Aug 31, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    aedb386 View commit details

Commits on Sep 10, 2024

  1. Fix Neo4j default password to support v5 (#832)

    EcksDy authored Sep 10, 2024
    Copy the full SHA
    f8f82a5 View commit details

Commits on Sep 11, 2024

  1. Fix LocalStack container hostname resolution (#834)

    joebowbeer authored Sep 11, 2024
    Copy the full SHA
    0e4a798 View commit details
  2. v10.13.1

    github-actions committed Sep 11, 2024
    Copy the full SHA
    3a1ab3a View commit details

Commits on Oct 3, 2024

  1. Fixes docker auth passwords that contain a colon (#839)

    joshystuart authored Oct 3, 2024
    Copy the full SHA
    50df1d4 View commit details

Commits on Oct 4, 2024

  1. v10.13.2

    github-actions committed Oct 4, 2024
    Copy the full SHA
    08da47b View commit details

Commits on Nov 2, 2024

  1. Add MariaDB module (#851)

    stscoundrel authored Nov 2, 2024
    Copy the full SHA
    1930c36 View commit details

Commits on Nov 4, 2024

  1. Revert HealthCheckWaitStrategy poll (#856)

    cristianrgreco authored Nov 4, 2024
    Copy the full SHA
    e449dd9 View commit details
  2. Update CI Actions versions from 3 -> 4 (#854)

    stscoundrel authored Nov 4, 2024
    Copy the full SHA
    798c057 View commit details

Commits on Nov 5, 2024

  1. Add Cassandra module (#855)

    stscoundrel authored Nov 5, 2024
    Copy the full SHA
    1b274c1 View commit details
  2. Add support for reusing stopped containers (#849)

    cbrevik authored Nov 5, 2024
    Copy the full SHA
    9046243 View commit details
Showing with 1,019 additions and 150 deletions.
  1. +1 −1 .github/workflows/codeql-analysis.yml
  2. +2 −2 .github/workflows/lint.yml
  3. +2 −2 .github/workflows/npm-publish.yml
  4. +2 −2 .github/workflows/test-template.yml
  5. +2 −2 .github/workflows/test.yml
  6. +1 −1 .github/workflows/windows-test-command-dispatch.yml
  7. +2 −2 .github/workflows/windows-test.yml
  8. +29 −0 docs/modules/cassandra.md
  9. +29 −0 docs/modules/mariadb.md
  10. +2 −0 mkdocs.yml
  11. +150 −43 package-lock.json
  12. +2 −2 packages/modules/arangodb/package.json
  13. +11 −0 packages/modules/cassandra/jest.config.ts
  14. +37 −0 packages/modules/cassandra/package.json
  15. +112 −0 packages/modules/cassandra/src/cassandra-container.test.ts
  16. +89 −0 packages/modules/cassandra/src/cassandra-container.ts
  17. +1 −0 packages/modules/cassandra/src/index.ts
  18. +13 −0 packages/modules/cassandra/tsconfig.build.json
  19. +21 −0 packages/modules/cassandra/tsconfig.json
  20. +2 −2 packages/modules/chromadb/package.json
  21. +2 −2 packages/modules/couchbase/package.json
  22. +2 −2 packages/modules/elasticsearch/package.json
  23. +2 −2 packages/modules/gcloud/package.json
  24. +2 −2 packages/modules/hivemq/package.json
  25. +2 −2 packages/modules/kafka/package.json
  26. +2 −2 packages/modules/localstack/package.json
  27. +34 −0 packages/modules/localstack/src/localstack-container.test.ts
  28. +8 −4 packages/modules/localstack/src/localstack-container.ts
  29. +11 −0 packages/modules/mariadb/jest.config.ts
  30. +37 −0 packages/modules/mariadb/package.json
  31. +1 −0 packages/modules/mariadb/src/index.ts
  32. +128 −0 packages/modules/mariadb/src/mariadb-container.test.ts
  33. +96 −0 packages/modules/mariadb/src/mariadb-container.ts
  34. +13 −0 packages/modules/mariadb/tsconfig.build.json
  35. +21 −0 packages/modules/mariadb/tsconfig.json
  36. +2 −2 packages/modules/mongodb/package.json
  37. +2 −2 packages/modules/mssqlserver/package.json
  38. +2 −2 packages/modules/mysql/package.json
  39. +2 −2 packages/modules/nats/package.json
  40. +2 −2 packages/modules/neo4j/package.json
  41. +21 −0 packages/modules/neo4j/src/neo4j-container.test.ts
  42. +1 −1 packages/modules/neo4j/src/neo4j-container.ts
  43. +2 −2 packages/modules/ollama/package.json
  44. +2 −2 packages/modules/postgresql/package.json
  45. +2 −2 packages/modules/qdrant/package.json
  46. +2 −2 packages/modules/rabbitmq/package.json
  47. +2 −2 packages/modules/redis/package.json
  48. +2 −2 packages/modules/redpanda/package.json
  49. +2 −2 packages/modules/selenium/package.json
  50. +2 −2 packages/modules/weaviate/package.json
  51. +1 −1 packages/testcontainers/package.json
  52. +18 −0 packages/testcontainers/src/container-runtime/auth/auths.test.ts
  53. +3 −1 packages/testcontainers/src/container-runtime/auth/auths.ts
  54. +6 −2 packages/testcontainers/src/container-runtime/clients/container/container-client.ts
  55. +15 −6 packages/testcontainers/src/container-runtime/clients/container/docker-container-client.ts
  56. +4 −0 packages/testcontainers/src/container-runtime/clients/container/types.ts
  57. +20 −1 packages/testcontainers/src/generic-container/generic-container-reuse.test.ts
  58. +14 −2 packages/testcontainers/src/generic-container/generic-container.ts
  59. +1 −1 packages/testcontainers/src/version.ts
  60. +17 −33 packages/testcontainers/src/wait-strategies/health-check-wait-strategy.ts
  61. +1 −1 sonar-project.properties
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -9,9 +9,9 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Code checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install NodeJS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install dependencies
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -8,11 +8,11 @@ jobs:
publish:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: main

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
4 changes: 2 additions & 2 deletions .github/workflows/test-template.yml
Original file line number Diff line number Diff line change
@@ -128,10 +128,10 @@ jobs:
echo "NODE_OPTIONS=--dns-result-order=ipv4first" >> $GITHUB_ENV
- name: Code checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install NodeJS ${{ inputs.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}

4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -28,9 +28,9 @@ jobs:
node-version: [ 18.x, 20.x ]
steps:
- name: Code checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
2 changes: 1 addition & 1 deletion .github/workflows/windows-test-command-dispatch.yml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ jobs:

steps:
- name: Dispatch windows-test command
uses: peter-evans/slash-command-dispatch@v3
uses: peter-evans/slash-command-dispatch@v4
with:
token: ${{ secrets.REPO_TOKEN }}
commands: windows-test
4 changes: 2 additions & 2 deletions .github/workflows/windows-test.yml
Original file line number Diff line number Diff line change
@@ -25,14 +25,14 @@ jobs:
})
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
ref: ${{ github.event.client_payload.pull_request.head.ref }}

- name: Install NodeJS 18.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x

29 changes: 29 additions & 0 deletions docs/modules/cassandra.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Cassandra Module

[Cassandra](https://cassandra.apache.org/_/index.html) is a free and open source, distributed NoSQL database management system. It is designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure.



## Install

```bash
npm install @testcontainers/cassandra --save-dev
```

## Examples

<!--codeinclude-->
[Connect:](../../packages/modules/cassandra/src/cassandra-container.test.ts) inside_block:connectWithDefaultCredentials
<!--/codeinclude-->

<!--codeinclude-->
[Connect with custom credentials:](../../packages/modules/cassandra/src/cassandra-container.test.ts) inside_block:connectWithCustomCredentials
<!--/codeinclude-->

<!--codeinclude-->
[With custom datacenter / rack](../../packages/modules/cassandra/src/cassandra-container.test.ts) inside_block:customDataSenterAndRack
<!--/codeinclude-->

<!--codeinclude-->
[Insert & fetch data:](../../packages/modules/cassandra/src/cassandra-container.test.ts) inside_block:createAndFetchData
<!--/codeinclude-->
29 changes: 29 additions & 0 deletions docs/modules/mariadb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# MariaDB Module

[MariaDB](https://mariadb.org/) is one of the most popular open source relational databases. It’s made by the original developers of MySQL and guaranteed to stay open source. It is part of most cloud offerings and the default in most Linux distributions.



## Install

```bash
npm install @testcontainers/mariadb --save-dev
```

## Examples

<!--codeinclude-->
[Connect and execute query:](../../packages/modules/mariadb/src/mariadb-container.test.ts) inside_block:connect
<!--/codeinclude-->

<!--codeinclude-->
[Connect and execute query using URI:](../../packages/modules/mariadb/src/mariadb-container.test.ts) inside_block:uriConnect
<!--/codeinclude-->

<!--codeinclude-->
[Set username:](../../packages/modules/mariadb/src/mariadb-container.test.ts) inside_block:setUsername
<!--/codeinclude-->

<!--codeinclude-->
[Insert & fetch data:](../../packages/modules/mariadb/src/mariadb-container.test.ts) inside_block:insertAndFetchData
<!--/codeinclude-->
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -43,13 +43,15 @@ nav:
- Advanced: features/advanced.md
- Modules:
- ArangoDB: modules/arangodb.md
- Cassandra: modules/cassandra.md
- ChromaDB: modules/chromadb.md
- Couchbase: modules/couchbase.md
- Elasticsearch: modules/elasticsearch.md
- GCloud: modules/gcloud.md
- HiveMQ: modules/hivemq.md
- Kafka: modules/kafka.md
- Localstack: modules/localstack.md
- MariaDB: modules/mariadb.md
- MongoDB: modules/mongodb.md
- MSSQLServer: modules/mssqlserver.md
- MySQL: modules/mysql.md
Loading