Skip to content

Commit e197419

Browse files
committed
Add Azurite container to Azure module
- Fix code review findings Signed-off-by: Esta Nagy <[email protected]>
1 parent 2c83a05 commit e197419

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

modules/azure/src/main/java/org/testcontainers/azure/AzuriteContainer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,15 @@ public String getConnectionString(final String accountName, final String account
141141
accountName,
142142
accountKey,
143143
protocol,
144-
host,
144+
getHost(),
145145
getMappedPort(DEFAULT_BLOB_PORT),
146146
accountName,
147147
protocol,
148-
host,
148+
getHost(),
149149
getMappedPort(DEFAULT_QUEUE_PORT),
150150
accountName,
151151
protocol,
152-
host,
152+
getHost(),
153153
getMappedPort(DEFAULT_TABLE_PORT),
154154
accountName
155155
);

modules/azure/src/test/java/org/testcontainers/azure/AzuriteContainerTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void testWithBlobServiceClient() {
4949
// emulatorContainer {
5050
AzuriteContainer emulator = new AzuriteContainer(
5151
DockerImageName.parse("mcr.microsoft.com/azure-storage/azurite:3.33.0")
52-
);
52+
)
5353
// }
5454
) {
5555
emulator.start();
@@ -62,7 +62,7 @@ public void testWithQueueServiceClient() {
6262
try (
6363
AzuriteContainer emulator = new AzuriteContainer(
6464
DockerImageName.parse("mcr.microsoft.com/azure-storage/azurite:3.33.0")
65-
);
65+
)
6666
) {
6767
emulator.start();
6868
testQueue(emulator);
@@ -74,7 +74,7 @@ public void testWithTableServiceClient() {
7474
try (
7575
AzuriteContainer emulator = new AzuriteContainer(
7676
DockerImageName.parse("mcr.microsoft.com/azure-storage/azurite:3.33.0")
77-
);
77+
)
7878
) {
7979
emulator.start();
8080
testTable(emulator);
@@ -88,7 +88,7 @@ public void testWithBlobServiceClientWithSslUsingPfx() {
8888
DockerImageName.parse("mcr.microsoft.com/azure-storage/azurite:3.33.0")
8989
)
9090
.withSsl(MountableFile.forClasspathResource("/keystore.pfx"), PASSWORD)
91-
.withHost(LOOPBACK_IP);
91+
.withHost(LOOPBACK_IP)
9292
) {
9393
emulator.start();
9494
testBlob(emulator);
@@ -102,7 +102,7 @@ public void testWithQueueServiceClientWithSslUsingPfx() {
102102
DockerImageName.parse("mcr.microsoft.com/azure-storage/azurite:3.33.0")
103103
)
104104
.withSsl(MountableFile.forClasspathResource("/keystore.pfx"), PASSWORD)
105-
.withHost(LOOPBACK_IP);
105+
.withHost(LOOPBACK_IP)
106106
) {
107107
emulator.start();
108108
testQueue(emulator);
@@ -116,7 +116,7 @@ public void testWithTableServiceClientWithSslUsingPfx() {
116116
DockerImageName.parse("mcr.microsoft.com/azure-storage/azurite:3.33.0")
117117
)
118118
.withSsl(MountableFile.forClasspathResource("/keystore.pfx"), PASSWORD)
119-
.withHost(LOOPBACK_IP);
119+
.withHost(LOOPBACK_IP)
120120
) {
121121
emulator.start();
122122
testTable(emulator);
@@ -133,7 +133,7 @@ public void testWithBlobServiceClientWithSslUsingPem() {
133133
MountableFile.forClasspathResource("/certificate.pem"),
134134
MountableFile.forClasspathResource("/key.pem")
135135
)
136-
.withHost(LOOPBACK_IP);
136+
.withHost(LOOPBACK_IP)
137137
) {
138138
emulator.start();
139139
testBlob(emulator);
@@ -150,7 +150,7 @@ public void testWithQueueServiceClientWithSslUsingPem() {
150150
MountableFile.forClasspathResource("/certificate.pem"),
151151
MountableFile.forClasspathResource("/key.pem")
152152
)
153-
.withHost(LOOPBACK_IP);
153+
.withHost(LOOPBACK_IP)
154154
) {
155155
emulator.start();
156156
testQueue(emulator);
@@ -167,7 +167,7 @@ public void testWithTableServiceClientWithSslUsingPem() {
167167
MountableFile.forClasspathResource("/certificate.pem"),
168168
MountableFile.forClasspathResource("/key.pem")
169169
)
170-
.withHost(LOOPBACK_IP);
170+
.withHost(LOOPBACK_IP)
171171
) {
172172
emulator.start();
173173
testTable(emulator);

0 commit comments

Comments
 (0)