Skip to content

Commit 90c537d

Browse files
authored
Add Azurite module (#860)
1 parent 1f3657e commit 90c537d

File tree

10 files changed

+672
-5
lines changed

10 files changed

+672
-5
lines changed

docs/modules/azurite.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Azurite Module
2+
3+
[Azurite](https://github.com/Azure/Azurite) is an open source Azure Storage API compatible server (emulator). Based on Node.js, Azurite provides cross platform experiences for developers wanting to try Azure Storage easily in a local environment. Azurite simulates most of the commands supported by Azure Storage with minimal dependencies.
4+
5+
## Install
6+
7+
```bash
8+
npm install @testcontainers/azurite --save-dev
9+
```
10+
11+
## Examples
12+
13+
<!--codeinclude-->
14+
[Upload and download a blob:](../../packages/modules/azurite/src/azurite-container.test.ts) inside_block:uploadAndDownloadBlob
15+
<!--/codeinclude-->
16+
17+
<!--codeinclude-->
18+
[Send and receive queue messages:](../../packages/modules/azurite/src/azurite-container.test.ts) inside_block:sendAndReceiveQueue
19+
<!--/codeinclude-->
20+
21+
<!--codeinclude-->
22+
[Create and insert on table:](../../packages/modules/azurite/src/azurite-container.test.ts) inside_block:createAndInsertOnTable
23+
<!--/codeinclude-->
24+
25+
<!--codeinclude-->
26+
[Use custom credentials:](../../packages/modules/azurite/src/azurite-container.test.ts) inside_block:customCredentials
27+
<!--/codeinclude-->
28+
29+
<!--codeinclude-->
30+
[Use custom ports:](../../packages/modules/azurite/src/azurite-container.test.ts) inside_block:customPorts
31+
<!--/codeinclude-->
32+
33+
<!--codeinclude-->
34+
[Enable in-memory persistence:](../../packages/modules/azurite/src/azurite-container.test.ts) inside_block:inMemoryPersistence
35+
<!--/codeinclude-->

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ nav:
4343
- Advanced: features/advanced.md
4444
- Modules:
4545
- ArangoDB: modules/arangodb.md
46+
- Azurite: modules/azurite.md
4647
- Cassandra: modules/cassandra.md
4748
- ChromaDB: modules/chromadb.md
4849
- Couchbase: modules/couchbase.md

package-lock.json

Lines changed: 177 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import type { Config } from "jest";
2+
import * as path from "path";
3+
4+
const config: Config = {
5+
preset: "ts-jest",
6+
moduleNameMapper: {
7+
"^testcontainers$": path.resolve(__dirname, "../../testcontainers/src"),
8+
},
9+
};
10+
11+
export default config;
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "@testcontainers/azurite",
3+
"version": "10.13.2",
4+
"license": "MIT",
5+
"keywords": [
6+
"azurite",
7+
"testing",
8+
"docker",
9+
"testcontainers"
10+
],
11+
"description": "Azurite module for Testcontainers",
12+
"homepage": "https://github.com/testcontainers/testcontainers-node#readme",
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/testcontainers/testcontainers-node"
16+
},
17+
"bugs": {
18+
"url": "https://github.com/testcontainers/testcontainers-node/issues"
19+
},
20+
"main": "build/index.js",
21+
"files": [
22+
"build"
23+
],
24+
"publishConfig": {
25+
"access": "public"
26+
},
27+
"scripts": {
28+
"prepack": "shx cp ../../../README.md . && shx cp ../../../LICENSE .",
29+
"build": "tsc --project tsconfig.build.json"
30+
},
31+
"dependencies": {
32+
"testcontainers": "^10.13.2"
33+
},
34+
"devDependencies": {
35+
"@azure/data-tables": "^13.2.2",
36+
"@azure/storage-blob": "^12.25.0",
37+
"@azure/storage-queue": "^12.24.0"
38+
}
39+
}

0 commit comments

Comments
 (0)