Skip to content

Commit d5da8af

Browse files
authored
Add Azure Service Bus Emulator (#113)
1 parent 2552523 commit d5da8af

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

modules/azure-servicebus/index.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: Azure Service Bus
3+
categories:
4+
- cloud
5+
docs:
6+
- id: java
7+
url: https://java.testcontainers.org/modules/azure/#azure-service-bus-emulator
8+
maintainer: core
9+
example: |
10+
```java
11+
Network network = Network.newNetwork();
12+
13+
MSSQLServerContainer<?> mssql = new MSSQLServerContainer<>("mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04")
14+
.acceptLicense()
15+
.withNetwork(network);
16+
mssql.start();
17+
18+
var servicebus = new ServiceBusEmulatorContainer("mcr.microsoft.com/azure-messaging/servicebus-emulator:1.0.1")
19+
.acceptLicense()
20+
.withConfig(MountableFile.forClasspathResource("/service-bus-config.json"))
21+
.withNetwork(network)
22+
.withMsSqlServerContainer(mssql);
23+
servicebus.start();
24+
```
25+
installation: |
26+
```xml
27+
<dependency>
28+
<groupId>org.testcontainers</groupId>
29+
<artifactId>azure</artifactId>
30+
<version>1.20.5</version>
31+
<scope>test</scope>
32+
</dependency>
33+
```
34+
description: |
35+
The Azure Service Bus emulator offers a local development experience for the Service bus service.
36+
---

modules/azure-servicebus/logo.svg

Lines changed: 23 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)